LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2011, 12:12 AM   #1
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Rep: Reputation: Disabled
YUM Could not update.


Hi All,

Recently, I am encountering some difficult in Yum Updates. So far, I am trying to update and it kept giving me a lot of timeout:<urlopen error timed out.>

I am behind a fortinet 60 firewall but it has open port 3128 specifically for yum updates.

Sorry everyone, being a newbie, I figure I should post the whole situation rather than painting a vague picture. Apologize for this long post but any help would be great if I could get yum to work.

-----------------
----Have tried----
Code:
[root@www ~]# yum clean all
yum clean metadata 
yum clean dbcache
yum makecache <- Filled with urlopen error timed out>
yum update <- Filled with urlopen error timed out>
--------------------------
--- When yum makecache ----
Code:
[root@www ~]# yum makecache
base                      100% |=========================| 1.1 kB    00:00     
http://ftp.dgn.net.tr/linux/centos/5...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://centos.telecoms.bg/5.6/os/i38...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://centos.fastbull.org/centos/5....rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
primary.xml.gz            100% |=========================|    0 B    00:29     
ftp://ftp.eutelia.it/CentOS/5.6/os/i...rimary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
http://mi.mirror.garr.it/mirrors/Cen...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://centos.skknet.net/5.6/os/i386...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://ftp.linux.org.tr/centos/5.6/o...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://ftp.otenet.gr/linux/centos/5....rimary.xml.gz: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://repo.boun.edu.tr/centos/5.6/o...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.vit.com.tr/mirror/Cent...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.ntua.gr/pub/linux/centos/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.itu.edu.tr/Mirror/CentOS/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.cc.uoc.gr/CentOS/5.6/os/i...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.isoc.org.il/pub/centos...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.syn.co.il/5.6/os/i386/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.crazynetwork.it/5.6/os...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.prometeus.net/centos/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.
---- When yum update -----
Code:
[root@www ~]# yum update
primary.xml.gz            100% |=========================|    0 B    00:29     
ftp://ftp.eutelia.it/CentOS/5.6/os/i...rimary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
http://centos.syn.co.il/5.6/os/i386/...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://centos.telecoms.bg/5.6/os/i38...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://mirror.isoc.org.il/pub/centos...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://ftp.linux.org.tr/centos/5.6/o...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://ftp.dgn.net.tr/linux/centos/5...rimary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://mi.mirror.garr.it/mirrors/Cen...rimary.xml.gz: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://centos.crazynetwork.it/5.6/os...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.cc.uoc.gr/CentOS/5.6/os/i...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.ntua.gr/pub/linux/centos/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://ftp.itu.edu.tr/Mirror/CentOS/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.vit.com.tr/mirror/Cent...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://repo.boun.edu.tr/centos/5.6/o...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.prometeus.net/centos/...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.fastbull.org/centos/5....rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://ftp.otenet.gr/linux/centos/5....rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.skknet.net/5.6/os/i386...rimary.xml.gz: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.
--------------
---yum.conf---
Code:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
--------------------------
---rpmforge.repo content ----
Code:
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

Last edited by colucix; 09-13-2011 at 12:16 AM.
 
Old 09-13-2011, 12:39 AM   #2
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Oh.. I forgot to let you know whats in /etc/yum.repos.d directory.

--- Centos-Media.repo ---
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]

[c5-media]
name=CentOS-5 - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

---Centos-Base.repo ---
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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-5 - Base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
#baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-5 - Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
#baseurl=http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
#baseurl=http://mirror.centos.org/centos/5/addons/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
#baseurl=http://mirror.centos.org/centos/5/extras/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=centosplus
#baseurl=http://mirror.centos.org/centos/5/centosplus/i386/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

--- mirrors-rpmforge ---
http://apt.sw.be/redhat/el5/en/$ARCH/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag
http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag
http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag
http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag
http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag

Thank you so much for your ideas and time in advance. It has been a head scratcher for me..
 
Old 09-13-2011, 02:37 AM   #3
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
If you use a proxy at port 3128 (3128 is typically the port for a proxy server), you need to configure yum to use it. If you fortinet is just a firewall, it should have port 80 opened, not 3128, as the yum servers are approached through the regular http port (80).
 
Old 09-13-2011, 02:58 AM   #4
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi rhoekstra,

Its just a firewall. I have checked and port 80 is opened. Is a very funny thing i have here. Been figuring it out but no avail
 
Old 09-13-2011, 07:15 AM   #5
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
If you would try to do a 'wget http://centos.syn.co.il/5.6/os/i386/...primary.xml.gz' on that machine, does that work?
if not, does 'host centos.syn.co.il' work?

Last edited by rhoekstra; 09-13-2011 at 07:18 AM.
 
Old 09-13-2011, 07:57 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
also you have the install dvd ( the media) turned on
turn it off
that will stop one of the errors you get
Quote:

[c5-media]
name=CentOS-5 - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=1
set that enabled to 0 zero

also the best way to find out what reop is on or of or installed or not installed is with " yum "
Code:
su -
yum repolist all
see
Code:
yum --help
man yum
 
Old 09-13-2011, 10:56 PM   #7
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi rhoekstra,

I tried as you recommended. It doesnt work. It just says Error 404.

[root@www ~]# wget http://centos.syn.co.il/5.6/os/i386/...primary.xml.gz
--11:23:28-- http://centos.syn.co.il/5.6/os/i386/...primary.xml.gz
Resolving centos.syn.co.il... 81.218.219.1
Connecting to centos.syn.co.il|81.218.219.1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
11:23:32 ERROR 404: Not Found.
 
Old 09-13-2011, 11:01 PM   #8
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi John VV,

Thank you for your advice on the Media. I have disable it. Enclosed repolist.

[root@www ~]# yum repolist all
repo id repo name status
addons CentOS-5 - Addons enabled
base CentOS-5 - Base enabled
c5-media CentOS-5 - Media disabled
centosplus CentOS-5 - Plus enabled
extras CentOS-5 - Extras enabled
rpmforge Red Hat Enterprise 5 - RPMforge.net - da enabled
updates CentOS-5 - Updates enabled
 
Old 09-14-2011, 02:14 AM   #9
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Coming from a Newbie, I stand corrected [if any mistakes I say]..

I check on the mirrors-rpmforge located in /etc/yum.repos.d.

The mirror list inside there is so old. Check everyone of the link and error crops up.

http://apt.sw.be/redhat/el5/en/$ARCH/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag
http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag
http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag
http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag
http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag

Are there any new list which I should try for Centos 5.2?
 
Old 09-14-2011, 03:00 AM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
centos 5.2 is unsupported Cent only supports the current minor version
CentOS 4.9 , 5.6 and 6.0 ( soon to be 5.7 and 6.1)
have you read the wiki
if you are behind a router firewall you need to configure yum to use it
and or open ports
http://wiki.centos.org/
also the red hat documentation
https://access.redhat.com/knowledge/...erprise_Linux/
and the fedora wiki
https://fedoraproject.org/wiki/Fedora_Project_Wiki

keep in mind that like RHEL cent and scientific linux are not designed for the desktop .
they can work but it is NOT the best OS for that use

you need to run an update to get to 5.6 ( best bet is a new install cd ( the first 2 or of the 5 should do )
 
Old 09-14-2011, 04:02 AM   #11
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi John,

Thanks for the prompt reply

Just out of curiosity, If I were to upgrade using the disc, will it be a clean install or just an upgrade patch?

I start to shiver when I always hear upgrades..
 
Old 09-14-2011, 01:56 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the redhat minor upgrades almost always work flawlessly 5.5 to 5.6 BUT going from 5.2 to 5.6 ?
" yum upgrade "

should do it but ?

Or you could use the 5.6 install dvd to " upgrade an existing install"

seeing as i take it firefox passes through the router but "wget" and "yum" do not
it is looking like ports are closed

Last edited by John VV; 09-14-2011 at 02:00 PM.
 
  


Reply

Tags
yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 12 `yum update -y` & ran out of space in my /var/yum/cache/directory. techknowtarded Linux - Newbie 7 08-13-2011 07:23 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration