概述
运行sudo yum install docker-ce docker-ce-cli containerd.io
命令安装docker时会报Transaction check error
事物检查错误,试了几遍也都是这个问题。
运行事务检查
事务检查成功。
运行事务测试
下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 ‘dnf clean packages’ 删除软件包缓存。
错误:事务检查错误:
file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-build.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-commit.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-container-prune.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-container.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-cp.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-create.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-diff.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-events.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-exec.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-export.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-history.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-image-prune.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-image.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-images.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-import.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-info.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-inspect.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-kill.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-load.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-login.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-logout.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-logs.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-pause.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-port.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-ps.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-pull.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-push.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-restart.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-rm.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-rmi.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-run.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-save.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-search.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-start.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-stats.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-stop.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-system-df.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-system-prune.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-system.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-tag.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-top.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-unpause.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-version.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume-create.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume-inspect.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume-ls.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume-prune.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume-rm.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-volume.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker-wait.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
file /usr/share/man/man1/docker.1.gz from install of docker-ce-cli-1:19.03.9-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
后面发现是安装docker会与podman有冲突,这个在上面的大段错误信息中也有描述到。
- 通过
rpm -q podman
命令查看本地环境中的podman信息
[root@wuwl ~]# rpm -q podman
podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
- 卸载podman,
dnf remove podman
[root@wuwl ~]# dnf remove podman
模块依赖问题
问题 1: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
问题 2: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
依赖关系解决。
========================================================================================================================
软件包
架构
版本
仓库
大小
========================================================================================================================
移除:
podman
x86_64
1.4.2-5.module_el8.1.0+237+63e26edc
@AppStream
51 M
移除依赖的软件包:
cockpit-podman
noarch
4-1.module_el8.1.0+237+63e26edc
@AppStream
5.1 M
清除未被使用的依赖关系:
libvarlink
x86_64
18-3.el8
@anaconda
129 k
oci-systemd-hook
x86_64
1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc
@AppStream
74 k
podman-manpages
noarch
1.4.2-5.module_el8.1.0+237+63e26edc
@AppStream
134 k
事务概要
========================================================================================================================
移除
5 软件包
将会释放空间:56 M
确定吗?[y/N]: y
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中
:
1/1
运行脚本: cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch
1/1
删除
: cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch
1/5
删除
: podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
2/5
运行脚本: podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
2/5
删除
: podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
3/5
删除
: oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64
4/5
删除
: libvarlink-18-3.el8.x86_64
5/5
运行脚本: libvarlink-18-3.el8.x86_64
5/5
验证
: cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch
1/5
验证
: libvarlink-18-3.el8.x86_64
2/5
验证
: oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64
3/5
验证
: podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
4/5
验证
: podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
5/5
已移除:
podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch
libvarlink-18-3.el8.x86_64
oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64
podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
完毕!
- 安装docker
[root@wuwl ~]# sudo yum install -y yum-utils
>
device-mapper-persistent-data
>
lvm2
上次元数据过期检查:0:06:02 前,执行于 2020年05月25日 星期一 22时00分47秒。
软件包 yum-utils-4.0.8-3.el8.noarch 已安装。
软件包 device-mapper-persistent-data-0.8.5-2.el8.x86_64 已安装。
软件包 lvm2-8:2.03.05-5.el8.0.1.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
[root@wuwl ~]# sudo yum-config-manager
>
--add-repo
>
https://download.docker.com/linux/centos/docker-ce.repo
添加仓库自:https://download.docker.com/linux/centos/docker-ce.repo
[root@wuwl ~]# sudo yum install docker-ce docker-ce-cli containerd.io
CentOS-8 - AppStream
2.8 kB/s | 4.3 kB
00:01
CentOS-8 - Base
5.4 kB/s | 3.9 kB
00:00
CentOS-8 - Extras
1.5 kB/s | 1.5 kB
00:01
Docker CE Stable - x86_64
9.0 kB/s | 3.5 kB
00:00
软件包 containerd.io-1.2.6-3.3.fc30.x86_64 已安装。
依赖关系解决。
========================================================================================================================
软件包
架构
版本
仓库
大小
========================================================================================================================
安装:
docker-ce
x86_64
3:19.03.9-3.el7
docker-ce-stable
24 M
docker-ce-cli
x86_64
1:19.03.9-3.el7
docker-ce-stable
38 M
安装依赖关系:
libcgroup
x86_64
0.41-19.el8
BaseOS
70 k
事务概要
========================================================================================================================
安装
3 软件包
总下载:62 M
安装大小:263 M
确定吗?[y/N]: y
下载软件包:
(1/3): libcgroup-0.41-19.el8.x86_64.rpm
176 kB/s |
70 kB
00:00
(2/3): docker-ce-19.03.9-3.el7.x86_64.rpm
1.2 MB/s |
24 MB
00:20
(3/3): docker-ce-cli-19.03.9-3.el7.x86_64.rpm
1.9 MB/s |
38 MB
00:20
------------------------------------------------------------------------------------------------------------------------
总计
2.6 MB/s |
62 MB
00:23
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中
:
1/1
安装
: docker-ce-cli-1:19.03.9-3.el7.x86_64
1/3
运行脚本: docker-ce-cli-1:19.03.9-3.el7.x86_64
1/3
运行脚本: libcgroup-0.41-19.el8.x86_64
2/3
安装
: libcgroup-0.41-19.el8.x86_64
2/3
运行脚本: libcgroup-0.41-19.el8.x86_64
2/3
安装
: docker-ce-3:19.03.9-3.el7.x86_64
3/3
运行脚本: docker-ce-3:19.03.9-3.el7.x86_64
3/3
验证
: libcgroup-0.41-19.el8.x86_64
1/3
验证
: docker-ce-3:19.03.9-3.el7.x86_64
2/3
验证
: docker-ce-cli-1:19.03.9-3.el7.x86_64
3/3
已安装:
docker-ce-3:19.03.9-3.el7.x86_64
docker-ce-cli-1:19.03.9-3.el7.x86_64
libcgroup-0.41-19.el8.x86_64
完毕!
最后
以上就是闪闪哈密瓜为你收集整理的centOs8安装docker报错:错误:事务检查错误的全部内容,希望文章能够帮你解决centOs8安装docker报错:错误:事务检查错误所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复