Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-22-2009, 03:08 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
YUM problem in FC9,10 - puzzling

I downloaded FC10 and have a fresh ("typical") install in VMware.
The add/remove software fails to work with errors. I ran yum directly and it failed with python errors. So, I decided to download FC9 Live for x86 and run add/remove software from the Live CD without installing and got the same errors there as well. Not sure what the deal but out-of-the-box yum isn't working. Any clues?
Does VMware have any part to play in this?
I've also tried running 'yum clean' before running 'yum list' etc with same errors.
Thanks in advance for any pointers.

here are my tests and errors:

[root@localhost tmp]#
[root@localhost tmp]# ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=128 time=39.4 ms
64 bytes from ( icmp_seq=2 ttl=128 time=36.8 ms
--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1532ms
rtt min/avg/max/mdev = 36.851/38.169/39.487/1.318 ms
[root@localhost tmp]# uname -a
Linux localhost.localdomain 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux

[root@localhost ~]# yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
fedora Fedora 9 - i386 enabled
updates Fedora 9 - i386 - Updates enabled
[root@localhost ~]# yum check-update
Loaded plugins: refresh-packagekit
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/", line 241, in user_main
errcode = main(args)
File "/usr/share/yum-cli/", line 116, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/", line 307, in doCommands
File "/usr/lib/python2.5/site-packages/yum/", line 98, in _getTs
File "/usr/lib/python2.5/site-packages/yum/", line 104, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/", line 576, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/", line 419, in _getSacks
File "/usr/lib/python2.5/site-packages/yum/", line 245, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.5/site-packages/yum/", line 149, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.5/site-packages/yum/", line 203, in _check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.5/site-packages/yum/", line 928, in _check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.5/site-packages/yum/", line 1086, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.5/site-packages/yum/", line 1078, in _getRepoXML
File "/usr/lib/python2.5/site-packages/yum/", line 1068, in _loadRepoXML
return self._groupLoadRepoXML(text, ["primary"])
File "/usr/lib/python2.5/site-packages/yum/", line 1052, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/usr/lib/python2.5/site-packages/yum/", line 904, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.5/site-packages/yum/", line 772, in _getFileRepoXML
File "/usr/lib/python2.5/site-packages/yum/", line 1068, in _loadRepoXML
return self._groupLoadRepoXML(text, ["primary"])
File "/usr/lib/python2.5/site-packages/yum/", line 1052, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/usr/lib/python2.5/site-packages/yum/", line 904, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.5/site-packages/yum/", line 772, in _getFileRepoXML
cache=self.http_caching == 'all')
File "/usr/lib/python2.5/site-packages/yum/", line 643, in _getFile
result = self.grab.urlgrab(relative, local,
File "/usr/lib/python2.5/site-packages/yum/", line 463, in <lambda>
grab = property(lambda self: self._getgrab())
File "/usr/lib/python2.5/site-packages/yum/", line 458, in _getgrab
File "/usr/lib/python2.5/site-packages/yum/", line 447, in _setupGrab
self._grab = mgclass(self._grabfunc, self.urls,
File "/usr/lib/python2.5/site-packages/yum/", line 548, in <lambda>
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.5/site-packages/yum/", line 545, in _geturls
File "/usr/lib/python2.5/site-packages/yum/", line 514, in _baseurlSetup
self.mirrorurls = self._replace_and_check_url(mirrorurls)
File "/usr/lib/python2.5/site-packages/yum/", 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/", line 303, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 72: ordinal not in range(128)
Old 01-23-2009, 05:16 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,500

Rep: Reputation: 100Reputation: 100
Hmm that's the first thing I'd check - seeing if I install OUTSIDE of VMWare, if the problem persists.

I have a strong suspicion that your problem is that you are running virtually (I know - it should work but nothing's perfect!) - especially since you say even the Live CD / DVD's yum is malfunctioning...
Old 02-24-2009, 09:39 PM   #3
LQ Newbie
Registered: Feb 2009
Location: Atlanta
Posts: 3

Rep: Reputation: 0
Running FC10 on VMware

After installing Fedora Core 10 using VMware Workstation 6.5 on Vista, I get the same error. However, it works when I install Fedora Core 10 using VMware Workstation 6.5 on Win XP.

Last edited by mewilson777; 02-24-2009 at 09:46 PM.
Old 02-24-2009, 11:00 PM   #4
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
The default Fedora 10 installation is known to have some problems even when installed on real hardware. One of them is your yum problem: you will need to get a newer yum RPM package downloaded from somewhere (maybe and install it by hand (rpm -Uvh yum*.rpm).

Another ugly known problem is the messed-up GUI network setting tool. This mixes your netmask and gateway setting, so you might need to set your network settings by hand. During installation the network settings are set correctly, but as soon as you use the GUI network setting tool, your network settings break.

If you have a working network setting and yum is updated, then run a full update - this will update a few hundred packages, depending on what you have installed.

When all that is done, you should have a Fedora 10 system that works well.


Last edited by gergely89; 02-27-2009 at 11:00 PM.
Old 02-25-2009, 08:45 AM   #5
LQ Newbie
Registered: Feb 2009
Location: Atlanta
Posts: 3

Rep: Reputation: 0
I installed yum-3.2.20-5.fc.noarch.rpm.
This did not fix the problem.

I installed yum-metadata-parser-1.1.2-10.fc10.i386.rpm.
This did not fix the problem.
Old 04-12-2009, 01:24 PM   #6
LQ Newbie
Registered: Feb 2009
Location: Atlanta
Posts: 3

Rep: Reputation: 0
Mysteriously started working

My YUM issue went a away, and I don't know what changed.
Old 04-15-2009, 12:10 PM   #7
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Workaround for yum/python error

First, the workaround:
In your enabled repositories (*.repo in /etc/yum.repos.d) comment out the "mirrorlist" parameter and uncomment the "baseurl". (You can leave the baseurl as or pick your favorite mirror.) As long as you don't try to parse a mirror list, I think your yum will work fine.

Some explanation (but hardly the full story ...)
The error described in the original post for this thread (and that occurs for me) occurs when Yum is parsing the mirror list for a repository. I struggled with this for several days and finally hit on trying the above. Once I got yum working, I did a full update hoping the latest releases would fix the yum problem, but the problem still occurs whenever yum tries to parse a mirrorlist. I cannot get yum to work with a mirrorlist.

Since repeated "googles" for this problem seem to turn up only this thread, it seems that the problem is somehow related to a Fedora VM on Windows, but ???

I am running VMWare Workstation 6.5.2 (build 156735) on Windows/XP Professional 5.1.2600, SP2, and did a standard Fedora 10 install from Fedora-10-i386-DVD.iso.


addremove, fc10, fc9, software, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not working after update in FC9 boomboom47 Linux - Software 7 11-04-2008 04:22 AM
FC9 nvidia yum update conflict JohnLocke Linux - Newbie 6 08-13-2008 04:33 PM
Upgrading from FC6 to FC9 via yum zaljereck Fedora - Installation 2 07-23-2008 03:21 PM
KDE won't load in FC9 after yum update diggs Fedora 1 07-13-2008 09:40 PM
Stop YUM updater daemon on FC9 ykwok Fedora 4 07-12-2008 08:36 AM > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration