关于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感觉很多应用都不更新支持了,用起来有很多坑。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值