LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fc17 yum software update fails (http://www.linuxquestions.org/questions/linux-newbie-8/fc17-yum-software-update-fails-4175422636/)

pbseisman 08-17-2012 12:48 PM

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.

John VV 08-17-2012 09:54 PM

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)

pbseisman 08-18-2012 04:25 AM

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?

pbseisman 08-30-2012 12:38 PM

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

Habitual 08-30-2012 04:24 PM

The first command I always run is
Code:

yum update yum
then
Code:

yum update
YMMV.

John VV 08-30-2012 04:43 PM

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

pbseisman 09-05-2012 04:49 AM

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.


All times are GMT -5. The time now is 01:30 PM.