Re: rpm install from rescue CD



On Fri, 31 Mar 2006 07:39:45 +0200, Michael Heiming wrote:

rpm -U --replacepkgs --root /mnt/sysimage glibc*

and am getting

error: can't create transaction lock on /var/lib/rpm/_db.000


It turns out that I just have to

mkdir -p /var/lib/rpm

Actually you have to tell rpm where the rpmdb to use is,
(--dbpath).

Well --root /mnt/sysimage does that but it seems the transaction lock
code in rpm doesn't pay attention and is using /var/lib/rpm regardless.
The version of rpm on the CD doesn't even recognize the --dbpath option
and in any case there would be no rpm database at /var/lib/rpm for it to
use. Creating the directory just gives the transaction-lock code a place
to put the lock.

Bob T.
.



Relevant Pages

  • Re: Old 78s (was Re: Old LPs
    ... ago I didn't pay attention, so the new one does not have 78 rpm. ... My wife has some old Leopold Stokowski recordings on 78s that are for ...
    (soc.retirement)
  • Re: rpm install from rescue CD
    ... code in rpm doesn't pay attention and is using /var/lib/rpm regardless. ...
    (comp.os.linux.misc)
  • Re: Slow Start-up
    ... all notebooks proposed have 5400 rpm at most. ... "Bob I" wrote: ... Jacques wrote: ... I'm thinking of buying now a new laptop because I'm loosing time now. ...
    (microsoft.public.windowsxp.general)
  • Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way
    ... > rpmdb: unable to join the environment ... > I have never seen rpm do this before, and it only occurs under 2.6.0-test. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way
    ... Bradley Chapman wrote: ... >rpmdb: unable to join the environment ... >I have never seen rpm do this before, and it only occurs under 2.6.0-test. ...
    (Linux-Kernel)