~wget -qO- https://get.docker.com/ | SH
+ sh -c 'sleep 3; yum -y -q install docker-engine'
Error: docker-engine-selinux conflicts with 2:container-selinux-1.10.3-59.el7.centos.x86_64
You could try using --skip-broken to work around the problem
** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows:
audit-libs-2.6.5-3.el7.x86_64 is a duplicate with audit-libs-2.4.1-5.el7.x86_64
7:device-mapper-1.02.135-1.el7_3.1.x86_64 is a duplicate with 7:device-mapper-1.02.93-3.el7_1.1.x86_64
7:device-mapper-libs-1.02.135-1.el7_3.1.x86_64 is a duplicate with 7:device-mapper-libs-1.02.93-3.el7_1.1.x86_64
kmod-20-9.el7.x86_64 is a duplicate with kmod-14-10.el7.x86_64
libselinux-2.5-6.el7.x86_64 has installed conflicts systemd < ('0', '219', '20'): systemd-208-20.el7_1.5.x86_64
libselinux-2.5-6.el7.x86_64 is a duplicate with libselinux-2.2.2-6.el7.x86_64
libselinux-utils-2.5-6.el7.x86_64 is a duplicate with libselinux-utils-2.2.2-6.el7.x86_64
libsemanage-2.5-4.el7.x86_64 is a duplicate with libsemanage-2.1.10-16.el7.x86_64
libsepol-2.5-6.el7.x86_64 is a duplicate with libsepol-2.1.9-3.el7.x86_64
policycoreutils-2.5-9.el7.x86_64 is a duplicate with policycoreutils-2.2.5-15.el7.x86_64
systemd-219-30.el7_3.6.x86_64 has installed conflicts initscripts < ('0', '9.49.28', '1'): initscripts-9.49.24-1.el7.x86_64
systemd-219-30.el7_3.6.x86_64 is a duplicate with systemd-208-20.el7_1.5.x86_64
systemd-libs-219-30.el7_3.6.x86_64 is a duplicate with systemd-libs-208-20.el7_1.5.x86_64
如何解决这些问题?
当我使用&#39; yum update&#39;时,我会接受错误:
libselinux与systemd冲突
答案 0 :(得分:10)
我有同样的问题,并设法解决它。 我做了什么:
查找以前的CentOs原生docker install remnant并将其删除:
[root@here ~]# rpm -aq | grep docker
docker-common-1.10.3-59.el7.centos.x86_64
[root@here ~]# yum remove docker*
这还不够
查找container-selinux
并将其删除:
[root@here ~]# rpm -qa | grep container-selinux
container-selinux-1.10.3-59.el7.centos.x86_64
首先确保它没有被其他任何东西使用(我有一个疑问,我选择安全玩)
[root@here ~]# rpm -q --whatrequires container-selinux-1.10.3-59.el7.centos.x86_64
no package requires container-selinux-1.10.3-59.el7.centos.x86_64
[root@here ~]# yum remove container-selinux
然后我很好!