CentOS源问题

进入cd  /etc/yum.repos.d 文件夹下有CentOS-Base.repo文件关于源的信息

报错:


[root@shopai2see-5c673986 yum.repos.d]# yum -y install lib-X11
Loaded plugins: fastestmirror
Setting up Install Process
Repository 'base' is missing name in configuration, using id
Determining fastest mirrors
base                                                                                                                                  | 3.6 kB     00:00     
base/primary_db                                                                                                                       | 4.1 MB     00:02     
No package lib-X11 available.

Error: Nothing to do

问题:源里没有该包

报错:

http://centos.ustc.edu.cn/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.ustc.edu.cn'"Trying other mirror.

源有问题。

报错:Cannot retrieve repository metadata (repomd.xml) for repository 

问题:yum源地址该更新了

换源:

cd  /etc/yum.repos.d 
mv  CentOS-Base.repo CentOS-Base.repo.bk
wget   http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo   CentOS-Base.repo 
yum clean all
yum  update
yum makecache


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值