CentOS 6.10 sudo yum upgrade/update issues

RavinDJ

Supreme [H]ardness
Joined
Apr 9, 2002
Messages
4,444
I have a dedicated server hosted via 1and1 and I get the following issues when I try to do "sudo yum update" or "sudo yum upgrade" via PuTTY on Win10 Pro:

Code:
[root@server /]# sudo yum update

Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                         | 3.5 kB     00:00
* epel: mirror.math.princeton.edu
http://mirror.us.oneandone.net/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

[root@server /]#

AND:

Code:
[root@server /]# sudo yum upgrade

Loaded plugins: fastestmirror
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                         | 3.5 kB     00:00
* epel: mirror.math.princeton.edu
http://mirror.us.oneandone.net/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

[root@server /]#

Anyone have any ideas why this comes up? It just started a few weeks ago... I didn't even realize until recently :(

I did all the basic troubleshooting and went to the help websites but I couldn't resolve the issue...

Any help will be greatly appreciated. Thanks, guys!
 
In my instance, compatibility with an existing version of a software which will require a chain of upgrades to different software/machines.

If it were as easy as reinstalling Windows 10, all my stuff would be on the latest stable platform.
 
For CentOS 6, my recommendation for handling... first create a file in /etc/yum/vars called /etc/yum/vars/my_version. In that file put 6.10.

Then you'll need an /etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$my_version - Base
baseurl=http://vault.centos.org/$my_version/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$my_version - Updates
baseurl=http://vault.centos.org/$my_version/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$my_version - Extras
baseurl=http://vault.centos.org/$my_version/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$my_version - Plus
baseurl=http://vault.centos.org/$my_version/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$my_version - Contrib
baseurl=http://vault.centos.org/$my_version/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
  • Like
Reactions: mda
like this
In my instance, compatibility with an existing version of a software which will require a chain of upgrades to different software/machines.

If it were as easy as reinstalling Windows 10, all my stuff would be on the latest stable platform.
If you're in a trap like that, someone didn't do their job in your IT management. If your software is EOL you should find a replacement. If it only needs money to update, it's something you must do. If all else fails, create a docker container with the correct OS image and run that on an up-to-date host. The container isolation will provide a layer of security.
 
If you're in a trap like that, someone didn't do their job in your IT management. If your software is EOL you should find a replacement. If it only needs money to update, it's something you must do. If all else fails, create a docker container with the correct OS image and run that on an up-to-date host. The container isolation will provide a layer of security.
You are right of course and in an ideal situation this would have never happened, but hey, gotta work with what we have :D

Good suggestion on the docker though. Will need to look into that
 
Back
Top