[root@localhost ~]# dnf update CentOS-8 - AppStream 35 B/s | 38 B 00:01 Failed to download metadata for repo 'AppStream' Error: Failed to download metadata for repo 'AppStream'
Recently i wanted to install `screens` package and stumbled upon with the
error above.
Solution was,
[root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* [root@localhost yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Reference from this
article.
Hope it helps.
Comments