Home > CentOS, Oracle Linux, Red Hat > CentOS: yum operations fail with errors like “HTTP Error 404: Not Found” or “550 os: No such file or directory”

CentOS: yum operations fail with errors like “HTTP Error 404: Not Found” or “550 os: No such file or directory”

Problem description:

You want to update / upgrade your CentOS / RHEL-based Linux installation, but you are receiving errors like “HTTP Error 404: Not Found” or “550 os: No such file or directory”:

[root@centos01 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fraunhofer.de
 * extras: mirror.fraunhofer.de
 * updates: centos.bio.lmu.de
ftp://mirror.fraunhofer.de/centos.org/5.7/os/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 os: No such file or directory
Trying other mirror.
http://centos.intergenia.de/5.7/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://centos.kiewel-online.ch/centos/5.7/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Der Name oder der Dienst ist nicht bekannt')>
Trying other mirror.
http://centos.mirroraustria.at/5.7/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://centos.psw.net/centos/5.7/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://centos.vieth-server.de/5.7/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
...
...

 
Problem resolution:
The repomd.xml file listed as missing comes from the Continuous Refresh Repo (CR) for your CentOS version, but your release has been superseded by a new one. In order to get yum to refresh its metadata, just clean up the existing one:

[root@centos01 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@centos01 ~]#

 
Now yum should determine the new mirror information and allow you to continue your update, upgrade or install operation by using the correct mirror-URLs:

[root@centos01 ~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: tweedo.com
 * extras: centos.mirroraustria.at
 * updates: centos.mirroraustria.at
base                                                                                                                                                                      | 1.1 kB     00:00     
base/primary                                                                                                                                                              | 967 kB     00:00     
base                                                                                                                                                                                   2725/2725
extras                                                                                                                                                                    | 2.1 kB     00:00     
extras/primary_db                                                                                                                                                         | 171 kB     00:00     
updates                                                                                                                                                                   | 1.9 kB     00:00     
updates/primary_db                                                                                                                                                        | 564 kB     00:00     
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package acl.i386 0:2.2.39-8.el5 set to be updated
---> Package acpid.i386 0:1.0.4-12.el5 set to be updated
...
...

 

Categories: CentOS, Oracle Linux, Red Hat Tags:
  1. No comments yet.
  1. No trackbacks yet.

Connect with Facebook