第二次安装docker时,报Transaction check error的解决方法

如果在yum安装软件的时候,出现了Transaction check error:这种情况,说明rpm软件包出现了冲突,解决方法是:

vi /etc/yum.repos.d/epel.repo   

将enabled=1改为0,并且执行:yum list installed | grep docker,会出现

docker-client.x86_64                 2:1.12.6-61.git85d7426.el7.centos @extras  
docker-common.x86_64                 2:1.12.6-61.git85d7426.el7.centos @extra
将上述删除即可
[root@centos7 lib]# rpm -e docker-client.x86_64 
[root@centos7 lib]# rpm -e docker-common.x86_64 

然后在查看getenforce,如果开启,则关闭,最后再重新yum安装想安装的软件就可以了。
---------------------
作者:czz1141979570
来源:CSDN
原文:https://blog.csdn.net/czz1141979570/article/details/78598274
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自www.cnblogs.com/maohuidong/p/9900191.html