Error: Failed to download metadata for repository 'appstream'

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
The Centos series of Linux systems are no longer available. The official has given up maintenance and the software repository cannot be downloaded. Let’s see the solution below.

Error: No result found 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 seriesThe system says it won’t play anymore, the official has given up maintenance, and the software warehouse cannot be downloaded. Let’s see 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

 

1/5 - (2 votes)

Leave a Reply

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