2014-07-23 212 views
1

我想安裝pgadmin3在centos 6.但我得到這個錯誤。如何避免這種情況並安裝pgAdmin3。安裝pgadmin3 centos 6與yum

[[email protected] ~]# yum install pgadmin3 
Loaded plugins: fastestmirror, refresh-packagekit, security 
Loading mirror speeds from cached hostfile 
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was 
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" 
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=i386 error was 
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'" 
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras error was 
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" 
Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was 
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.repoforge.org'" 
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=updates error was 
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" 
* base: centos.aol.in 
* epel: epel.mirror.net.in 
* extras: centos.aol.in 
* rpmforge: apt.sw.be 
* updates: centos.aol.in 
http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'linuxdownload.adobe.com'" 
Trying other mirror. 
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'linuxdownload.adobe.com'" 
Trying other mirror. 
http://centos.aol.in/6.5/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.aol.in'" 
Trying other mirror. 
http://centos.excellmedia.net/6.5/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.excellmedia.net'" 
Trying other mirror. 
http://centos.mirror.net.in/centos/6.5/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.mirror.net.in'" 
Trying other mirror. 

回答

2

"Couldn't resolve host"這是您的DNS或您的互聯網連接的問題。

要測試你的互聯網連接,你可以測試你的ping得到答案:ping 8.8.8.8

測試DNS,你可以測試與:ping www.google.com

如果其互聯網連接問題,您可以檢查你有一個有效的網關:ip route show

如果它是一個DNS問題,請檢查您/etc/resolv.conf有像有效條目: nameserver 8.8.8.8 nameserver 8.8.4.4

1

我曾與DNS條目正在消失的問題,同樣的問題...

嘗試#curl http://www.google.com,看看系統拋出了一個空的resolv.conf文件......,

如果是這樣

VI的/etc/resolv.conf

進入... 域名服務器8.8.8.8 域名服務器8.8.4.4

或使用你的isp的域名服務器