2014-07-23 165 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的域名服务器