On 05/31/2018 03:16
PM, Dusty Mabe wrote:
On 05/31/2018 08:04 AM, arnaud gaboury wrote: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 --------------------This is basically because the content in your current deployment is a bit out of date with what is in the updates yum repos. This will probably be fixed by running rpm-ostree upgrade first. Was my first attempt to fix, but: ------------------------- # rpm-ostree upgrade 1 metadata, 0 content objects fetched; 569 B transferred in 5 seconds Importing metadata [=============] 100%dora 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 -------------------------------- Now ------------------------------------- # rpm-ostree rebase fedora/28/x86_64/updates/atomic-host -------8<-------- Upgraded: quota-nls 1:4.04-5.fc28 -> 1:4.04-6.fc28 selinux-policy 3.14.1-29.fc28 -> 3.14.1-30.fc28 selinux-policy-devel 3.14.1-29.fc28 -> 3.14.1-30.fc28 selinux-policy-targeted 3.14.1-29.fc28 -> 3.14.1-30.fc28 vim-minimal 2:8.1.020-1.fc28 -> 2:8.1.026-1.fc28 Removed: oci-register-machine-0-6.1.git66fa845.fc28.x86_64 systemd-container-238-8.git0e0aa59.fc28.x86_64 Run "systemctl reboot" to start a reboot # 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 -------8<-------- Added: docker-ce-17.03.2.ce-1.el7.centos.x86_64 docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch Run "systemctl reboot" to start a reboot -------------------------------------- Thank you so much. Any diff in using "rpm-ostree install" versus "atomic install" ? A really big thank you to all devs behind this project. I just started yesterday to install it and I am really very excited. I have been waiting for long such OS after I read this[0] paper from leonard Poetring (June 2014). It is now reality and just the beginning of something big coming to linux. [0]http://0pointer.net/blog/projects/stateless.html If that doesn't fix it you can `rpm-ostree rebase fedora/28/x86_64/updates/atomic-host` to get the latest (but un-released) tree, which should match exactly the yum repo. Summary: - Try rpm-ostree upgrade && reboot + rpm-ostree install - Try `rpm-ostree rebase fedora/28/x86_64/updates/atomic-host` && reboot + rpm-ostree install Dusty |
Attachment:
signature.asc
Description: OpenPGP digital signature