Tag Archives: linux yum Error

Linux yum Error: All mirror URLs are not using ftp

All mirror URLs are not using ftp, http[s] or file

Because the support of centos6 has been officially stopped

To solve this problem, execute the following command:

sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo

yum clean all

yum makecache

It’s OK

linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org'”

This error is mainly due to DNS
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 for1 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 file1 </ 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