Techiio-author
Started by Abhishek JalanApr 6, 2022

Open
Unable to install any package or cannot use yum update in CentOS Linux release 8.2.2004 (Core)

5 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 5 VIEWES SHARE

Unable to install any package or cannot use yum update in CentOS Linux release 8.2.2004 (Core)

Any suggestion?

Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

1 Replies

Techiio-commentatorPrince Mishra replied a month ago0 likes0 dislikes

Step 1: Go to the /etc/yum.repos.d/ directory.
cd /etc/yum.repos.d/

Step 2: Run the below commands
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update
yum update -y

That's it!

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance