對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2012/6/20 10:37:59
把YUM的升級點改成這個鏡像站:
把文件裡的內容改成以下就可以了
常見錯誤分析
問題一
問題二
問題三
解決方法
Fixing the CentOS issue: Cannot find a valid baseurl for repo: update
The issue stems from yum's inability to utilize the nifty mirroring system setup for CentOS. To resolve it, you need to manually insert your actual DNS servers into /etc/resolv.conf
So, if you're behind a home network, you'll need to determine your ISP's nameservers and insert one per line into /etc/resolv.conf like this:
nameserver 202.96.209.133nameserver 172.01.14.14nameserver 172.01.14.28Trackbackhttp://www.jroller.com/page/agileanswers?entry=fixing_the_centos_issue_cannot
簡單來說,碰到 CentOS 更新失敗
錯誤訊息類似:
請馬上檢查你的網路設定檔
例如:/etc/resolv.conf
確定網路無誤、 DNS 無誤的話,應該就可以解決這類問題囉。
參考文件:
CentOS使用YUM更新_生活就是等待_百度空间
CentOS 更新失敗 @ 文森特の灰肝誌 :: 痞客邦 PIXNET ::
#vi /etc/yum.repos.d/CentOS-Base.repo
把文件裡的內容改成以下就可以了
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.be10.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.be10.com/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.be10.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.be10.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.be10.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos-4
常見錯誤分析
問題一
Setting up Install Process
Setting up repositories
http://mirror.be10.com/centos/4.3/updates/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to t
問題二
Setting up Install Process
Setting up repositories
http://mirror.be10.com/centos/4/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in na me resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try
問題三
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
解決方法
Fixing the CentOS issue: Cannot find a valid baseurl for repo: update
The issue stems from yum's inability to utilize the nifty mirroring system setup for CentOS. To resolve it, you need to manually insert your actual DNS servers into /etc/resolv.conf
So, if you're behind a home network, you'll need to determine your ISP's nameservers and insert one per line into /etc/resolv.conf like this:
nameserver 202.96.209.133nameserver 172.01.14.14nameserver 172.01.14.28Trackbackhttp://www.jroller.com/page/agileanswers?entry=fixing_the_centos_issue_cannot
簡單來說,碰到 CentOS 更新失敗
錯誤訊息類似:
http://mirror.centos.org/centos/5/extras/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: extras
請馬上檢查你的網路設定檔
例如:/etc/resolv.conf
nameserver 168.95.1.1
nameserver 139.175.55.244
nameserver 8.8.8.8
確定網路無誤、 DNS 無誤的話,應該就可以解決這類問題囉。
參考文件:
CentOS使用YUM更新_生活就是等待_百度空间
CentOS 更新失敗 @ 文森特の灰肝誌 :: 痞客邦 PIXNET ::