关于centos6中的yum Error总结

问题1:Loaded plugins: fastestmirror, refresh-packagekit, security

You need to be root to perform this command.
原因1:centos没有root权限,需要切换到root用户下进行操作
解答1:切换到root用户下:su

问题2:Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process
Determining fastest mirrors
原因2:centos6的yum源需要重新设定一下。
解答2
fastestmirror是yum的一个加速插件,这里是插件提示信息是插件不能用了。

  1. 修改配置文件
vim  /etc/yum/pluginconf.d/fastestmirror.conf

由enabled = 1修改为enabled = 0 意思是禁用它

vim /etc/yum.conf

修改为plugins=0 不使用插件
2)清除缓存并重新构建yum 源

yum clean all
yum clean dbcache
yum makecache
问题3:Setting up Install Process No package docker available. Error: Nothing to do

原因3:目前支持centos6的docker镜像比较少,可能拉取不到。
解答3

 yum -y install epel-release
 yum -y install docker-io

最后,我推荐大家还是安装centos7,centos6感觉很多应用都不更新支持了,用起来有很多坑。


版权声明:本文为weixin_44141284原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。