- Newest
- Most votes
- Most comments
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.
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
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.
Relevant content
- Accepted Answerasked 4 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 9 months ago