yum fails

General support questions including new installations
Post Reply
crimsonclay
Posts: 1
Joined: 2015/01/06 18:12:16

yum fails

Post by crimsonclay » 2017/04/06 15:47:43

I've just started a new job and inheirted numerous CentOS boxes, none of which have been updated in the past couple of years. Upon trying to install auditd, I have run into a yum issue. That being yum fails. I can't install anything.

I've removed and resinstalled the default CentOS repos. I've done a yum clean all.

Here are the errors I am seeing.

# yum update check
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* addons: mirror.cs.pitt.edu
* base: mirror.trouble-free.net
* c5-media:
* epel: mirror.math.princeton.edu
* extras: mirror.beyondhosting.net
* updates: mirror.millry.co
http://mirror.cs.pitt.edu/centos/5.11/a ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.liquidweb.com/CentOS/5.1 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://reflector.westga.edu/repos/CentO ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://centos.firehosted.com/5.11/addon ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://repo.us.bigstepcloud.com/centos/ ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.rit.edu/centos/5.11/addo ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
addons | 1.9 kB 00:00
addons/primary_db | 1.1 kB 00:00
http://mirror.trouble-free.net/centos/5 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
base | 4.7 kB 00:00
http://mirror.lax.hugeserver.com/centos ... repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
http://mirrors.kernel.org/centos/5.11/o ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.arsc.edu/centos/5.11/os/ ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.vcu.edu/pub/gnu%2Blinux/c ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.hmc.edu/centos/5.11/os/x8 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.cs.vt.edu/pub/CentOS/5.11 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.steadfast.net/centos/5.11 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://repos.mia.quadranet.com/centos/5 ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.keystealth.org/centos/5.1 ... repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum fails

Post by TrevorH » 2017/04/06 18:59:06

Apparently you should've started your new job a week or two ago. CentOS 5 went EOL at the end of March and there will be no more updates for it. Content has already been removed from the mirror network and shifted to vault.centos.org so you can still get the last updates by pointing your repo files to vault.centos.org instead.

viewtopic.php?f=9&t=57398

Better to update to 5.11 so at least you'll have everything patched that ever was. Next step is to start planning how to get it all to CentOS 7 (I'd skip 6 entirely at this point as it only has one month left before it goes into "Production Phase 3" where only critical security bugs will get fixed).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

kOoLiNuS
Posts: 31
Joined: 2005/04/30 17:20:04
Location: Italy
Contact:

Re: yum fails

Post by kOoLiNuS » 2017/04/07 13:18:30

Hi !
I have to mantain online a machine with 32bit CentOS 5.

So if I have understand correctly I should set my repo as (for example)

Code: Select all

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.11/os/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/5.11/extras/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Also I've disabled the [updates] repo…

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum fails

Post by TrevorH » 2017/04/07 15:24:32

The url for the base repo would be http://vault.centos.org/5.11/os/i386/ and the equivalent one for updates (yes, you defintely want that and you want it enabled) would be http://vault.centos.org/5.11/updates/i386/

In addition, extras and centosplus have also moved.

However, you mention maintaining this. There is no maintenance any more. It's dead. Your next step is to start planning how to get off it and onto a supported version. The next critical update that comes out for CentOS 6 or 7 is quite likely to also be applicable to CentOS 5 but it will never get fixed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply