用yum安装pgadmin3 centos 6

时间:2014-07-23 10:06:58

标签: postgresql centos pgadmin

我正在尝试在centos 6中安装pgadmin3但是我收到了这个错误。如何避免这种情况并安装pgAdmin3。

[root@localhost ~]# 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 个答案:

答案 0 :(得分: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 :(得分:1)

我遇到了同样的问题,DNS条目消失就是问题......

尝试#curl http://www.google.com并查看系统是否抛出一个空的resolv.conf文件......

如果是的话,

vi /etc/resolv.conf

...输入 nameserver 8.8.8.8 nameserver 8.8.4.4

或使用您的isp的名称服务器