LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-04-2010, 10:47 PM   #1
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Rep: Reputation: 15
Yum Update Fails


Hi,
I upgraded from fedora 8 to 13.
In fedora 8 yum was working fine, ever since my upgrade yum is not working.
It gives following errors.

yum update all
Loaded plugins: presto, refresh-packagekit
http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 14] FTP Error 302 : ftp://fedora.glug-nith.org/linux/rel...ata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

TIA
tanweer
 
Old 10-05-2010, 12:07 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684
how did you "upgrade"???
a fresh clean install after reformatting /boot ( fedora 13 uses a different "boot" partition format than 8 did )
and reformatting the rest to ext4 ( the fedora NOW default format )

if you did then it might just be a down mirror , that should fix it's self in a day or so

but if you tried to directly "update 8 to 13 using yum ????? well it did not work (that would be the normal for skipping so many versions)
 
Old 10-05-2010, 04:58 AM   #3
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
hi John,
I formatted whole drive and did fresh installation of fedora 13 with dvd disc.
I got it installed some 2-3 days back still not working. What makes me more curious is that a friend of mine is using the same distribution and for him yum is working fine.
I even tried copying his /etc/yum.repo.d content and try with it but it didn't work.

tanweer
 
Old 10-05-2010, 09:39 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684
can you post the repo list
this command
Code:
su -
yum repolist all
that will tell you what is on and what is off and us what repos you installed

i do not have fedora installed anymore ,but did you change the /etc/yum.repo.d/fedora.repo file and unset 'mirrorlist" and set "base"
if so undo that .
when you installed did you use the default install ?
fedora is well known for a "at install" bug .If you go picking and choosing packages to install , not everything can get installed correctly .
most yum "errors" are do to problems with python .Python controls almost everything in fedora
 
Old 10-05-2010, 10:43 PM   #5
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
Following is the content of yum repolist all

Loaded plugins: presto, refresh-packagekit
http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 14] FTP Error 302 : ftp://fedora.glug-nith.org/linux/rel...ata/repomd.xml
Trying other mirror.
repo id repo name status
fedora Fedora 13 - i386 enabled: 0
fedora-debuginfo Fedora 13 - i386 - Debug disabled
fedora-source Fedora 13 - Source disabled
updates Fedora 13 - i386 - Updates enabled: 0
updates-debuginfo Fedora 13 - i386 - Updates - Debug disabled
updates-source Fedora 13 - Updates Source disabled
updates-testing Fedora 13 - i386 - Test Updates disabled
updates-testing-debuginfo Fedora 13 - i386 - Test Updates Debug disabled
updates-testing-source Fedora 13 - Test Updates Source disabled
repolist: 0





The content of file /etc/yum.repo.d/fedora.repo is


[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
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=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
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=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
~
~
 
Old 10-06-2010, 12:46 AM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684
here is your problem .This is NOT the default fedora installed fedora.repo
Code:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
the two in red the # needs moving
change it to this
Code:
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
you have the mirror list turned OFF
-- and check the "fedora.updates.repo" for the same thing .

Last edited by John VV; 10-06-2010 at 12:48 AM.
 
Old 10-06-2010, 03:31 AM   #7
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
Hi,
originally the content of the two files were as you suggested i.e.
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch

I was trying to fix the problem and got some post suggesting to use the other configuration.

After I reverted to the configuration you suggested even yum repolist all command is not giving any thing. Following is the output of the command.

yum repolist all
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again



Moreover I also have tried using static IPs in /ets/host file
like this
80.239.156.215 mirrors.fedoraproject.org
213.129.242.84 mirrors.rpmfusion.org

but no benefits.
 
Old 10-06-2010, 03:48 AM   #8
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
Hi,
originally the content of the two files were as you suggested i.e.
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch

I was trying to fix the problem and got some post suggesting to use the other configuration.

After I reverted to the configuration you suggested even yum repolist all command is not giving any thing. Following is the output of the command.

yum repolist all
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again



Moreover I also have tried using static IPs in /ets/host file
like this
80.239.156.215 mirrors.fedoraproject.org
213.129.242.84 mirrors.rpmfusion.org

but no benefits.
 
Old 10-06-2010, 06:35 AM   #9
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
hi,
I tried following thing and it started working

I replaced all instances of https with http in following files.

/etc/yum.repo.d/fedora.repo, fedora-updates.repo, fedora-updates-testing.repo

Thanks
tanweer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum update fails micmizer Fedora 5 07-21-2009 05:34 PM
yum update fails jnojr Linux - General 2 06-19-2009 01:28 PM
Update YUM Fails sajdutt Linux - Software 7 03-09-2009 10:37 PM
yum update fails for dependencies Four Fedora 12 12-15-2007 04:45 PM
xfs fails after yum update davidwiener Fedora 0 11-22-2006 09:47 AM


All times are GMT -5. The time now is 12:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration