[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic-devel] forbidden base package replacement



On 05/31/2018 02:42 PM, Chris Negus wrote:
----- Original Message -----
In order to create a Kubernetes cluster, I want to downgrade docker to
docker-ce-17.03.

I uninstalled successfully current docker version with some dependencies
with the following command:

------------------------------
# rpm-ostree override remove cockpit-docker docker docker-common
------------------------------

Now i want to install two rpm files for docker:

-------------------------------
# rpm-ostree install docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm
docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm
------------------------------

The above command returned:

-----------
Resolving dependencies... Forbidden base package replacements:
  selinux-policy-targeted 3.14.1-29.fc28 -> 3.14.1-30.fc28 (updates)
  selinux-policy 3.14.1-29.fc28 -> 3.14.1-30.fc28 (updates)
failed
error: Some base packages would be replaced
--------------------

Googling, it seems this is a common issue, but I didn't find any
solution. How can I solve this issue and install docker-ce & dependencies?

Have you tried using yumdownloader to get those two dependent packages in your local directory and installing them with the others? This procedure is for RHEL, but should cover the approach you need: https://access.redhat.com/solutions/3414221

In fact, I can't install anything at the moment.

---------------------
# rpm-ostree install yum-utils
Checking out tree 291ea90... done
Enabled rpm-md repositories: updates fedora
rpm-md repo 'updates' (cached); generated: 2018-05-30 14:04:09
rpm-md repo 'fedora' (cached); generated: 2018-04-25 04:27:32
Importing metadata [=============] 100%
Resolving dependencies... Forbidden base package replacements:
  selinux-policy 3.14.1-29.fc28 -> 3.14.1-30.fc28 (updates)
  selinux-policy-targeted 3.14.1-29.fc28 -> 3.14.1-30.fc28 (updates)
failed
error: Some base packages would be replaced
--------------------

So I am locked. Installing with dnf neither works as it returns:

-------------
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Read-only file system)
-------------------



-- Chris Negus

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]