AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Updating linux kernel centos 6.x12/4/2023 Update the /etc//CentOS-Base.repo similar to the one below, I am using 6.6 update the version based on your need, Strict-Transport-Security: max-age=31536000 Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fipsĬontent-Type: text/html charset=iso-8859-1 You can see here the redirect for the vault site: I’ve updated the repo files and details in the post to reflect one of the few mirrors that still support http. The mirror I originally posted that previously did support http is now only redirecting to https by the looks of it. Update – April 2022 – I’ve updated the epel mirrors to use the Princeton University servers in the US, as someone in the comments pointed out that the epel mirrors were also not working now. Unfortunately this is just to happen more and more, and you really, really should migrate to something more modern, that’s still supported. Update – Feb 2022 – I’ve had to amend the details here again as more and more http mirrors are moving to redirect to https, meaning that on a server with extremely old software packages, you won’t be able to connect as you’ll be pushed to https. Update – Dec 2021 – Someone posted in the comments to say they couldn’t download the configs using the commands I included in the article, and I realise this is due to the various https settings I employ on the website and older CentOS installs not being compatible with what I enforce, so I’ve added the same commands but pulling from AWS S3 below to get around this.ĪWS S3 hosted versions of the same files and the relevant commands are below: curl –output /etc//CentOS-Base.repo If you prefer you can just curl the files down that contain the above config and overwrite the existing old configs: curl -output /etc//CentOS-Base.repoĬurl -output /etc//epel.repo Name=Extra Packages for Enterprise Linux 6 - $basearch - Debug Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Name=Extra Packages for Enterprise Linux 6 - $basearch Then to fix the epel repo, this is the vault config to go into /etc//epel.repo Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 So to fix the base repo, just copy the following into /etc//CentOS-Base.repo The fix here is fairly simple and it’s to use the CentOS vault repos, which are snapshots of older release trees. Removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txtĮrror: Cannot retrieve repository metadata (repomd.xml) for repository: base. YumRepo Error: All mirror URLUniform Resource Identifiers are not using ftp, http or file.Įg. So, you’ll see an error similar to the below when you run the usual yum update commands: Setting up Upgrade Process This is a small note I found regarding the current CentOS 6 status: CentOS 6 is *dead* and *shouldn't* be used anywhere at *all*Īlso, if you’re considering the last non-rolling release of CentOS, CentOS 8, keep in mind that CentOS 8 has had the rug pulled from under it in terms of lifecycle and should have been supported until the end of 2029, but that was brought forward to the end of 2021, and so is also end of life.įor the purposes of what follows though, I’m assuming that you can’t upgrade easily for some reason and that’s why you’re here, stuck in the same hole I was. First of all, if you can, you really should upgrade, to either CentOS Stream if a rolling release works for you, or Alpine or Rocky Linux if you want the same sort of release cadence as CentOS historically had, and before anyone points out that there’s no direct upgrade path, I know, and that makes upgrading basically a reprovision exercise, but still in the longer term, you’ll be better off.
0 Comments
Read More
Leave a Reply. |