yum update Fails

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
TheGNUGuy
Posts: 3
Joined: 2010/03/04 16:09:20
Contact:

yum update Fails

Post by TheGNUGuy » 2010/03/04 16:21:18

Hey everyone,

I am trying to update all the packages on my server, but when I enter the command yum update i get the following:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.mirrors.tds.net
* base: mirrors.tummy.com
* extras: centos.mirror.nac.net
* updates: mirrors.gigenet.com
Error: unsupported file format

I have tried yum update, yum update all, yum update yum, and yum update svn. All of these fail with the same error. I have also tried yum makecache but that didn't solve anything.

Is there a way to fix this?

Thanks for the help!

pjwelsh
Posts: 2589
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: yum update Fails

Post by pjwelsh » 2010/03/04 18:51:38

Start with "yum clean all" then provide the output of "yum -d 10 update yum" if it fails.

TheGNUGuy
Posts: 3
Joined: 2010/03/04 16:09:20
Contact:

Re: yum update Fails

Post by TheGNUGuy » 2010/03/04 19:36:07

This is the output with plugins enabled:

Loading "fastestmirror" plugin
Config time: 0.040
Running "init" handler for "fastestmirror" plugin
Yum Version: 3.2.22
COMMAND: yum -d 10 update yum
Installroot: /
Ext Commands:

yum
Setting up Package Sacks
Running "postreposetup" handler for "fastestmirror" plugin
Determining fastest mirrors
* addons: holmes.umflint.edu
* base: yum.singlehop.com
* extras: holmes.umflint.edu
* updates: hpc.arc.georgetown.edu


This is the output with plugins disabled:

Config time: 0.036
Yum Version: 3.2.22
COMMAND: yum --noplugins -d 10 update yum
Installroot: /
Ext Commands:

yum
Setting up Package Sacks

it still says "Error: unsupported file format" at the end of each

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

yum update Fails

Post by pschaff » 2010/03/04 20:14:22

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

Running the script [url=http://wiki.centos.org/FAQ/General/getinfo_pkg.sh?action=raw]getinfo_pkg.sh[/url] as described in the last link will give us relevant information to help with your question. Also, please show[code]cat /etc/yum.repos.d/CentOS-Base.repo[/code]

Is there any proxy involved?

Might also try as root, and being [b]very[/b] careful[code]
cd /var/cache/yum
rm -fr *
cd
[/code]

TheGNUGuy
Posts: 3
Joined: 2010/03/04 16:09:20
Contact:

Re: yum update Fails

Post by TheGNUGuy » 2010/03/22 02:14:48

Hey everyone,

Sorry it took me so long to get back I got busy with school. :(

There are no proxies to worry about, I am connected through a router but I don't think that should be a problem.

Here is a link to the all the output pschaff asked me to post: http://pastebin.centos.org/32039

Thanks again for the help!!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: yum update Fails

Post by pschaff » 2010/03/23 20:19:23

I'm slow getting back also - busy with lots of things - but I'm afraid I don't see anything in the information you provided to explain the problems you are having. All I can suggest is to try commenting out all the mirrorlist' lines and uncommenting the baseurl= lines in /etc/yum.repos.d/CentOS-Base.repo and trying again, starting with[code]
yum clean all
yum update glibc\*
yum update[/code]

If that works, I'd try changing the mirror.centos.org site to a mirror near you.

Post Reply