Docker Error: Transaction check error in RED HAT

Docker Error: Transaction check error in RED HAT

下午好,我正在尝试在 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

卸载这个特定的包解决了这个问题

这对我有用,只需从 podman 中删除联机帮助页,但保留 podman 本身:

sudo yum remove -y podman-manpages