Centos 解决冲突

Centos 解决冲突

我正在尝试在 Centos 8 上安装 kubernetes 和 docker,但出现包冲突,如何修复它们?

[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)

[root@master-node ~]# yum install kubeadm docker
Ultima verifica della scadenza dei metadati: 1:50:16 fa il mer 28 lug 2021 02:08:47 EDT.
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.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:19.03.13-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:19.03.14-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:19.03.15-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.0-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.1-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.2-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.3-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.4-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.5-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - package docker-ce-cli-1:20.10.6-3.el8.x86_64 conflicts with docker provided by podman-docker-3.3.0-0.15.module_el8.5.0+870+f792de72.noarch
  - cannot install the best candidate for the job
(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)

答案1

# yum install kubeadm docker 

-> 从 Red Hat 安装 podman-docker

# yum install kubeadm docker-ce.x86_64 

-> 安装 docker-ce。但您需要 docker-ce 存储库就位。

相关内容