This error is mainly due to DNS
The following error was reported today in the Linux environment via YUM install software:
>
The following error was reported today in the Linux environment via YUM install software:
[root@multi-mysql yum. Repos. D]
# yum install ncurses devel-y
Loaded: fastestmirror, security
Graphics :Loading mirror graphics from cached hostfile
Could not retrieve mirrorlist HTTP :
//mirrorlist
. Centos.org/?release=6& arch=x86_64& Repo = OS error was
14: PYCURL error 6 -
"Couldn't resolve host 'mirrorlist.centos.org'"
The Error: always </ code> find </ code> a valid baseurl </ code> for </ code> ': base </ code> </ td> </ tr> </ tbody> </ table>
Literally, the address mirrorlist.centos.org cannot be resolved, which should be related to the CONFIGURATION of DNS network. The final solution is to add the IP address of DNS server in the configuration file of DNS domain name resolution:
The
/root @ multi - mysql ~ </ code> # vim/etc/resolv. Conf </ code> nameserver 8.8.8.8 </ code> nameserver 202.106.0.20 </ code> </ td> </ tr> </ tbody> </ table>
Restart network service
>
/root @ multi - mysql ~ </ code> #/etc/init. D/network restart </ code> Shutting down interface eth0: [OK] </ code> The Shutting down loopback interface: [OK] </ code> Bringing up loopback interface: [OK] </ code> bring up interface eth0: code>if
IP address 192.168.1.202 is already
in
use
0 for
1 2 device eth0... </ code> </ code> [OK] </ code> </ td> </ tr> </ tbody> </ table>
Reinstall YUM, normal
It turns an exciting telephone line into an exciting field.
[root@multi-mysql ~]
# yum install nmap-y
Loaded plugins: fastestmirror, security
0 Loading mirror file
1 </ code> * base: mirrors.yun-idc.com </ code> </ code> * extras: mirrors.yun-idc.com </ code> </ code> * updates: mirrors.yun-idc.com </ code> The base | 3.7 kB 00:00 </ code> The base </ code> /primary_db </ code> | 4.6 MB 00:01onsaturday (UK time) </ code> The extras | 3.4 kB 00:00 </ code> The extras </ code> /primary_db </ code> | 33 kB 00:00 </ code> The updates | 3.4 kB 00:00 </ code> The updates </ code> /primary_db </ code> | 2.6 MB 00:00 </ code> set up Install Process
Dependencies
--> Running the transaction check </ code> - & gt; Package nmap.x86_64 2:5.51-4. El6 will be installed
--> Finished the Dependency Resolution </ code> ... Omitted here
Read More:
- CentOS 8: No URLs in mirrorlist error [How to Solve]
- [Solved] Centos7 Wget Error: nown. wget: unable to resolve host address ‘mirrors.aliyun.com’
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] Exception in replication between CentOS virtual machine and host
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- [Solved] curl: (6) Could not resolve host: harbor.od.com; Unknown error
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- The problem of inconsistent host names in building rabbitmq on Linux
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- [Solved] yum Install rpmdb Error: error: rpmdb: BDB0113 failed: BDB1507 Thread died in Berkeley DB library
- [Solved] Linux scp Error: Host key verification failed.
- [Solved] Centos Start rabbitmq Error: ERROR: epmd error for host “192“:badarg (unknown POSIX error)
- [Solved] Linux ECDSA key Error: Host key verification failed
- Linux Error: Failed to connect to ::1: No route to the host
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- [Solved] Linux Error: Failed to start bean ‘webServerStartStop‘; nested exception is org.springframework.
- [Solved] Using GCP copy to report errors in Linux: DBUS. Exceptions. Dbusexception: org. Freedesktop. DBUS. Error. Notsupported:
- [Solved] SSH Startup Error: unable to load host key /etc/ssh/ssh_host_ed25519_key bad permissions