[SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.
[SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.
Hello all, thank you for taking the time to read my post!
Firstly, I am running CentOS 6 as a virtual machine. This Vm/Template came packaged from Nagios and is also behind a proxy in a security sensitive environment.
With the research I have done thus far it seems like my YUM key has fallen out of sync with the EPEL Repository. I have cleared the yum cache, cleared the repo cache as part of my own troubleshooting and have run out of ideas to proceed.
I will produce the output of "yum update" tomorrow when I am in the office. - I have verified that the requests are making it through the proxy (this process stopped working two months ago).
I would welcome suggestions as to how I might gather more logs/information!
Firstly, I am running CentOS 6 as a virtual machine. This Vm/Template came packaged from Nagios and is also behind a proxy in a security sensitive environment.
With the research I have done thus far it seems like my YUM key has fallen out of sync with the EPEL Repository. I have cleared the yum cache, cleared the repo cache as part of my own troubleshooting and have run out of ideas to proceed.
I will produce the output of "yum update" tomorrow when I am in the office. - I have verified that the requests are making it through the proxy (this process stopped working two months ago).
I would welcome suggestions as to how I might gather more logs/information!
[SOLVED] Yum attempting to Update/Install Packages - 404 Err
Some time ago, the Fedora infrastructure moved the EPEL urls from a (I think) redhat.com address to a fedoraproject.org one. If you edit /etc/yum.repos.d/epel.repo and look at the mirrorlist there, do you see
[code]
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
[/code]
[code]
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
[/code]
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Hi TrevorH,
Thank you for taking the time to reply to this problem! - I have looked at the /etc/yum.repos.d/epel/repo via cat and the output is in the snippet below!
[code]
[root@PinnNagios tmp]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[/code]
edit: code snippit looked worse than copypasta.
edit2: Yum update output below!
[quote]
------------- Yum Update Error after all mirrors timed out with 9999999999+/-.000000 secs -------------------
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
http://mirror.centos.org/centos/6/cr/i386/repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirror.centos.org/centos/6/cr/i386/repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: failure: repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2 from cr: [Errno 256] No more mirrors to try.
[/quote]
Thank you for taking the time to reply to this problem! - I have looked at the /etc/yum.repos.d/epel/repo via cat and the output is in the snippet below!
[code]
[root@PinnNagios tmp]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[/code]
edit: code snippit looked worse than copypasta.
edit2: Yum update output below!
[quote]
------------- Yum Update Error after all mirrors timed out with 9999999999+/-.000000 secs -------------------
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
http://mirror.centos.org/centos/6/cr/i386/repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirror.centos.org/centos/6/cr/i386/repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: failure: repodata/63633814d4937384dbaac4e189a0120cc77550cae92833ff1d21b2a949a9aeb0-primary.sqlite.bz2 from cr: [Errno 256] No more mirrors to try.
[/quote]
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Try running `yum clean all` then retry. If that fails, is there a proxy server between you and the internet?
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Trevor,
I am behind a proxy - I have validated that it is passing traffic. (data/packet analysis tools on the proxy) I also tested this with a sister Centos Server of the same version and confirmed that my proxy settings/compatibility is/are correct.
'Yum clean all' succeeded, the results of 'yum update' is no different than in my previous post I am afraid.
Again, thank you for your time!
I am behind a proxy - I have validated that it is passing traffic. (data/packet analysis tools on the proxy) I also tested this with a sister Centos Server of the same version and confirmed that my proxy settings/compatibility is/are correct.
'Yum clean all' succeeded, the results of 'yum update' is no different than in my previous post I am afraid.
Again, thank you for your time!
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Try editing /etc/yum.conf and adding
[code]
http_caching=packages
[/code]
[code]
http_caching=packages
[/code]
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Will do, might take me another day to get back to you Trevor - Thanks!
Re: Yum attempting to Update/Install Packages - 404 Error Returned.
Trevor,
I was able to download & install packages upon entering the http_caching line in yum.conf.
Thank you for your time!
8-)
I was able to download & install packages upon entering the http_caching line in yum.conf.
Thank you for your time!
8-)
Re: [SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.
Great, glad I was able to help. Taking the liberty of setting the subject to [SOLVED] as it sounds that way.
Re: [SOLVED] Yum attempting to Update/Install Packages - 404
thankyou for your input on this TrevorH, your suggestion solved the PYCURL ERROR for me too