LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-26-2009, 01:08 AM   #1
pavan6754
LQ Newbie
 
Registered: May 2009
Posts: 18

Rep: Reputation: 0
yum update or install error on fedora 10


iam using fedora 10.yum update or yum repolist is not working .so i had searched some threads for help but no use
for yum repolist o/p is

Code:
yum repolist
Loaded plugins: refresh-packagekit
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386 error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>
http://download.fedoraproject.org/pub/fedora/linux/releases/10/Everything/i386/os/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
i commented mirrors in /etc/yum.repos.d/fedora.repo and fedora-update.repo and uncommented base urls and also inserted other urls but no use.


Code:
[root@localhost yum.repos.d]# cat fedora.repo 
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://fedora.iitm.ac.in/updates/10/i386/
#baseurl=http://ftp.rhd.ru/pub/fedora/linux/updates/10/i386/
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
fedora-updates.repo file :



Code:
[root@localhost yum.repos.d]# cat fedora-updates.repo 
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://fedora.iitm.ac.in/updates/10/i386/
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
also edited /etc/hosts



Code:
[root@localhost yum.repos.d]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost localhost
::1		localhost6.localdomain6 localhost6
80.239.156.215          mirrors.fedoraproject.org
213.129.242.84          mirrors.rpmfusion.org
209.132.176.120         download.fedoraproject.org
195.151.243.25          ftp.rhd.ru
203.199.213.69          fedora.iitm.ac.in
wget is not working for any urls.
plse help me to solve my problem
advance thanks for ur help.
 
Old 06-26-2009, 01:24 AM   #2
Febi881
Member
 
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
[QUOTE=pavan6754;3586726]iam using fedora 10.yum update or yum repolist is not working .so i had searched some threads for help but no use
for yum repolist o/p is



If you are connected through proxy your update won't work. you need to add proxy settings.

My 'fedora.repo' file and 'fedora-updates.repo' as follows. Take a backup of these two files and replaced it with mine and try.

yum.repos.d]# vi fedora.repo


[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch








yum.repos.d]# vi fedora-updates.repo


[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
Old 06-26-2009, 02:30 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Hey Pavan,
What is the necessity of entering IP addresses in /etc/hosts file? You need to do that when there is DNS resolution failure. Remove those entries from ur /etc/hosts file. Is your system connected directly to Broad band cable, more over it also depends on speed of your net. What is the speed and are you able to do browsing through the browser? You are using that PC at home or office? If at office, are you people using proxy?
 
Old 06-26-2009, 03:13 AM   #4
pavan6754
LQ Newbie
 
Registered: May 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bkcreddy17 View Post
Hey Pavan,
What is the necessity of entering IP addresses in /etc/hosts file? You need to do that when there is DNS resolution failure. Remove those entries from ur /etc/hosts file. Is your system connected directly to Broad band cable, more over it also depends on speed of your net. What is the speed and are you able to do browsing through the browser? You are using that PC at home or office? If at office, are you people using proxy?
iam connected proxy server i.e i am connected to wireless LAN and iam able to browse ,speed also very good.
i hav problem with DNS resolution ping,wget,host commands are not working.
befora i edited /etc/hosts file i used to get error(2)i.e unable resolve name for yum update
after editing i am getting error(110)i.e connection timed out.
 
Old 06-26-2009, 03:19 AM   #5
pavan6754
LQ Newbie
 
Registered: May 2009
Posts: 18

Original Poster
Rep: Reputation: 0
i hav replaced fedora.repo and fedora-updates.repo with ur files but no use still my problem exists
for yum update o/p is

Code:
yum update
Loaded plugins: refresh-packagekit
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386 error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
fedora.repo is

Code:
[root@localhost yum.repos.d]# cat fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
fedor-updates.repo file

Code:
[root@localhost yum.repos.d]# cat fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
thanks for ur replay
now what to do
 
Old 06-26-2009, 04:55 AM   #6
Febi881
Member
 
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
[QUOTE=pavan6754;3586823]i hav replaced fedora.repo and fedora-updates.repo with ur files but no use still my problem exists
for yum update o/p is

You need to setup your prxy parameters in terminal bcoz yum is running from your shell. Inorder to tell the sell(bash/sh/ksh..) you need to set envornment variable http_proxy. Follwoing command you should run from you shell and after try yum.

export http_proxy="http://<ip address>:<proxy port>. Following is an example.
export http_proxy="http://192.168.100.2: 8080"

If you add to your this thing in your bash profile you may not need this in the future.

# vi ~/.bash_profile

export http_proxy=http://iport
 
Old 06-26-2009, 04:57 AM   #7
Febi881
Member
 
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
One more method you can try


Method 2:

create the following files in /etc/profile.d, and then this will work in *any* shell for *any* user of the system

#proxy.sh
export http_proxy=http://host.comort/
export ftp_proxy=http://host.comort/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.comort/
export FTP_PROXY=http://host.comort/
 
Old 06-26-2009, 05:18 AM   #8
pavan6754
LQ Newbie
 
Registered: May 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Febi881 View Post
One more method you can try


Method 2:

create the following files in /etc/profile.d, and then this will work in *any* shell for *any* user of the system

#proxy.sh
export http_proxy=http://host.comort/
export ftp_proxy=http://host.comort/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.comort/
export FTP_PROXY=http://host.comort/
thanks alot method 1 worked for me...
now yum update is working.
but i didn't understand method 2 which u said it will work for any shell and any user,what is host.com.,is that i hav to enter proxy addr.there as in method 1
once again thankQ for ur help..

Last edited by pavan6754; 06-26-2009 at 05:19 AM.
 
Old 06-26-2009, 08:09 AM   #9
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Good Febi881.
 
  


Reply



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
[SOLVED] yum update or install error on fedora 10 pavan6754 Linux - Networking 3 06-29-2009 03:06 AM
Yum update on fresh install error Beezer Fedora 2 04-16-2009 07:58 AM
yum update or install error in Fedora 10 vipul_patel Fedora 3 03-29-2009 05:19 AM
Yum Update Error Fedora Core 9 KrazyStuntRR Fedora 5 06-12-2008 01:08 AM
Fedora Core 6 Yum Update Error jwheel83 Fedora 2 01-24-2007 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 PM.

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