[SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.

Issues related to applications and software problems
klewia
Posts: 5
Joined: 2013/01/07 22:56:07

[SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.

Post by klewia » 2013/01/07 23:14:11

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!

User avatar
TrevorH
Forum Moderator
Posts: 23204
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

[SOLVED] Yum attempting to Update/Install Packages - 404 Err

Post by TrevorH » 2013/01/08 10:33:28

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]

klewia
Posts: 5
Joined: 2013/01/07 22:56:07

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by klewia » 2013/01/08 19:22:10

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]

User avatar
TrevorH
Forum Moderator
Posts: 23204
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by TrevorH » 2013/01/08 21:03:43

Try running `yum clean all` then retry. If that fails, is there a proxy server between you and the internet?

klewia
Posts: 5
Joined: 2013/01/07 22:56:07

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by klewia » 2013/01/09 21:02:10

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!

User avatar
TrevorH
Forum Moderator
Posts: 23204
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by TrevorH » 2013/01/09 21:43:52

Try editing /etc/yum.conf and adding

[code]
http_caching=packages
[/code]

klewia
Posts: 5
Joined: 2013/01/07 22:56:07

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by klewia » 2013/01/11 03:05:10

Will do, might take me another day to get back to you Trevor - Thanks!

klewia
Posts: 5
Joined: 2013/01/07 22:56:07

Re: Yum attempting to Update/Install Packages - 404 Error Returned.

Post by klewia » 2013/01/11 14:13:17

Trevor,

I was able to download & install packages upon entering the http_caching line in yum.conf.

Thank you for your time!
8-)

User avatar
TrevorH
Forum Moderator
Posts: 23204
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] Yum attempting to Update/Install Packages - 404 Error Returned.

Post by TrevorH » 2013/01/11 14:54:16

Great, glad I was able to help. Taking the liberty of setting the subject to [SOLVED] as it sounds that way.

neuronetv
Posts: 74
Joined: 2012/01/08 21:53:07

Re: [SOLVED] Yum attempting to Update/Install Packages - 404

Post by neuronetv » 2015/03/13 17:56:42

thankyou for your input on this TrevorH, your suggestion solved the PYCURL ERROR for me too

Locked