Re: Restore RPM database?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: Re: Restore RPM database?
On Sun, 2005-02-06 at 09:09 -0700, Alan Dayley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sunday 06 February 2005 08:55 am, Craig White wrote:
> >
> > rm -fr /var/lib/rpm/__*
>
> OK that removes all the __db.* files. Did that.
>
> > rpm --rebuilddb
>
> This took about .5 seconds to run.

----
not a very good sign ;-(
----
>
> > rpm -qa
> >
> > apt-get upgrade
>
> # rpm -qa
> gpg-pubkey-4f2a6fd2-3f9d9d3b
> gpg-pubkey-db42a60e-37ea5438
> gpg-pubkey-8df56d05-3e828977

----
ouch - si - problemo

My impression is that the db files which you deleted and then tried to
--rebuild are derived from the binary files in /var/lib/rpm such as
'Packages' and that must be damaged itself.

I don't know what happened or how to substantively repair this and
wonder if that is damaged, then any subsequent act such as apt-
get/yum/up2date which is to install or remove will not get accurate
information to do it's dirty work. In essence, that is a problem that I
have never 'enjoyed'. The steps of 'rm -fr /var/lib/rpm/__* && rpm --
rebuilddb" have always fixed things for me.

I would suggest that you do 'rpm --rebuilddb -vv' to give you a very
verbose output of what is going on - which may give clues as to the
nature of the problem and ultimately, the fix. If you wish, you can pipe
it to /tmp/rebuild-output.txt with something like
'rpm --rebuilddb -vv > /tmp/rebuild-output.txt 2>&1 and the less or cat
that.
----
> # apt-get upgrade
> Reading Package Lists... Done
> Building Dependency Tree... Done
> 0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
> #
>
> Re-opening synaptic shows nothing installed still. 'apt-get install bash'
> still wants to install NEW packages like glibc and basesystem.
>
> > you should be very happy - btw, did you check out smart?
>
> It's not happy since I seem to have the same results as before.
>
> Maybe it's time to take on my pending FC3 upgrade project.
>
> I did not look at smart yet. I was going to reconsider my use of livna
> repositories after upgrading to FC3. (BTW, it will be fresh install of FC3,
> not an upgrade install.)

---
I think smart also encompasses FC2 but the notion is that it is supposed
to resolve issues created by using different repositories

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss