rocky-tools icon indicating copy to clipboard operation
rocky-tools copied to clipboard

Now that CentOS 8 Stream is EOL script fails to download dependencies

Open TheFiZi opened this issue 8 months ago • 5 comments

[root@localhost temp]# ./migrate2rocky.sh -r

migrate2rocky - Begin logging at Sat 15 Jun 2024 12:52:23 PM PDT.


Removing dnf cache
Preparing to migrate CentOS Stream 8 to Rocky Linux 8.

Determining repository names for CentOS Stream 8.Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Failed to fetch info for package apr-util-ldap.x86_64.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

Swapping out the repos to use vault.centos.org solves the problem (Note: Following code edited by Peter Ajamian to use Rocky Linux vault.)

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://dl.rockylinux.org/vault|g' /etc/yum.repos.d/CentOS-*

Not sure if this is something you want to address in the script or not but posting here to potentially save someone else some digging.

I was able to migrate from an EOL CentOS 8 Stream to Rocky 8.10 without any problems.

TheFiZi avatar Jun 15 '24 20:06 TheFiZi