LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum repo change results in mirror path errors (https://www.linuxquestions.org/questions/linux-newbie-8/yum-repo-change-results-in-mirror-path-errors-870798/)

yoda987 03-24-2011 03:17 PM

Yum repo change results in mirror path errors
 
I just changed repos back to a standard CentOS base repo due to the custom one I was using needing https, and due to a proxy issue, only have http.

When I run yum update, it finds that the path for the mirrors is off slightly giving me 404 errors.

---> Downloading header for cups-libs to pack into transaction set.
http://ftp.linux.ncsu.edu/pub/CentOS...10.x86_64.rpm: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
ftp://ftp.ussg.iu.edu/linux/centos/4...10.x86_64.rpm: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
http://mirror.nwresd.org/pub/centos/...10.x86_64.rpm: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.

Path here is http://site/pub/centos/4.8/os/x86_64/RPMS/file

Correct path should be http://site/pub/centos/4.8/os/x86_64/centos/RPMS/file

Any idea how to get this fixed? Thx!

corp769 03-24-2011 03:24 PM

You need to take a look at your yum.conf file and edit what is needed to reflect the changes to make it work.

yoda987 03-24-2011 03:52 PM

Im not quite sure where its getting the paths from in the first place to correct it. Also Im assuming you think my repo is in yum.conf.

The repo I was using before was a third party repo, and had totally wacked paths for their private servers.

lazlow 03-24-2011 04:07 PM

Here is the standard centos repo file:

Quote:

CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[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/
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
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
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/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

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


All times are GMT -5. The time now is 03:14 AM.