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 09-30-2009, 05:22 PM   #1
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, trying to perform an "sudo rpm -ivh <package>.rpm" gives me this message:

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:

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:

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:

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 12:49 PM. Reason: //merged posts to retain 0-reply status
Old 10-02-2009, 01:48 AM   #2
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, 01:13 PM   #3
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:

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/ DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
raise Errors.YumBaseError("Error: " + e.message)

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.


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

All times are GMT -5. The time now is 12:48 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