Re: rpm install from rescue CD



In comp.os.linux.misc Bob Tennent <BobT@xxxxxxxxxxxxx>:
On Thu, 30 Mar 2006 23:38:35 GMT, SINNER wrote:
* Bob Tennent wrote in comp.os.linux.misc:
I'm trying to use rpm from the 1st install CD of FC4. I'm trying to
re-install glibc packages that didn't get installed properly leaving the
system without ld. I've tried the following:

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

and am getting

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

What can be done?

When you boot a rescue CD it mounts the filesystem on the rescue CD as
your root. RPM is trying to create a lock on read only media. You need
to chroot the fixed disk / and rerun the command.

Thanks for replying. chroot wouldn't work because nothing on the system
can be run without a loader. 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). Iirc told you already to do so.

Good luck

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 283: Lawn mower blade in your fan need sharpening
.



Relevant Pages

  • Re: upgrade glibc disaster
    ... You said "rpm does not crash". ... He has a rescue CD. ... which Peter might have been able to tell you about if he were not ... this tells rpm to use that mount point as if it were the / of the ...
    (alt.os.linux)
  • Re: RPM : how to restore RPM when its broken ?
    ... You can download the rpm packages and the FC2 ... When ready install the correct packages from the location ... you did boot into 'rescue mode' from either the rescue CD ...
    (linux.redhat.misc)
  • Re: upgrade glibc disaster
    ... If rpm performs an install in a way that is not recoverable, ... designed to recover from half-installs and the like. ... He'd better either have another machine or a rescue cd! ... attention to hard links too. ...
    (alt.os.linux)
  • Re: rpm install from rescue CD
    ... re-install glibc packages that didn't get installed properly leaving the ... When you boot a rescue CD it mounts the filesystem on the rescue CD as ...
    (comp.os.linux.misc)
  • Re: Manually install RPM
    ... Via a "rescue CD". ... If you want your RPM database to be consistent, no, you must install ... Once you have restored the bad package, ...
    (Fedora)