下午好,我试图在Red Hat 8上安装Docker并按照页面上的教程进行操作:
https://www.linuxtechi.com/install-docker-ce-centos-8-rhel-8/
我发现了我的解决方案找不到的错误,并且它不允许我继续前进
[root@srvdevrma1 ~]# dnf -y install docker-ce --nobest
Updating Subscription Management repositories.
Last metadata expiration check: 0:29:57 ago on Mon 16 Dec 2019 03:38:50 PM -04.
Dependencies resolved.
Problem: package docker-ce-3:19.03.5-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- cannot install the best candidate for the job
- package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
- package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
- package containerd.io-1.2.2-3.el7.x86_64 is excluded
- package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
=================================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================================
Installing:
docker-ce x86_64 3:18.09.1-3.el7 docker-ce-stable 19 M
Installing dependencies:
containerd.io x86_64 1.2.0-3.el7 docker-ce-stable 22 M
docker-ce-cli x86_64 1:19.03.5-3.el7 docker-ce-stable 39 M
libcgroup x86_64 0.41-19.el8 rhel-8-for-x86_64-baseos-rpms 70 k
Skipping packages with broken dependencies:
docker-ce x86_64 3:19.03.5-3.el7 docker-ce-stable 24 M
Transaction Summary
=================================================================================================================================================
Install 4 Packages
Skip 1 Package
Total size: 80 M
Installed size: 338 M
Downloading Packages:
[SKIPPED] containerd.io-1.2.0-3.el7.x86_64.rpm: Already downloaded
[SKIPPED] docker-ce-18.09.1-3.el7.x86_64.rpm: Already downloaded
[SKIPPED] docker-ce-cli-19.03.5-3.el7.x86_64.rpm: Already downloaded
[SKIPPED] libcgroup-0.41-19.el8.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
**Error: Transaction check error:
file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-build.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-commit.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-container-prune.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-container.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-cp.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-create.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-diff.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-events.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-exec.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-export.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-history.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-image-prune.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-image.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-images.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-import.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-info.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-inspect.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-kill.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-load.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-login.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-logout.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-logs.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-pause.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-port.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-ps.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-pull.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-push.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-restart.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-rm.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-rmi.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-run.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-save.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-search.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-start.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-stats.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-stop.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-system-df.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-system-prune.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-system.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-tag.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-top.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-unpause.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-version.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume-create.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume-inspect.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume-ls.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume-prune.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume-rm.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-volume.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker-wait.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch
file /usr/share/man/man1/docker.1.gz from install of docker-ce-cli-1:19.03.5-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module+el8.1.0+4240+893c1ab8.noarch**
我的问题在最后几行
如何解决此冲突?
我无法辨别哪个软件包是冲突所在
错误是由于与docker-cli和名为Podman的软件包冲突而引起的。
作为OP的注释,卸载此特定程序包可通过sudo yum uninstall podman
解决此问题