[opensuse] major rpm database corruption problem - opensuse 11.1
Hello all, I had some system disk issues and I now seem to have a totally corrupted rpm database that I am not able to rebuild. I've tried rpm init and rpm rebuild db but these do not seem to work. I tried the zypper approach with aypper -ref and still no luck. Any suggestions short of re installing the system. Things seem to work fine except I cannot install/update any software. Thanks, Vahe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2009-07-16 at 19:32 -0700, Vahe Avedissian wrote:
I had some system disk issues and I now seem to have a totally corrupted rpm database that I am not able to rebuild.
You should have backups in /var/adm/backup/rpmdb - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpg1owACgkQtTMYHG2NR9VBVwCeMNKyLhtFxIM7xwhaHKRPpYzr RMIAmwfRpD/cUaVJfaLpI/IbtMBaQ0eI =vSEE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
----- Original Message ----
From: Carlos E. R.
I had some system disk issues and I now seem to have a totally corrupted rpm database that I am not able to rebuild.
You should have backups in /var/adm/backup/rpmdb - -- Cheers, Carlos E. R. Hi Carlos, I looked at all the backup Pachage.gz files and these were all generated as I kept trying to re-build the rpm database. In other words, these are all bad. Any other things I could try to properly rebuild my rpm database? Thanks, Vahe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-07-18 at 17:32 -0700, Vahe Avedissian wrote:
On Thursday, 2009-07-16 at 19:32 -0700, Vahe Avedissian wrote:
I had some system disk issues and I now seem to have a totally corrupted rpm database that I am not able to rebuild.
You should have backups in /var/adm/backup/rpmdb
I looked at all the backup Pachage.gz files and these were all generated as I kept trying to re-build the rpm database. In other words, these are all bad.
You should have backups named like Packages-20090718.gz, and some days back. Hopefully one of those was made a day your database was not broken. The idea is to replace the /var/lib/rpm/Packages file, delete the rest, and rebuild.
Any other things I could try to properly rebuild my rpm database?
Not that I know. Reinstall... or reinstall on top. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpic2YACgkQtTMYHG2NR9UHSACeJsTLzqVSV65XwVeEq3BEXdKc UjUAmwRfPwSTnh9DkLK0e0LwsKAFAuQs =jTyW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 18 Jul 2009 17:32:05 -0700, Vahe Avedissian wrote:
I looked at all the backup Pachage.gz files and these were all generated as I kept trying to re-build the rpm database. In other words, these are all bad.
Any other things I could try to properly rebuild my rpm database?
You mentioned that rpm --rebuilddb didn't work, but didn't specify what it was that happened when you tried it....did you get any error messages? What indication did you get that it didn't rebuild properly? Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I looked at all the backup Pachage.gz files and these were all generated as I kept trying to re-build the rpm database. In other words, these are all bad.
Any other things I could try to properly rebuild my rpm database?
You mentioned that rpm --rebuilddb didn't work, but didn't specify what it was that happened when you tried it....did you get any error messages? What indication did you get that it didn't rebuild properly? Jim I got no errors what so ever. I know there is a problem because if I do an rpm -qa it shows about 15 (yes, 15) packages installed and I cannot install any packages with yast or zypper. Vahe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-07-18 at 23:43 -0700, Vahe Avedissian wrote:
You mentioned that rpm --rebuilddb didn't work, but didn't specify what it was that happened when you tried it....did you get any error messages? What indication did you get that it didn't rebuild properly?
I got no errors what so ever. I know there is a problem because if I do an rpm -qa it shows about 15 (yes, 15) packages installed and I cannot install any packages with yast or zypper.
Delete the databases, then try installing anything. If it works, then re-install everything you should have installed. Rather thick handed... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpi8GkACgkQtTMYHG2NR9WnFwCeJnm00V+g0N1IyBDStSNR5BMl WOAAnj083HPO3DQeph8B1zDlGzYkyoYM =8Njf -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
----- Original Message ----
From: Carlos E. R.
On Sat, 18 Jul 2009 23:43:50 -0700, Vahe Avedissian wrote:
I got no errors what so ever. I know there is a problem because if I do an rpm -qa it shows about 15 (yes, 15) packages installed and I cannot install any packages with yast or zypper.
Is there any indication of a hardware fault? ie bad sectors on the hard drive or anything like that? Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi there, On Fri, 17 Jul 2009, 04:32:41 +0200, Vahe Avedissian wrote:
Hello all,
I had some system disk issues and I now seem to have a totally corrupted rpm database that I am not able to rebuild.
I've tried rpm init and rpm rebuild db but these do not seem to work. I tried the zypper approach with aypper -ref and still no luck.
Any suggestions short of re installing the system. Things seem to work fine except I cannot install/update any software.
If you still happen to have an up-to-date list of packages installed on your system, you could use it to rebuild the RPM database from scratch: rpm --initdb cat list-of-packages | while read pkg; do rpm --justdb -Uvh /path/to/your/packages/${pkg}.*.rpm done While this is pretty much straight-forward on a 32-bit system, you have to keep in mind, that there are alternatives to choose from on a 64-bit system (e.g. Firefox, Acroread, Java, etc.).
Thanks,
Vahe
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-07-20 at 15:18 +0200, Manfred Hollstein wrote:
If you still happen to have an up-to-date list of packages installed on your system, you could use it to rebuild the RPM database from scratch:
rpm --initdb cat list-of-packages | while read pkg; do rpm --justdb -Uvh /path/to/your/packages/${pkg}.*.rpm done
A very insteresting sequence of commands... I'll save this for the future :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpkf/EACgkQtTMYHG2NR9Wp4wCfXn7PRO7HGhMIw58G+7QFRYT+ b/IAn16SgkGA8fXCA4DQxfheD1Ot1m+B =+TKq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
Jim Henderson
-
Manfred Hollstein
-
Vahe Avedissian