LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-30-2009, 04:22 PM   #1
StarsAndBars14
Member
 
Registered: Nov 2006
Location: Tennessee
Distribution: Fedora Core 12
Posts: 49

Rep: Reputation: 15

I tried a few days ago to find a collection of 32bit libraries for ePSXe, which I need for want of any 64 bit build. Having gotten them together, and performed an rpm --import on the gpg keys from the repository in question, namely mirrors.kernel.org, trying to perform an "sudo rpm -ivh <package>.rpm" gives me this message:

Quote:
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
warning: gtk+-1.2.10-69.fc12.i686.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 57bbccba
error: cannot open Packages database in /var/lib/rpm
A check of /var/lib/rpm gives me this:

Quote:
Basenames __db.002 Dirnames Installtid Packages Pubkeys Sha1header
Conflictname __db.003 Filedigests Name Providename Requirename Sigmd5
__db.001 __db.004 Group Obsoletename Provideversion Requireversion Triggername
which are all under the SELinux context rpm_var_lib_t. I get this notice in my troubleshooter:

Quote:
node=TechComm type=AVC msg=audit(1254287073.19:16983): avc: denied { read } for pid=2623 comm="rpm" name="Replicant10k" dev=dm-10 ino=12 scontext=staff_u:staff_r:staff_sudo_t:s0-s0:c0.c1023 tcontext=staff_ubject_r:user_home_dir_t:s0 tclass=dir node=TechComm type=SYSCALL msg=audit(1254287073.19:16983): arch=c000003e syscall=2 success=yes exit=0 a0=7f4737258779 a1=90800 a2=0 a3=7f47361f6fcc items=0 ppid=2604 pid=2623 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="rpm" exe="/bin/rpm" subj=staff_u:staff_r:staff_sudo_t:s0-s0:c0.c1023 key=(null)
on top of that.

and trying to install them via yum with .i586 after the package name gives me this:

Quote:
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in <module>
import yummain
ImportError: No module named yummain
Running audit2allow hasn't helped, I've gone through two modules now trying to fix this but nothing will install. KPackageKit at least works fine.

How can I set things right? It's really bugging me.

PS Releasing any possible stale locks hasn't helped.

Last edited by unSpawn; 10-01-2009 at 11:49 AM. Reason: //merged posts to retain 0-reply status
 
Old 10-02-2009, 12:48 AM   #2
reickler
LQ Newbie
 
Registered: Sep 2009
Posts: 29

Rep: Reputation: 20
You might wanna try rebuilding your RPM database to see if that helps:

1) Backup /var/lib/rpm
2) rm /var/lib/rpm/__db.*
3) rpm --rebuilddb

If the RPM database is corrupt, deleting and rebuilding will fix it. If the permissions or selinux context are incorrect, it will fix that as well.
 
Old 10-02-2009, 12:13 PM   #3
StarsAndBars14
Member
 
Registered: Nov 2006
Location: Tennessee
Distribution: Fedora Core 12
Posts: 49

Original Poster
Rep: Reputation: 15
That's what I added hasn't helped me any.

The SELinux troubleshooter doesn't say anything of the sort, regarding contexts being incorrect, but in enforcing mode with the latest boxed F11 policy I've also gotten this for rpm:

Quote:
rpmdb: /var/lib/rpm/__db.001: Permission denied
error: db4 error(13) from dbenv->open: Permission denied
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
/usr/lib/python2.6/site-packages/yum/config.py:884: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
raise Errors.YumBaseError("Error: " + e.message)
CRITICAL:yum.main:

Error: rpmdb open failed
This was before I took another yum module of my own creation intended to fix another issue out, hoping it might solve things.

I can't upgrade to F12 yet because this is a production machine, but as soon as it becomes suitable for daily use I plan to.

If I had to place any bets I'd call this an SELinux policy problem.
 
  


Reply

Tags
database, epsxe, fedora, i586, rpm, selinux, x8664, yum



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 update conflicts when there is both i386 and x86_64 rpm packages installed. zimon Fedora 2 10-09-2008 06:30 AM
RPM database error while installing using yum in fedora core 6 me4linux Fedora 4 04-25-2007 11:36 AM
LIRC RPM Install On SuSE 10.0 x86_64 -Help- paradox101 Linux - Software 1 01-10-2006 03:05 PM
Fedora FC2 Arch= x86_64 install leaves duplicate packages in RPM database w8hrq Fedora - Installation 2 10-05-2004 01:14 PM
Yum on FC1 not updating some pkgs. Cleotis Linux - Newbie 3 10-04-2004 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:09 PM.

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