• Centos 7.在安装Docker期间显示错误:

  • 〜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
    

    如何解决这些问题?
  • 当我使用“yum update”时,出现以下错误:

    libselinux与systemd
  • 冲突

    最佳答案

    我遇到了同样的问题,并设法解决了这个问题。
    我做了什么:

    寻找先前的CentOs native docker安装残余并将其删除:

    [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
    

    然后我很好!

    08-25 07:23