Re: rpm install from rescue CD



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

and I guess that's in RAM, at least for the Fedora Core 4 install disk.

Bob T.
.



Relevant Pages

  • 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 ... RPM is trying to create a lock on read only media. ...
    (comp.os.linux.misc)
  • 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)