1747997 Members
4273 Online
108756 Solutions
New Discussion юеВ

Re: RPM error

 
Fadia Almarei
Super Advisor

RPM error

Dear All

my redhat network alert notification tool give me the following error and when i click on it is respond ,and then return to give the same error what shull i do for that , the error is

" cannot open RPM database,perhaps it is not readavle as this user ,or already open "
thanks in advance
fadia.marei
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: RPM error

The rpm database file is either gone or locked.

You can look for a process thats doing that or boot the box. That usually fixes locks. If the file is gone, you need to restore it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fadia Almarei
Super Advisor

Re: RPM error

sorry , but i do not know what to do , and more when i try to open the icon of add remove application , or even the redhat network icon they whold not open , i do not know what to for this problem , please help
fadia.marei
Steven E. Protter
Exalted Contributor

Re: RPM error

First:
Reboot the box.

Second: if it still does not work, you may need to reinstall the operating system.

Third: Are you root user? Only root can install applications in general.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fadia Almarei
Super Advisor

Re: RPM error

im a root user , but what box to reboot
fadia.marei
Fadia Almarei
Super Advisor

Re: RPM error

i run also the up2date command and i get the following error
"rpmdb: /var/lib/rpm/Packages: unexpected file type or format
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/sbin/up2date", line 993, in ?
main()
File "/usr/sbin/up2date", line 601, in main
ret = sanityChecks(fromDaemon, hasGui)
File "/usr/sbin/up2date", line 272, in sanityChecks
if cfg["useGPG"] and gpgUtils.checkGPGInstallation() == 2:
File "gpgUtils.py", line 33, in checkGPGInstallation
File "gpgUtils.py", line 71, in findKey
File "rpmUtils.py", line 111, in installedHeadersNameVersion
TypeError: rpmdb open failed"
please help if you can
fadia.marei
Martin P.J. Zinser
Honored Contributor

Re: RPM error

Hello,

seems you do have a problem with your package database.

The best solution to this problem is to have backups. Save the current contents of the RPM direcotry, apply your latest backup and you should be fine again.

Else rpm --rebuilddb or rpm --initdb could be
used to rebuild the existing or create a new package database.

If you go this route, definitly make a backup copy of your current files!

Attention: This means some or >>all<< of your current list of installed applications will be >>lost<<. You will be able to install new packages, but might need to populate the database with entries for already existing ones to get the dependencies resolved corectly again.

Greetings, Martin
Fadia Almarei
Super Advisor

Re: RPM error

Dear Martin

I have installed oracle database on my system is this means that i will lost my installed application if i run these commands please tell me in detail what to do.

regards,
Fadia

fadia.marei
Roberto Polli
Trusted Contributor

Re: RPM error

Did you check thi rpm bug?

Peace, R.


http://www.rpm.org/hintskinks/repairdb/