On Thu, May 24, 2001 at 10:47:08AM +1000, Scott Ragen uttered:
> Hi,
> I have a fairly big problem with a Redhat 6.2 box. What has happened is I
> upgraded my rpm to version to 4.0.3 from version 3, with also upgrading
> db3-3 (unsure of what version it was) and it now comes up with errors!
> When I installed them, they went through without a hiccup, no forcing it or
> forcing dependencies, but when I try to rpm -ivh on any package I get the
> error message "error: cannot open packages database in /var/lib/rpm". I have
> looked in that directory and packages.rpm is there and the right
> permissions.
Not sure at all, since I never managed to successfully upgrade from
rpm v3 to v4, but one thing that needed to be done for the jump from
v2 (Yes, we have boxen that old) to v3, was the rpm database needed
rebuilding. It sounds like this is the case, but the new rpm even told
me it needed doing.
Just run something like:
rpm --rebuilddb
(specifying one or more verbose flags may help, too)
--
Steve
"I'm a sysadmin because I couldn't beat a blind monkey in a coding contest."
--Me
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug