PDA

View Full Version : Fedora 10.91 yum problem


kakos_belas
2009-02-04, 09:37 AM CST
Hello people.
I'm new in Fedora and recently i had a problem tha i can't fix with yum. The problem appeared when i tried to edit some repositories. Well.. When i try to run yum command in a console (no mater what options i use) i get 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 "yummain.py", line 229, in user_main
errcode = main(args)
File "yummain.py", line 84, in main
base.getOptionsConfig(args)
File "cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enab leplugins))
TypeError: _getConfig() takes exactly 1 non-keyword argument (3 given)
------------------------
So i can't update or download any package.
When i run the gui interface "Add/remove software" and i try to do a search i get the following eror:
-----------------------------------
Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 339, in _do_search
for (pkg, inst) in res:
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1757, in searchGenerator
for sack in self.pkgSack.sacks.values():
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 627, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 470, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 251, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 162, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 219, in _check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1136, in _check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1294, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1286, in _getRepoXML
self._loadRepoXML(text=self)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1269, in _loadRepoXML
return self._groupLoadRepoXML(text)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1260, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1111, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 893, in _getFileRepoXML
cache=self.http_caching == 'all')
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 737, in _getFile
result = self.grab.urlgrab(misc.to_utf8(relative), local,
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 493, in <lambda>
grab = property(lambda self: self._getgrab())
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 488, in _getgrab
self._setupGrab()
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 477, in _setupGrab
self._grab = mgclass(self._grabfunc, self.urls,
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 598, in <lambda>
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 595, in _geturls
self._baseurlSetup()
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 549, in _baseurlSetup
mirrorurls.extend(list(self.metalink_data.urls()))
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 642, in <lambda>
metalink_data = property(fget=lambda self: self._getMetalink(),
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 638, in _getMetalink
self._metalink = metalink.MetaLinkRepoMD(self.metalink_filename)
File "/usr/lib/python2.6/site-packages/yum/metalink.py", line 184, in __init__
raise MetaLinkRepoErrorParseFail, "File $s does not exist" $filename
MetaLinkRepoErrorParseFail: File //var/cache/yum/fedora-debuginfo/metalink.xml does not exist
--------------------------------------

I tried everything i found in google and i can't repair it. Any i ideas what problem there is?

JohnVV
2009-02-04, 09:57 AM CST
this is the rawhide alpha testing version of fedora11 ( Fedora 10.91) .
Why did you need to edit a repo file for the testing version of fedora ?

have you read this topic
" Alpha, Beta & Snapshots Discussions (Fedora 11 Only)"
http://forums.fedoraforum.org/forumdisplay.php?f=66

kakos_belas
2009-02-04, 10:14 AM CST
i wanted to add some repositories for codecs. Anyway the thing is what i am doing now. I read the link you send but it didn't help me. It says about the conflicts that maybe can cause some repos. For now i have disable all repos except for fedora updates. I tried to disable all the repos, to enable all the repos, to enable some repos. Now i have only fedora updates but still the same error. Is there anyway to rebuild everything and will this repair the problem? I thought to force for reload yum but i can't run anything tha starts with yum command.

JohnVV
2009-02-04, 11:02 AM CST
you might also want to ask for help over on the fedora 11 testing thread seeing as that is what you are running

Seve
2009-02-04, 11:22 AM CST
( Threads Merged )

JonathanA
2009-02-05, 08:55 AM CST
It seems I have almost a identical problem with Yum. It keeps failing to find a certain XML file. I will post later on tonight more info. Only I don't recall changing anything on yum.conf. Unless I somehow changed the software sources.

Doing a yum clean and all didn't help. So i'll post after work tonight the error messages and such.

kakos_belas
2009-02-05, 09:40 AM CST
look at your repos. Enable one by one and see who are in function. Some repos don't work for now. I' ll post a few hours later more details if you don't solve it. Look at your repos....

JonathanA
2009-02-05, 04:12 PM CST
This is the error message I get when trying to do updates.

"Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again"

And this is what Yum Extender shows when I try to use it.

17:10:24 : Current Settings :
17:10:25 : autorefresh: True
17:10:25 : branding_title: 'Yum Extender'
17:10:25 : changelog: False
17:10:25 : color_console: '#68228B'
17:10:25 : color_install: 'darkgreen'
17:10:25 : color_normal: 'black'
17:10:25 : color_obsolete: 'blue'
17:10:25 : color_pkgdesc: '#68228B'
17:10:25 : color_update: 'red'
17:10:25 : debug: True
17:10:25 : disable_repo_page: False
17:10:25 : exclude: []
17:10:25 : filelist: False
17:10:25 : font_console: 'Monospace 8'
17:10:25 : font_pkgdesc: 'Monospace 8'
17:10:25 : fullobsoletion: False
17:10:25 : plugins: True
17:10:25 : proxy: ''
17:10:25 : recentdays: 14
17:10:25 : repo_exclude: ['debug', 'source']
17:10:25 : usecache: False
17:10:25 : yumdebuglevel: None
17:10:25 : Yum Config Setup
17:10:25 : Loaded plugins: blacklist, dellsysidplugin2, refresh-packagekit, whiteout
17:10:27 : Setup signed metadata support
17:10:27 : Yum Version : 3.2.21
17:10:27 : GUI Setup Completed
17:10:27 : Setup Yum : Transaction Set
17:10:28 : Getting : https://mirrors.fedoraproject.org/metalink?repo=fedora-source-10.91&arch=i386
17:10:33 : Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again

And this is what happens when trying to use the terminal

# yum update
Loaded plugins: blacklist, dellsysidplugin2, refresh-packagekit, whiteout
fedora-source/metalink | 11 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-source-10.91&arch=i386 error was
File //var/cache/yum/fedora-source/metalink.xml.tmp is not XML
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again

This is what's in my /etc/yum/yum.repos.d/

fedora-rawhide.repo rpmfusion-free-rawhide.repo
fedora-rawhide.repo.rpmnew rpmfusion-free-rawhide.repo.rpmnew
fedora.repo rpmfusion-free.repo
fedora-updates.repo rpmfusion-free-updates.repo
fedora-updates.repo.rpmnew rpmfusion-free-updates.repo.rpmnew
fedora-updates-testing.repo rpmfusion-free-updates-testing.repo


Any other info needed, just ask and i'll post.

Demz
2009-02-05, 04:14 PM CST
if your new to linux why are you using a ALPHA ? use a stable release such as Fedora10

This is the error message I get when trying to do updates.

"Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again"

And this is what Yum Extender shows when I try to use it.

17:10:24 : Current Settings :
17:10:25 : autorefresh: True
17:10:25 : branding_title: 'Yum Extender'
17:10:25 : changelog: False
17:10:25 : color_console: '#68228B'
17:10:25 : color_install: 'darkgreen'
17:10:25 : color_normal: 'black'
17:10:25 : color_obsolete: 'blue'
17:10:25 : color_pkgdesc: '#68228B'
17:10:25 : color_update: 'red'
17:10:25 : debug: True
17:10:25 : disable_repo_page: False
17:10:25 : exclude: []
17:10:25 : filelist: False
17:10:25 : font_console: 'Monospace 8'
17:10:25 : font_pkgdesc: 'Monospace 8'
17:10:25 : fullobsoletion: False
17:10:25 : plugins: True
17:10:25 : proxy: ''
17:10:25 : recentdays: 14
17:10:25 : repo_exclude: ['debug', 'source']
17:10:25 : usecache: False
17:10:25 : yumdebuglevel: None
17:10:25 : Yum Config Setup
17:10:25 : Loaded plugins: blacklist, dellsysidplugin2, refresh-packagekit, whiteout
17:10:27 : Setup signed metadata support
17:10:27 : Yum Version : 3.2.21
17:10:27 : GUI Setup Completed
17:10:27 : Setup Yum : Transaction Set
17:10:28 : Getting : https://mirrors.fedoraproject.org/metalink?repo=fedora-source-10.91&arch=i386
17:10:33 : Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again

And this is what happens when trying to use the terminal

# yum update
Loaded plugins: blacklist, dellsysidplugin2, refresh-packagekit, whiteout
fedora-source/metalink | 11 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-source-10.91&arch=i386 error was
File //var/cache/yum/fedora-source/metalink.xml.tmp is not XML
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again

This is what's in my /etc/yum/yum.repos.d/

fedora-rawhide.repo rpmfusion-free-rawhide.repo
fedora-rawhide.repo.rpmnew rpmfusion-free-rawhide.repo.rpmnew
fedora.repo rpmfusion-free.repo
fedora-updates.repo rpmfusion-free-updates.repo
fedora-updates.repo.rpmnew rpmfusion-free-updates.repo.rpmnew
fedora-updates-testing.repo rpmfusion-free-updates-testing.repo


Any other info needed, just ask and i'll post.

what repo's do you have enabled?

su -
password

yum repolist

JonathanA
2009-02-05, 04:23 PM CST
Here's what I get

# yum repolist
Loaded plugins: blacklist, dellsysidplugin2, refresh-packagekit, whiteout
fedora-source/metalink | 11 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-source-10.91&arch=i386 error was
File //var/cache/yum/fedora-source/metalink.xml.tmp is not XML
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates-source. Please verify its path and try again

Demz
2009-02-05, 04:25 PM CST
i dunno but it looks like you may have the updates-source repo enabled?

looks like someone else is having the same problem with yum on the devel list

JonathanA
2009-02-05, 06:15 PM CST
i dunno but it looks like you may have the updates-source repo enabled?

looks like someone else is having the same problem with yum on the devel list

should I disable? if so how can i disable it.

thanks for all help

Wayne
2009-02-05, 06:19 PM CST
This forum is for DISCUSSION of the Alpha/Beta versions of Fedora 11, not for support. If you find bugs you should report them to the developers.

If you want support then install the CURRENTLY RELEASED version of Fedora, which is F10.

Wayne

JohnVV
2009-02-05, 06:56 PM CST
you might want to do a clean reinstall with fedora 10 and not use fedora 11 alpha ( testing release )

kakos_belas
2009-02-06, 06:34 AM CST
you have problem with the repos. Guys this is in fedora 10.91 (because they did't refresh their repos) so it is in this post. And the purpose of a commynity is to help people. Not the "rules"....

If you open one by one your repos in your /etc/yum/yum.repos.d/ You will see in some lines "enable=1" that means that your repo is enabled. If you see "enable=0" it is disabled. First of all disable all your repos (make sure there is everywhere enable=0). Then run yum. You should take no error. That means that the problem is in your repos. Then enable repos one by one. For example open the file fedora-rawhide.repo And make "enable=1". Then try to run yum again. If no error continue with the next repo and so on. When you find an error disable the repo that cause it and go on wtith then next repos. Disable the repos that gives you errors with that way...

Wayne
2009-02-06, 08:32 AM CST
You obviously don't understand. Anything with a point after it (XX.91) is a an alpha or beta release of the NEXT version of Fedora, in this case, Fedora 11. It's only meant for Alpha/Beta testers. If you don't know how to enable/disable testing repos then you shouldn't be using it. Alpha/Beta testers don't need to ask such questions. Either grow a brain or install F10! Better yet, install Ubuntu...

Wayne

JonathanA
2009-02-06, 09:37 AM CST
Thanks guys....

The reason I asked how I should go about disabling it is because "Software Sources" kept locking up when trying to do it via GUI. Sorry for not explaining it properly and in detail.

I was successful in fixing the problem by disabling the other repos via terminal, thanks Kakos for the help. Ended up taking my Netbook and logging in to my PC Via SSH, didn't want to wait till I got home :D

P.S. Last time I checked I had a brain :D

kakos_belas
2009-02-06, 02:43 PM CST
wayne if the entire community is like you i think that i wiil go back in ubuntu too... Linux is a culture and i think that you have the windows culture....

Dan
2009-02-06, 03:40 PM CST
Although it might be a bit premature, I'm going to close this thread before folks have a chance to get themselves into any more trouble than is already afoot.

Folks ... we''re all in this together, and taking pot-shots at each other, subtle or direct, isn't going to help get F11 put out any faster ... nor with any fewer bugs.

Thread closed.