My first live dist upgrade, controlled environment so no ‘downed server’ urgency but after a lot of reading, still unable to proceed. Essentially, I followed a how to very strictly and have everything documented. However, the blip that happened would suggest a loss of connectivity or a human break. However, there is evidence in the screen output of neither (obviously I know for sure there was no human break). As the output shows, a package was downloaded, installed as expected. The next package was downloaded and then out of the blue, evidence of rpm db corruption, install failure. I ignored as I knew what abort would do, The next package downloaded and failed on install again, same issue, rpm db corruption, as expected. Love to know how to figure out what happened.
In an effort to fix this to restart maybe, I tried a zypper clean all. failed.
zypper clean --all
zypper: error while loading shared libraries: librpm.so.1: cannot open shared object file: No such file or directory
rebuilt the rpm db, no problems (or so I presume with no output)
owenlab:~ # rpmdb --rebuilddb
It would seem zypper is borked. I would assume most things are borked by extension.
Figuring all was lost anyway, I rebooted. Came up ok, but same situation, zypper borked. If I could, I would restart the ‘zypper dup’ and hope it finished what it started with the rpm db rebuilt. However, with no zypper, I am lost since the only way I have ever installed anything was using zypper or Yast via gui. This device does not have a gui console installed and uses a stripped down version of opensuse. I can console in as root. I can connect via a nic and open a web interface. Nothing works since nginx is not running and seems to be in some state of in between.
When I rebooted, grub came up with 11.3 and 11.3 failsafe options. Left it to boot as 11.3 When I check opensuse version, I get 12.3
owenlab:~ # cat /etc/SuSE-release
openSUSE 12.3 (i586)
VERSION = 12.3
Lots of things won’t run and the missing librpm.so.1 file seems to be the issue reported in most all cases. Searched for the missing rpm library. No .1, but others exist following an updatedb:
owenlab:~ # locate librpm
From this thread:
From this thread, I have learned, albeit, too late, that upgrading from 11.3 is not advisable except by downloading all the RPMs in advance.
I have also gathered that a possible fix for my situation would be to reinstall the rpm rpm for 11.3:
On 2012-01-13 18:36, mlh85386 wrote:
> After rebuilding the rpm-database as recommended, any continuation of
> the upgrade process fails with a message on the missing rpm-library
> This library seems to correspond the rpm 4…8.0 which is/was replaced
> by rpm-18.104.22.168 during zypper’s upgrading routine
You have to reinstall “rpm”, using itself if possible. If not, you have do
it from a rescue system.
Can anyone confirm this or set me on a different path that will allow me to move forward without starting from scratch. I have to do a bunch of these and knowing how to recover is something I would call valuable to know.
While not a total newb to Linux, I could count the times on one hand I installed a non-propietary version of it and have never done an upgrade, so, I am prepared to be humbled here.