Page 1 of 1
RESOLVED: Issue upgrading due to old CentOS version
Posted: Thu Nov 14, 2024 7:36 am
by marcmooney-atos
Hi,
I tried to upgrade from 5.59 to 5.9.0 on a CentOS 7 and got the following errors:
http://ftp.heanet.ie/pub/centos/7.6.181 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.bytemark.co.uk/centos/7.6 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
I know it's an old version of CentOS, and one of the fixes that appeared was "Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. "
I'm having difficulty finding a working upstream, does any know of any working upstreams for 7.6.1810?
Or if there's another option to resolve this, I'd appreciate any advice.
Thanks.
Re: Issue upgrading due to old CentOS version
Posted: Thu Nov 14, 2024 5:44 pm
by sgardil
marcmooney-atos wrote: ↑Thu Nov 14, 2024 7:36 am
Hi,
I tried to upgrade from 5.59 to 5.9.0 on a CentOS 7 and got the following errors:
http://ftp.heanet.ie/pub/centos/7.6.181 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.bytemark.co.uk/centos/7.6 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
I know it's an old version of CentOS, and one of the fixes that appeared was "Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. "
I'm having difficulty finding a working upstream, does any know of any working upstreams for 7.6.1810?
Or if there's another option to resolve this, I'd appreciate any advice.
Thanks.
Hey
@marcmooney-atos
That is quite old. Have you tried changing your base mirror from a specific version of 7 to just 7? If not maybe give that a shot and see if the newer cent 7 repos than 6 work. Outside of that maybe a vault mirror could work. Give those a shot and see if it works.
Re: Issue upgrading due to old CentOS version
Posted: Thu Nov 14, 2024 5:48 pm
by gwesterman
You could also try
migrating to RHEL 7 then upgrading because RHEL 7 mirrors are more reliably available.
Re: Issue upgrading due to old CentOS version
Posted: Fri Nov 15, 2024 12:29 am
by kg2857
Try searching the internet for centos 7 eol to see some extended support options.
Re: Issue upgrading due to old CentOS version
Posted: Fri Nov 15, 2024 10:26 am
by marcmooney-atos
Thanks all,
I'll try those options.
Re: Issue upgrading due to old CentOS version
Posted: Fri Nov 15, 2024 11:03 am
by sgardil
marcmooney-atos wrote: ↑Fri Nov 15, 2024 10:26 am
Thanks all,
I'll try those options.
Awesome, let us know if any of the suggested solutions worked out for you.
Re: Issue upgrading due to old CentOS version
Posted: Tue Nov 19, 2024 5:20 am
by marcmooney-atos
Hi,
This solution worked for me:
1. Go to /etc/yum.repos.d/
2. Make copy of original file:
cp CentOS-Base.repo CentOS-Base.repo.old
3. Open and edit file with any text editor:
4. After editing it should looks like:
[base]
name=CentOS-$releasever - Base
#mirrorlist=
http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=
http://vault.centos.org/7.6.1810/os/$basearch
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=
http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=
http://vault.centos.org/7.6.1810/updates/$basearch/
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=
http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=
http://vault.centos.org/7.6.1810/extras/$basearch/
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=
http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=
http://vault.centos.org/7.6.1810/centosplus/$basearch/
yum clean all
Upgraded to 5.9.0 with no issues using the centos vault in the baseurl configuration.
Thanks for all the help with this.
Re: Issue upgrading due to old CentOS version
Posted: Tue Nov 19, 2024 11:12 am
by sgardil
Glad that we were able to get a solution for you and that the vault worked for your mirrors. I will go ahead and mark this thread a finished. Let us know if you have anymore questions.