用yum安装pgadmin3 centos 6。

时间:2021-03-11 22:48:49

I am trying to install pgadmin3 in centos 6. But I am getting this error. How to avoid this and install pgAdmin3.

我正试着在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 个解决方案

#1


2  

"Couldn't resolve host" This is a problem with either your dns or your internet connection.

“无法解析主机”这是您的dns或internet连接的问题。

To test your internet connection you can test that you receive answers from the ping: ping 8.8.8.8

要测试您的internet连接,您可以测试您从ping: ping 8.8.8.8中收到答案。

To test your dns you can test that with: ping www.google.com

要测试你的dns,你可以用:ping www.google.com来测试。

If its an internet connection problem you can check that you have a valid gateway with: ip route show

如果它是一个网络连接问题,您可以检查您有一个有效的网关与:ip路由显示。

If its a dns problem, check in your /etc/resolv.conf that there are valid entries like: nameserver 8.8.8.8 nameserver 8.8.4.4

如果是dns问题,请检查您的/etc/resolv。如果有有效的条目,比如:nameserver 8.8.8.8 nameserver 8.8.4.4。

#2


1  

I had the same problem with DNS entries disappearing being the problem...

我遇到了同样的问题,DNS条目消失了……

try #curl http://www.google.com and see if the system throws up an empty resolv.conf file...

试试#curl http://www.google.com,看看系统是否弹出一个空的resolv。配置文件…

if so,

如果是这样,

vi /etc/resolv.conf

enter... nameserver 8.8.8.8 nameserver 8.8.4.4

输入……命名服务器8.8.8.8命名服务器8.8.4.4

or use your isp's nameservers

或者使用isp的域名服务器。

#1


2  

"Couldn't resolve host" This is a problem with either your dns or your internet connection.

“无法解析主机”这是您的dns或internet连接的问题。

To test your internet connection you can test that you receive answers from the ping: ping 8.8.8.8

要测试您的internet连接,您可以测试您从ping: ping 8.8.8.8中收到答案。

To test your dns you can test that with: ping www.google.com

要测试你的dns,你可以用:ping www.google.com来测试。

If its an internet connection problem you can check that you have a valid gateway with: ip route show

如果它是一个网络连接问题,您可以检查您有一个有效的网关与:ip路由显示。

If its a dns problem, check in your /etc/resolv.conf that there are valid entries like: nameserver 8.8.8.8 nameserver 8.8.4.4

如果是dns问题,请检查您的/etc/resolv。如果有有效的条目,比如:nameserver 8.8.8.8 nameserver 8.8.4.4。

#2


1  

I had the same problem with DNS entries disappearing being the problem...

我遇到了同样的问题,DNS条目消失了……

try #curl http://www.google.com and see if the system throws up an empty resolv.conf file...

试试#curl http://www.google.com,看看系统是否弹出一个空的resolv。配置文件…

if so,

如果是这样,

vi /etc/resolv.conf

enter... nameserver 8.8.8.8 nameserver 8.8.4.4

输入……命名服务器8.8.8.8命名服务器8.8.4.4

or use your isp's nameservers

或者使用isp的域名服务器。