yum problem

Issues related to software problems.
charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

yum problem

Post by charliemops » 2014/10/02 14:36:44

Hi all,

Today I've had some trouble with yum. I've fixed them all but I can not solve the last one. Please help.

Code: Select all

$ yum update
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=addons error was
[Errno 14] HTTP Error 504: Gateway Time-out
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
I have CentOS 5.5 (2.6.18-194.el5) (before you ask: I know, it's an old version. No, I can't upgrade)
The machine has direct access to the web (no proxy & co.).
The default gateway is correctly configured.
I am able to download packages with wget.

Maybe there is an issue with repository's path? (If it is so, I don't know how to add correct path and where)

Thank you.

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

Re: yum problem

Post by TrevorH » 2014/10/02 14:41:14

Disable the addons repo either by editing /etc/yum.repos.d/CentOS-Base.repo or by using --disablerepo=addons on the command line.

Your next step is to update that box! 5.5 is 4.5 years old and so full of security vulnerabilities that you could drive a truck through it. Your kernel allows root access within about 2 seconds.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: yum problem

Post by charliemops » 2014/10/02 15:27:19

Thank you Trevor,

I have the same error either with --disablerepo=addons:

Code: Select all

$ sudo yum --disablerepo=addons update
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 14] HTTP Error 504: Gateway Time-out
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
or editing /etc/yum.repos.d/CentOS-Base.repo:

Code: Select all

$ vi /etc/yum.repos.d/CentOS-Base.repo
[...]
#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
[...]
After we've fixed this, can you be so kind to show me how to face the next step?

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

Re: yum problem

Post by TrevorH » 2014/10/02 19:55:05

[Errno 14] HTTP Error 504: Gateway Time-out
I'm pretty sure that you have a proxy server between you and the internet and that's an error from that. Maybe it's a transparent proxy so you don't even know it's there...
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: yum problem

Post by charliemops » 2014/10/06 07:16:16

Hi Trevor,
I'm behind a firewall but the network administrator has given the server free access to the http and ftp protocols.
In fact, before this configuration, running yum update I was receiving the messagge "forbidden access".

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

Re: yum problem

Post by TrevorH » 2014/10/06 07:19:51

Run wget "http://mirrorlist.centos.org/?release=5 ... 64&repo=os" and make sure that it can connect and retrieve the list of mirrors. If it cannot then your network admin did something wrong.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: yum problem

Post by charliemops » 2014/10/06 07:47:35

I think it's ok:

Code: Select all

$ wget "http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os"
--2014-10-06 09:46:26--  http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os
Resolving mirrorlist.centos.org... 64.235.47.134, 72.232.223.58, 204.15.73.243, ...
Connecting to mirrorlist.centos.org|64.235.47.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `index.html?release=5&arch=x86_64&repo=os'

    [ <=>                                                                                                                                                        ] 483         --.-K/s   in 0s

2014-10-06 09:46:26 (46.1 MB/s) - `index.html?release=5&arch=x86_64&repo=os' saved [483]

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

Re: yum problem

Post by TrevorH » 2014/10/06 08:02:27

And if you inspect the contents of that file,. what does it contain?
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: yum problem

Post by charliemops » 2014/10/06 08:04:28

here you are the content of that file:

Code: Select all

http://mirror.crazynetwork.it/centos/5.11/os/x86_64/
http://mi.mirror.garr.it/mirrors/CentOS/5.11/os/x86_64/
ftp://ftp.eutelia.it/CentOS/5.11/os/x86_64/
http://it.centos.contactlab.it/5.11/os/x86_64/
http://centos.fastbull.org/centos/5.11/os/x86_64/
http://mirrors.prometeus.net/centos/5.11/os/x86_64/
http://centos.schlundtech.de/5.11/os/x86_64/
http://mirror.atrpms.net/centos/5.11/os/x86_64/
http://centos.mirror-server.de/5.11/os/x86_64/
http://centos.bio.lmu.de/5.11/os/x86_64/

charliemops
Posts: 16
Joined: 2014/01/31 09:47:44

Re: yum problem

Post by charliemops » 2014/10/13 08:23:49

Hi,
any suggestion?

Thank you

Post Reply

Return to “CentOS 5 - Software Support”