CentOS 软件源更新与问题解决
CentOS 软件源路径
yum clean metadata
yum clean all
vim /etc/yum.repos.d/centalt.repo # 软件源及文件
[root@ithomer yum.repos.d]# cd /etc/yum.repos.d/
[root@ithomer yum.repos.d]# ls -l
total 64
-rw-r--r-- 1 root root 148 Nov 23 13:46 centalt_bk.repo
-rw-r--r-- 1 root root 168 Nov 23 13:47 centalt.repo
-rw-r--r-- 1 root root 2272 Mar 14 2014 CentOS-Base.repo
-rw-r--r-- 1 root root 638 Dec 1 2013 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 630 Dec 1 2013 CentOS-Media.repo
-rw-r--r-- 1 root root 4528 Dec 1 2013 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo
-rw-r--r-- 1 root root 739 Mar 20 2013 mirrors-rpmforge
-rw-r--r-- 1 root root 717 Mar 20 2013 mirrors-rpmforge-extras
-rw-r--r-- 1 root root 728 Mar 20 2013 mirrors-rpmforge-testing
-rw-r--r-- 1 root root 122 Mar 18 2014 mongodb.repo
-rw-r--r-- 1 root root 2298 Mar 1 2014 remi.repo
-rw-r--r-- 1 root root 1128 Mar 20 2013 rpmforge.repo
-rw-r--r-- 1 root root 852 Nov 6 2010 webtatic.repo
问题1: [Errno 14] PYCURL ERROR 22
[root@ithomer yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 5.2 kB 00:00
* base: mirrors.163.com
* epel: ftp.sjtu.edu.cn
* extras: mirrors.aliyun.com
* rpmforge: mirrors.neusoft.edu.cn
* updates: mirrors.163.com
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
解决:
vim /etc/yum.repos.d/centalt.repo
修改 baseurl=http://centos.alt.ru/repository/centos/6/$basearch/
为 baseurl=http://mirror.sysadminguide.net/centalt/repository/centos/6/$basearch/
版权所有: 本文系米扑博客原创、转载、摘录,或修订后发表,最后更新于 2017-09-25 18:51:45
侵权处理: 本个人博客,不盈利,若侵犯了您的作品权,请联系博主删除,莫恶意,索钱财,感谢!
转载注明: CentOS 软件源更新与问题解决 (米扑博客)