Fedora Linux Support Community & Resources Center
  #1  
Old 3rd June 2012, 03:06 PM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
yum fault, can't install anything

I followed the instructions on the rpmfusion webpage, to add their repos.

Since then, yum won't work: this is the error I get from yumex

Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2038, in _checkForNewer
pkgs = self.yumbase.pkgSack.returnNewestByName(name=po.na me)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1003, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 767, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
xml = repo_get_function()
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1638, in getPrimaryXML
return self.retrieveMD('primary')
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1563, in retrieveMD
return self._retrieveMD(mdtype)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1571, in _retrieveMD
thisdata = self.repoXML.getData(mdtype)
File "/usr/lib/python2.7/site-packages/yum/repoMDObject.py", line 180, in getData
raise RepoMDError, "requested datatype $s not available" $ type
RepoMDError: requested datatype primary not available


What can I do to fix this?? I cannot update anymore.
Reply With Quote
  #2  
Old 3rd June 2012, 09:22 PM
mschwendt's Avatar
mschwendt Offline
Registered User
 
Join Date: Jun 2010
Posts: 246
linuxfirefox
Question Re: yum fault, can't install anything

That's not much information. RPM Fusion is popular enough and works for many users.

What else does still work related to "yum"? Can you open a terminal, become superuser, then run "yum clean metadata dbcache rpmdb", then try again and also tell whether "yum update" still works?
Reply With Quote
  #3  
Old 3rd June 2012, 10:57 PM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

Same error, no update:
Before I added rpmfusion repos, this was not so. After install, I updated normally and without problem. If the worst comes to the worst, I will reinstall, paste the rpmfusion repos without using their rpm to install them. But if I don't need to do that, it would be better!
[pedro2@pedro-bedro ~]$ sudo yum clean metadata dbcache rpmdb
[sudo] password for pedro2:
Loaded plugins: langpacks, presto, refresh-packagekit
Cleaning repos: fedora rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree
: rpmfusion-nonfree-updates updates
27 metadata files removed
4 sqlite files removed
4 rpmdb files removed
[pedro2@pedro-bedro ~]$ sudo yum update
Loaded plugins: langpacks, presto, refresh-packagekit
fedora/metalink | 6.0 kB 00:00
fedora | 4.2 kB 00:00
fedora/primary_db | 14 MB 00:33
fedora/group_gz | 434 kB 00:01
rpmfusion-free | 861 B 00:00
rpmfusion-free-updates | 861 B 00:00
rpmfusion-nonfree | 861 B 00:00
rpmfusion-nonfree-updates | 861 B 00:00
updates/metalink | 7.4 kB 00:00
updates | 4.5 kB 00:00
updates/primary_db | 1.9 MB 00:04
updates/group_gz | 434 kB 00:01
Error: requested datatype primary not available
[pedro2@pedro-bedro ~]$

Last edited by Pedroski; 3rd June 2012 at 11:03 PM. Reason: more info
Reply With Quote
  #4  
Old 3rd June 2012, 11:22 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
linuxfirefox
Re: yum fault, can't install anything

What does yum repolist show?

How about yum --disablerepo=rpmfus* check-update?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 3rd June 2012, 11:55 PM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

[pedro2@pedro-bedro ~]$ yum repolist
Loaded plugins: langpacks, presto, refresh-packagekit
fedora/metalink | 6.0 kB 00:00
fedora | 4.2 kB 00:00
fedora/primary_db | 14 MB 00:32
fedora/group_gz | 434 kB 00:01
rpmfusion-free | 861 B 00:00
rpmfusion-free-updates | 861 B 00:00
rpmfusion-nonfree | 861 B 00:00
rpmfusion-nonfree-updates | 861 B 00:00
updates/metalink | 7.4 kB 00:00
updates | 4.5 kB 00:00
updates/primary_db | 1.9 MB 00:04
updates/group_gz | 434 kB 00:01
Error: requested datatype primary not available
[pedro2@pedro-bedro ~]$

---------- Post added at 06:52 AM ---------- Previous post was at 06:50 AM ----------

[pedro2@pedro-bedro ~]$ yum --disablerepo=rpmfus* check-update
Loaded plugins: langpacks, presto, refresh-packagekit
[pedro2@pedro-bedro ~]$

---------- Post added at 06:55 AM ---------- Previous post was at 06:52 AM ----------

[pedro2@pedro-bedro ~]$ sudo yum --disablerepo=rpmfus* update
[sudo] password for pedro2:
Loaded plugins: langpacks, presto, refresh-packagekit
No Packages marked for Update
[pedro2@pedro-bedro ~]$
Reply With Quote
  #6  
Old 4th June 2012, 12:50 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
linuxfirefox
Re: yum fault, can't install anything

yum --disablerepo=rpmfus* repolist

If the error doesn't appear when running the above command then the issue is with the rpmfusion repositories. I would remove those repositories and then install them anew.

This should do for removal.
PHP Code:
rpm -e rpmfusion
Then install them again per the RPMFusion web site.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 4th June 2012, 02:48 AM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

[pedro2@pedro-bedro ~]$ sudo rpm -e rpmfusion*
[sudo] password for pedro2:
error: package rpmfusion* is not installed
[pedro2@pedro-bedro ~]$

---------- Post added at 09:48 AM ---------- Previous post was at 09:48 AM ----------

But the repos are in yum.repos.d
Reply With Quote
  #8  
Old 4th June 2012, 03:07 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxchrome
Re: yum fault, can't install anything

Try,
Code:
sudo rpm -e rpmfusion-free-release rpmfusion-nonfree-release
Reply With Quote
  #9  
Old 4th June 2012, 05:07 AM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

That did the trick. Yumex works again . It seems there are no updates available at the mo.

However, now rpmfusion is disabled, how do I get vlc, gstreamer plugins etc. I can't even play a song!
Reply With Quote
  #10  
Old 4th June 2012, 06:48 AM
weitjong's Avatar
weitjong Offline
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 741
macossafari
Re: yum fault, can't install anything

I had exactly this problem over the weekend but the problem fixes by itself last night. If I recall correctly it was due to rpmfusion-nonfree repo. I suppose you just have to be patience to wait the fixes propagate to the mirror site that you use.
__________________
YaoWT - Leave no window unbroken ^_^
Reply With Quote
  #11  
Old 4th June 2012, 09:18 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
linuxfirefox
Re: yum fault, can't install anything

Reinstall the rpmfusion repos as I suggested.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #12  
Old 4th June 2012, 01:39 PM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

Well, I copied the rpmfusion repos that were in /etc/yum.repos.d to a temp directory.

Then I did as suggested above: sudo rpm -e rpmfusion-free-release rpmfusion-nonfree-release

That got rid of them, and yum and yumex worked again! Then, I pasted the text file rpmfusion.free.repo into /etc/yum.repos.d and now I am downloading vlc.

Slowly I will paste the others, and see what happens.

---------- Post added at 08:39 PM ---------- Previous post was at 07:52 PM ----------

Addendum: I reinstalled the rpmfusion repos from the rpmfusion webpage.

The non-free rpm is causing the problem, there seems to be a mistake in the code. If I have it installed, I can't install anything. Without it, I can. But I would still like Totem to play mp3, my Chinese lessons are mp3s!!
Reply With Quote
  #13  
Old 4th June 2012, 05:49 PM
weitjong's Avatar
weitjong Offline
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 741
linuxfirefox
Re: yum fault, can't install anything

Do a "yum repolist", If it still shows previous errors then your yum's metadata (not really sure) is still "corrupted" (again not really sure) from the previous yum execution. In my case, I had to do a "yum clean all" first to eliminate the problem. By now I think rpmfusion-nonfree metadata should be corrected in all mirror sites, so the repo should be working fine already. Thus, after the clean all, repeat the 'yum repolist' again. You should be out of the wood. If not, repeat and rinse after a few hours.

In the meantime, if you need to install something else not from the offending repo then you still could by using '--disablerepo=rpmfusion-nonfree' to temporary turn it off. HTH.
__________________
YaoWT - Leave no window unbroken ^_^

Last edited by weitjong; 4th June 2012 at 05:53 PM.
Reply With Quote
  #14  
Old 4th June 2012, 06:03 PM
snoze's Avatar
snoze Offline
Registered User
 
Join Date: Jun 2005
Location: INDIA
Posts: 772
linuxfirefox
Re: yum fault, can't install anything

Don't use yum before upgrade. Use preupgrade. Make sure you are using grub2 in fedora 17
Reply With Quote
  #15  
Old 4th June 2012, 10:53 PM
Pedroski Offline
Registered User
 
Join Date: Jan 2011
Posts: 175
linuxfirefox
Re: yum fault, can't install anything

Thanks, I'll try rpmfusion-non-free install again. I know how to get rid of it now, if it causes problems.

Just my opinion, but preupgrade is useless, it has never worked for me, and I have tried a lot. It installs itself in grub.cfg, but the vmlinux it installs never starts. Why, I don't know!!??

---------- Post added at 05:53 AM ---------- Previous post was at 05:46 AM ----------

Just tried installing rpmfusion-nonfree-release again. It still causes problems, which disappear when it is erased, so whatever the problem is, it ain't fixed yet!
Reply With Quote
Reply

Tags
fault, install, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect the page read fault or write fault qson Using Fedora 0 22nd January 2007 11:55 AM
Segmentation fault when trying to install flash on fire fox rick3878894 Using Fedora 11 17th August 2006 09:26 AM
Install Crash...any of it my fault? joex444 Installation and Live Media 1 17th August 2005 10:48 PM
apt-get install on FC3, segmentation fault and lock computer Using Fedora 8 10th January 2005 09:54 AM
seg fault trying to install Radeon 8500 ATi driver bopc Hardware & Laptops 0 15th December 2003 06:28 AM


Current GMT-time: 01:31 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat