Error: for repository'appstream' Download metadata failed : Cannot prepare internal mirrorlist: No URLs in mirrorlist
CentOS-8 – AppStream failed to download metadata for repo 'appstream' Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Centos seriesLinuxIf the system says you don’t want to play it, you won’t be able to play it anymore. The official has given up maintenance and the software repository cannot be downloaded. Let’s look at the solution below.
Solution:
Delete /etc/yumAll files in the .repos.d/ folder. Download the following two software sources toserversuperior.
wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo
After the installation is complete, update the cache.
yum clean all && yum makecache