PDA

View Full Version : yum problem when update kernel Fedora 9



demuytree
16th May 2008, 02:31 AM
I used System->administration->update system to update a new kernel...and after that it have a problem with add/remove software and Update System and Yum command...
Here's the error
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 241, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 116, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 307, in doCommands
self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 98, in _getTs
self._getTsInfo()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 104, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 576, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 419, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 217, in populateSack
self.doSetup()
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 67, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 175, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 141, in postreposetup_hook
repomirrors[str(repo)] = FastestMirror(repo.urls).get_mirrorlist()
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 548, in <lambda>
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 545, in _geturls
self._baseurlSetup()
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 514, in _baseurlSetup
self.mirrorurls = self._replace_and_check_url(mirrorurls)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 536, in _replace_and_check_url
print 'YumRepo Warning: not using ftp, http[s], or file for repos, skipping - %s' % (url)
File "/usr/lib/python2.5/codecs.py", line 303, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 71: ordinal not in range(128)

Dietje
18th May 2008, 08:52 PM
I have the same problem, but I installed Fedora from a DVD.

Dietje
18th May 2008, 09:28 PM
Try running yum clean all, then yum makecache & try the update again. I found it on this forum and it worked for me.

fred_m
20th May 2008, 04:46 AM
Guys,

Didn't work for me.

You have other hint ?

Thanks.

Fred

demuytree
26th May 2008, 11:31 AM
I had tried many time but...error many time i tried..so I reinstalled F9 ^^

oryx
24th July 2008, 06:43 PM
worked like a charm
:)