Error “ Failed to download metadata for repo ‘AppStream’ : Cannot prepare internal mirrorlist: No URLs in mirrorlist”
Getting error on all the App servers, Jump server, Storage server and on every host.
Need help on this.
Thank you
Is this in a lab? If so please provide the link. I think there was an issue with some labs but this has recently been fixed.
Hello al1, I am having this issue currently in the Install Docker Package Engineer Lab, in the 1st assignment of the Docker module and the issue is happening on App Server 2 as I remember I completed the task on App Server 3. Hope this help.
for me this helped me fix the issue:
cd /etc/yum.repos.d/
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-*
That’s essentially the fix we’re applying to the labs right now. The problem is that CentOS 8 Stream went “end of life” last Friday (31 May 2024), and they pulled the plug on the repos, moving them to vault.centos.org. So your sed invocation handles that move. The vault.centos.org versions are not receiving any updates, even for security bugs, so it’s a temporary measure. We will likely be moving off CentOS for an alternative RedHat family distribution that is actually supported reliably.
The last 3 questions in the test for Linux 1 in Kode Engineer require yum to download packages. Needless to say, I was unable to do that. Is there a time frame for the fix? And what can be done regarding the test?