我正在尝试在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.
"Couldn't resolve host"
这是您的dns或Internet连接出现的问题。
要测试您的互联网连接,您可以测试是否从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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句