Error: Failed to download metadata for repository 'appstream'

Error: for repository'' : Cannot prepare internal mirrorlist: No URLs in mirrorlist
-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 seriesIf 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/All files in the .repos.d/ folder. Download the following two software sources tosuperior.

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

 

score

Leave a Reply

Your email address will not be published. Required fields are marked *