I have a VM running CentOS 7 that I have not used for a long time. Today I launched it and tried to update the CentOS system to the latest version using
yum update, but I got a lot of errors:
Loaded plugins: fastestmirror, langpacks http//bay.uchicago.edu/centos/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. http//mirror.cs.pitt.edu/centos/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. http//mirror.anl.gov/pub/centos/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden Trying other mirror. http//mirror.pac-12.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. http//centos.expedientevirtual.com/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror.
Many other similar errors are omitted ...
Trying other mirror. Loading mirror speeds from cached hostfile * base: bay.uchicago.edu * epel: csc.mcs.sdsmt.edu * extras: mirror.ancl.hawaii.edu * nux-dextop: li.nux.ro * updates: centos-distro.cavecreek.net No packages marked for update
I deleted the colon after http in the above error messages to avoid warnings. I think these errors might come from the CentOS version I am using: 7.0.1406 -- since current latest version is a new one, say, 7.0.1588 or something, the corresponding path does not exist and hence the HTTP error 404. But how to have my current CentOS automatically adjust the path name to the latest version and be able to update from the correct URL? Thanks.