LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Yum Update Fails (http://www.linuxquestions.org/questions/fedora-35/yum-update-fails-836228/)

tanalam 10-04-2010 10:47 PM

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

John VV 10-05-2010 12:07 AM

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)

tanalam 10-05-2010 04:58 AM

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

John VV 10-05-2010 09:39 AM

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

tanalam 10-05-2010 10:43 PM

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
~
~

John VV 10-06-2010 12:46 AM

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 .

tanalam 10-06-2010 03:31 AM

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.

tanalam 10-06-2010 03:48 AM

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.

tanalam 10-06-2010 06:35 AM

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


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