Skip to contentSkip to conversation

R5 Install (Mostly) Successful on PBG3

DISCUSSION root 2 participants 3 messages Feb 11, 1999

lore
Share & tools
lore

root

author
#0 lore raw

I am able to install pre-R5 on my G3 Series laptop again, using the latest RPMS from mirror. I used Martin Costabel's "big" ramdisk image and a 2.1.125 kernel.

There were a few failures during intstall. The main problem I have is that RPM doesn't work; any attempt to use it returns an error "//var/lib/rpm/nameindex.rpm: Invalid argument"

Is it the double slash at the beginning of that line? Where is it getting that path? Using --dbpath doesn't seem to help...

Hugh

--
Hugh Caley, System Administrator
Babcock & Brown, Inc., San Francisco
1+512+1515x694 | [email protected]

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#1 lore raw
Quoted 3 lines · root

There were a few failures during intstall. The main problem I have is that RPM doesn't work; any attempt to use it returns an error "//var/lib/rpm/nameindex.rpm: Invalid argument"

The problem seems to be the R4 RPM database and the pre-R5 RPM database are incompatible with each other. I manually removed all the /var/lib/rmp/* files (well, i copied them off) and reinstalled -- it created a new RPM database that works. However, I was left with a ton of files from R4 rpms, that were no longer needed and I had to remove manually.

I did write a script that would return 0 if the file passed in as a name was listed in the RPM database, and -1 otherwise, then used the script in a find command to list all the non-RPM files. I ran it overnight -- ended up with thousands of files, and manually deleted large chunks of them.

Be _very_ careful doing this. Sometimes you'll get RPMs that don't indicate that a directory is part of the distribution, so you'll see directory names you think you can delete. You don't want to do that. :-)

----------------------------------------------------------------------------
Jeff Rugen [email protected]

...Had this been an actual emergency, we would have fled in terror, and you would not have been informed.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

author
#2 lore raw

This was a new install, no R4 stuff involved.

It turns out that running rpm --rebuilddb fixed it. I haven't had any problems installing the stuff I missed after that.

Do the LinuxPPC guys want to hear about problems with the install and operation?

Hugh

Quoted 21 lines · Jeff Rugen
Quoted 3 lines · root

There were a few failures during intstall. The main problem I have is that RPM doesn't work; any attempt to use it returns an error "//var/lib/rpm/nameindex.rpm: Invalid argument"

The problem seems to be the R4 RPM database and the pre-R5 RPM database are incompatible with each other. I manually removed all the /var/lib/rmp/* files (well, i copied them off) and reinstalled -- it created a new RPM database that works. However, I was left with a ton of files from R4 rpms, that were no longer needed and I had to remove manually.

I did write a script that would return 0 if the file passed in as a name was listed in the RPM database, and -1 otherwise, then used the script in a find command to list all the non-RPM files. I ran it overnight -- ended up with thousands of files, and manually deleted large chunks of them.

Be _very_ careful doing this. Sometimes you'll get RPMs that don't indicate that a directory is part of the distribution, so you'll see directory names you think you can delete. You don't want to do that. :-)

Quoted 5 lines

----------------------------------------------------------------------------
Jeff Rugen [email protected]

...Had this been an actual emergency, we would have fled in terror, and you would not have been informed.

--
Hugh Caley, System Administrator
Babcock & Brown, Inc., San Francisco
1+512+1515x694 | [email protected]

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]