Resolve conflicts

Issues related to applications and software problems and general support
antolepore
Posts: 15
Joined: 2012/07/19 05:49:33

Resolve conflicts

Post by antolepore » 2021/07/29 01:04:00

Hi,
i am trying to install kubernetes and docker on Centos 8 but i have package conflicts how do i fix them?

Code: Select all

[root@master-node ~]# yum install kubeadm docker -y
Ultima verifica della scadenza dei metadati: 3:22:18 fa il mar 27 lug 2021 18:20:38 EDT.
Package kubeadm-1.21.3-0.x86_64 is already installed.
Errore:
 Problema: problem with installed package docker-ce-cli-1:20.10.7-3.el8.x86_64
  - package docker-ce-cli-1:20.10.7-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:19.03.13-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:19.03.14-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:19.03.15-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.0-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.1-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.2-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.3-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.4-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.5-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - package docker-ce-cli-1:20.10.6-3.el8.x86_64 conflicts with docker provided by podman-docker-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.noarch
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: Resolve conflicts

Post by Mike_Rochefort » 2021/07/29 14:32:57

The conflict is coming from the podman-docker package providing a symlink to podman named /usr/bin/docker and a symlinked docker socket so that it's easier to migrate to podman. You should either yum remove podman-docker and then perform your installation, or pass --allowerasing to your current install command which will try to remove the package as part of the transaction.

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

antolepore
Posts: 15
Joined: 2012/07/19 05:49:33

Re: Resolve conflicts

Post by antolepore » 2021/07/29 15:47:33

Code: Select all

[root @ master-node ~] # yum remove podman-docker
No match for argument: podman-docker
No packages marked for removal.
Dependencies resolved.
No operation to be done.
Done!

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: Resolve conflicts

Post by Mike_Rochefort » 2021/07/29 15:58:23

What happens if you try with --allowerasing on your kubeadm/docker install? I just popped open a stream8 image, added the k8s and docker repos, and mimicked your command and I'm not getting this issue.

Can you also provide the following output?

Code: Select all

# rpm -qa | grep -e podman -e docker
# rpm -qf /usr/bin/docker
# ls -l /usr/bin/docker
# ls -l /var/run/docker.sock
The last one probably won't return anything.

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

antolepore
Posts: 15
Joined: 2012/07/19 05:49:33

Re: Resolve conflicts

Post by antolepore » 2021/07/29 16:08:24

Code: Select all

[root@master-node ~]# rpm -qa | grep -e podman -e docker
docker-ce-cli-20.10.7-3.el8.x86_64
docker-scan-plugin-0.8.0-3.el8.x86_64
docker-ce-rootless-extras-20.10.7-3.el8.x86_64
docker-ce-20.10.7-3.el8.x86_64
[root@master-node ~]# rpm -qf /usr/bin/docker
docker-ce-cli-20.10.7-3.el8.x86_64
[root@master-node ~]#  ls -l /usr/bin/docker
-rwxr-xr-x. 1 root root 71575512  2 giu 07.57 /usr/bin/docker
[root@master-node ~]# ls -l /var/run/docker.sock
srw-rw----. 1 root docker 0 27 lug 00.14 /var/run/docker.sock

antolepore
Posts: 15
Joined: 2012/07/19 05:49:33

Re: Resolve conflicts

Post by antolepore » 2021/07/29 16:09:13

Code: Select all

[root @ master-node ~] # yum remove podman-docker --allowerasing
No match for argument: podman-docker
No packages marked for removal.
Dependencies resolved.
No operation to be done.
Done!

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: Resolve conflicts

Post by Mike_Rochefort » 2021/07/29 16:11:21

Just based on that output it looks like you have everything settled. I was saying add --allowerasing to the yum install kubeadm docker run. But it seems like you have the docker packages installed now.

Is this still an issue?

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: Resolve conflicts

Post by owl102 » 2021/07/29 17:06:37

"docker" is mapped to "podman-docker", so it's not an installed version of podman-docker causing the conflict, instead it's docker-ce-cli:
Problema: problem with installed package docker-ce-cli-1:20.10.7-3.el8.x86_64
So

Code: Select all

yum remove docker-ce-cli
will resolve the conflict, but only if podman should be used.

If the "real" docker from docker.com should be used instead, the conflict will be resolved by not installing the package "docker" (= podman-docker) but keeping docker from docker.com instead:

Code: Select all

yum install docker-ce docker-ce-cli containerd.io  # See also: https://docs.docker.com/engine/install/centos/
yum install kubeadm
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: Resolve conflicts

Post by Mike_Rochefort » 2021/07/29 19:32:48

Good catch, owl. I didn't even realize I was adding the -ce suffix in my reading and testing, it was just muscle memory.

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

antolepore
Posts: 15
Joined: 2012/07/19 05:49:33

Re: Resolve conflicts

Post by antolepore » 2021/08/02 07:35:10

I keep getting the same error, I tried the vs solutions but I haven't solved it I can't even do the updates

Code: Select all

[root@centos1 ~]# yum -y update
Ultima verifica della scadenza dei metadati: 8:14:04 fa il dom 01 ago 2021 19:20:32 EDT.
Errore:
 Problema: cannot install both kubelet-1.18.4-0.x86_64 and kubelet-1.21.3-0.x86_64
  - cannot install the best update candidate for package kubernetes-cni-0.8.7-0.x86_64
  - cannot install the best update candidate for package kubelet-1.21.3-0.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Post Reply