LinuxQuestions.org
Review your favorite Linux distribution.
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 08-17-2012, 11:48 AM   #1
pbseisman
LQ Newbie
 
Registered: Aug 2012
Location: Sevenoaks, Kent UK
Distribution: FC17 x86_64
Posts: 4

Rep: Reputation: Disabled
fc17 yum software update fails


Hi

This is my first post. I have been using linux for some months now, recntly upgrading to Fedora Core 17. I am running fc17 x86_64 on my laptop. Only recently, when I come to run "Software Updates" or do a yum update as root, the process fails with the message:

# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
fedora/metalink | 29 kB 00:00
Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 319, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 144, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 485, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 405, in doCommand
return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
File "/usr/share/yum-cli/cli.py", line 890, in updatePkgs
self.update()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4364, in update
updates = self.up.getUpdatesTuples()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1032, in <lambda>
up = property(fget=lambda self: self._getUpdates(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 837, in _getUpdates
self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1013, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 777, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 302, in populateSack
self.doSetup()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 127, in doSetup
self.retrieveAllMD()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 83, in retrieveAllMD
if repo._async and repo._commonLoadRepoXML(repo):
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1329, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1107, in _getFileRepoXML
size=102400) # setting max size as 100K
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 920, in _getFile
result = self.grab.urlgrab(misc.to_utf8(relative), local,
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 606, in <lambda>
grab = property(lambda self: self._getgrab())
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 601, in _getgrab
self._setupGrab()
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 566, in _setupGrab
urls = self.urls
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 786, in <lambda>
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 783, in _geturls
self._baseurlSetup()
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 729, in _baseurlSetup
mirrorurls.extend(list(self.metalink_data.urls()))
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 826, in <lambda>
metalink_data = property(fget=lambda self: self._getMetalink(),
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 799, in _getMetalink
result = ug.urlgrab(url, local, text=self.id + "/metalink")
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1127, in urlgrab
return self._retry(opts, retryfunc, url, filename)
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1021, in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1118, in retryfunc
_TH.update(url, fo._amount_read - fo._reget_length, time.time() - tm, None)
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 2293, in update
_TH.load()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 2273, in load
_TH.hosts[host] = int(speed), int(fail), int(ts)
ValueError: invalid literal for int() with base 10: '-->'


I have tried running yum clean all, with no results.

Any help would be appriciated.
 
Old 08-17-2012, 08:54 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
HOW exactly did you " recntly upgrading to Fedora Core 17"

??????????

by the way fedora DROPPED the "core" way WAY back in fedora 6
there is on OS called fedora core the last one was "fedora core 6 "

was this a fedora 16 that you ran "preupgrade" on
or
used the DVD to upgrade fedora 16
or
a new install of fedora 17

python errors are often caused by manually installing a conflicting version of python
the older pthon 2 in the fedora 17 update repo IS the version REQUIRED ( yum is still using python 2 and NOT the 3 that is ALSO installed)
 
Old 08-18-2012, 03:25 AM   #3
pbseisman
LQ Newbie
 
Registered: Aug 2012
Location: Sevenoaks, Kent UK
Distribution: FC17 x86_64
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi, Thanks for getting back.

I have previously been running Fedora 15, which I upgraded to Fedora 16, but then did a clean install of Fedora 17, using a DVD that I burnt from the download from the Fedora download website. I had successfully run two software updates before encontering the problem I now have.

How do I go about getting yum working properly again?
 
Old 08-30-2012, 11:38 AM   #4
pbseisman
LQ Newbie
 
Registered: Aug 2012
Location: Sevenoaks, Kent UK
Distribution: FC17 x86_64
Posts: 4

Original Poster
Rep: Reputation: Disabled
It seems that this is a tough one - I have still not found a solution for this and presumably neither has anyone else on this forum. It would seem taht my only solution is to make a clean re-install......
 
Old 08-30-2012, 03:24 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
The first command I always run is
Code:
yum update yum
then
Code:
yum update
YMMV.
 
Old 08-30-2012, 03:43 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
by chance did you turn on the "rawhide" or "updates-Testing" repos?????
the normal way to find out is
Code:
su -
yum repolist all
but that will not work
so MANUALLY look in /etc/yum.repo.d/???? and list all the repos that have "enabled=1"
that is ON
"enabler=0" is off

that python error looks like it is do to a mismatch of python
a python 2.6 VS 2.7
Quote:
ValueError: invalid literal for int() with base 10: '-->'

you might try manually replacing the fedora yum and rpm "rpm's"
http://chi-10g-1-mirror.fastsoft.net...tes/17/x86_64/
rpm-4.9.1.3-7.fc17.x86_64.rpm
rpm-libs-4.9.1.3-7.fc17.i686.rpm
rpm-libs-4.9.1.3-7.fc17.x86_64.rpm

yum-3.4.3-28.fc17.noarch.rpm
yum-updatesd-0.9-12.fc17.noarch.rpm
 
Old 09-05-2012, 03:49 AM   #7
pbseisman
LQ Newbie
 
Registered: Aug 2012
Location: Sevenoaks, Kent UK
Distribution: FC17 x86_64
Posts: 4

Original Poster
Rep: Reputation: Disabled
Habitual - thanks for the suggestion but entering the command "yum update yum" produced the same error message as before, as did all yum commands.

John VV - I checked to see what repos are enabled, things looked fine. I came to the conclusion after spending hours with your suggestion of replacing the various rpm's, but must agree that that the error was one of a mismatch of python 2.6 v 2.7. Still not sure how this came about.
I have now done a clean install of Fedora 17, things are working fine now.
Thanks for the help and advice.
 
  


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
Yum Update Fails tanalam Fedora 8 10-06-2010 06:35 AM
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
xfs fails after yum update davidwiener Fedora 0 11-22-2006 09:47 AM

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

All times are GMT -5. The time now is 03:54 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