centos 7 mirror has moved, breaks yum installs

0

Recently, the mirrors for centos 7 at http://mirror.centos.org/centos/7 has been moved. This breaks the .repo files in /etc/yum.repos.d/.

Navigation directly to http://mirror.centos.org/centos/ reveals For archived content from EOL releases, see Vault mirror with a link to https://vault.centos.org/.

I fiddled with /etc/yum.repos.d/docker-ce.repo, and replaced

baseurl=http://mirror.centos.org/centos/7/extras/x86_64

with

baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/

However, it turns out that other .repo files have similar issues.

Has Amazon updated their default Amazon Linux 2 .repo files in /etc/yum.repos.d/? How do I get those updates?

MW
asked a month ago608 views
3 Answers
0
Accepted Answer

From the issue description, I understand that you might be facing issues while running yum commands on SageMaker instances created with platform - "Amazon Linux 2, Jupyter Lab 3" due to centos mirror repo.

I cross checked at my and I also noticed centos 7 repo links in /etc/yum.repos.d files and yum commands are failing due to centos-mirror repo. After disabling centos-mirror repo, I was able to execute basic yum commands ( "yum list installed" and "sudo amazon-linux-extras install epel" ) without any issue.

Incase you are not installing packages from centos-mirror repo, you can disable it using "yum-config-manager --disable centos-extras" and can proceed running yum commands.

Thank you for providing your valuable feedback on the service. I have raised a feature request with the service team on your behalf regarding the updation of centos repos in SageMaker instances. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.

AWS
answered a month ago
0

the mirrors for centos 7 at http://mirror.centos.org/centos/7 has been moved. This breaks the .repo files in /etc/yum.repos.d/.

CentOS 7 EOL on 30th June, 2024. Hence the repos are moved to https://vault.centos.org. There are no more new updates

Strongly suggest you use a supported OS. You can refer to CentOS End of Life Guidance for guidance.

Has Amazon updated their default Amazon Linux 2 .repo files in /etc/yum.repos.d/?

AL2 repos are not dependent on CentOS. In fact, AL2 will EOL in June 2025

AWS
EXPERT
Mike_L
answered a month ago
0

Thank you for your suggestions @Mike_L.

I hadn't mentioned that I am using SageMaker, and I think that matters. When creating a new instance, I am given the Platform Identifier options of 'Amazon Linux 2, JupyterLab 1' and 'Amazon Linux 2, JupyterLab 3'.

I am trying to compile a library that requires GCC v11. It seems that my trouble is with attempting to install devtoolset-11-gcc, which I previously could be accomplished using

sudo amazon-linux-extras install epel
sudo yum install devtoolset-11-gcc devtoolset-11-gcc-c++

These break due to the missing Centos repositories.

I suspect that my best option would be to compile GCC v11 from source.

MW
answered a month ago