PDA

View Full Version : rpm -qa shows nothing



kgreiner
27th February 2004, 03:46 PM
I have a small problem.

I have FC2 1.9 and a few days ago my system power outage, but that is not the problem, when i reboot the machine and tried to install some new rpm's it was telling me i had a lot of dependcies that needed to be installed, like /bin/sh, i did a rpm -qa and it showed nothing. I then started to see if i had kernel installed nothing. I tried a rpm --rebuilddb , no luck, then a rpm --initdb, still no luck.

Any idea on how I can resolve this problem.

I tried up2date,apt-get, and up2date and nothing appears to work.

I did --import some GPG keys and then did a -qa and not those are listed.

Since this is my test system my last resort it so reinstall FC.

:confused: :confused: :confused:

mhelios
27th February 2004, 04:09 PM
Try this:


rm -f /var/lib/rpm/__* ; rpm -vv --rebuilddb

kgreiner
27th February 2004, 04:18 PM
tried it, but when i do a rpm -qa it still shows the gpg that i imported before

output from the command you gave me
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.7132
D: creating directory /var/lib/rpmrebuilddb.7132
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.7132/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.7132/Packages create mode=0x42
D: read h# 2 Header sanity check: OK
D: +++ h# 1 Header sanity check: OK
D: opening db index /var/lib/rpmrebuilddb.7132/Name create mode=0x42
D: adding "gpg-pubkey" to Name index.
D: opening db index /var/lib/rpmrebuilddb.7132/Group create mode=0x42
D: adding "Public Keys" to Group index.
D: opening db index /var/lib/rpmrebuilddb.7132/Providename create mode=0x42
D: adding 2 entries to Providename index.
D: opening db index /var/lib/rpmrebuilddb.7132/Provideversion create mode=0x42
D: adding 2 entries to Provideversion index.
D: opening db index /var/lib/rpmrebuilddb.7132/Installtid create mode=0x42
D: adding 1 entries to Installtid index.
D: opening db index /var/lib/rpmrebuilddb.7132/Pubkeys create mode=0x42
D: adding 1 entries to Pubkeys index.
D: read h# 4 Header sanity check: OK
D: +++ h# 2 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: read h# 6 Header sanity check: OK
D: +++ h# 3 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: read h# 1 Header sanity check: OK
D: +++ h# 4 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: read h# 3 Header sanity check: OK
D: +++ h# 5 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: read h# 5 Header sanity check: OK
D: +++ h# 6 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.7132/Pubkeys
D: closed db index /var/lib/rpmrebuilddb.7132/Installtid
D: closed db index /var/lib/rpmrebuilddb.7132/Provideversion
D: closed db index /var/lib/rpmrebuilddb.7132/Providename
D: closed db index /var/lib/rpmrebuilddb.7132/Group
D: closed db index /var/lib/rpmrebuilddb.7132/Name
D: closed db index /var/lib/rpmrebuilddb.7132/Packages
D: closed db environment /var/lib/rpmrebuilddb.7132/Packages
D: removing directory /var/lib/rpmrebuilddb.7132