Interrupted update

I made an error on the recent large update. I neglected to plug in my laptop and the battery died before the update completed. After I plugged it in and ran zypper dup to finish the update, I get this error

zypper: error while loading shared libraries: librpm.so.9: cannot open shared object file: No such file or directory

Can I correct this error? Do I need a re-install? WiFi seems slow, too. So, there must be other errors lurking out there do to failed update.

This was most likely not caused by the power loss, but as already discussed in several threads and bugreport by an issue with openssl-3 package.

Simply do a

sudo rpm -Uhv https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libzypp-17.31.28-1.5.x86_64.rpm https://download.opensuse.org/tumbleweed/repo/oss/x86_64/zypper-1.14.68-1.3.x86_64.rpm https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libsolv-tools-0.7.28-1.5.x86_64.rpm 

to install the missing librpm.so.x again.
After that, repeat zypper dup

https://bugzilla.opensuse.org/show_bug.cgi?id=1219562

1 Like

Thank you for this solution. I scanned a thread about the problems with the update but stopped when I saw nothing about an interrupted update. This was a very big update and now works as it should.

Thanks again.

2 Likes

I had to add https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libsolv-tools-0.7.28-1.5.x86_64.rpm to the rpm args too as it complained about libprotobuf-lite.so.25.1.0()(64bit) is needed by libzypp-17.31.28-1.5.x86_64

Would using ZYPP_SINGLE_RPMTRANS=1 have prevented this issue?

I’ve also run into this issue. I’ve downloaded the RPMs listed above:

sudo rpm -Uhv https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libzypp-17.31.28-1.5.x86_64.rpm https://download.opensuse.org/tumbleweed/repo/oss/x86_64/zypper-1.14.68-1.3.x86_64.rpm https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libsolv-tools-0.7.28-1.5.x86_64.rpm
Retrieving https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libzypp-17.31.28-1.5.x86_64.rpm
Retrieving https://download.opensuse.org/tumbleweed/repo/oss/x86_64/zypper-1.14.68-1.3.x86_64.rpm
Retrieving https://download.opensuse.org/tumbleweed/repo/oss/x86_64/libsolv-tools-0.7.28-1.5.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
	package libsolv-tools-0.7.28-1.5.x86_64 is already installed

But am still greeted with the error:

zypper: error while loading shared libraries: librpm.so.9: cannot open shared object file: No such file or directory

I feel like I must be missing something obvious?

Kernel: 6.4.2-1-default arch: x86_64 bits: 64 Console: pty pts/0
Distro: openSUSE Tumbleweed 20240209

Because you did not install anything - rpm aborted due to attempt to install the same package version as is already present.

Use the --force option when upgrading:

sudo rpm -Uhv --force pkg1 [pkg2 ...]

Thanks. I solved the problem by repeatedly issuing the command:

rpm -Uhv ./libsolv-devel-0.7.28-1.5.x86_64.rpm && rpm -Uhv ./libzypp-17.31.28-1.5.x86_64.rpm && rpm -Uhv ./zypper-1.14.68-1.3.x86_64.rpm && rpm -Uhv ./libsolv-tools-0.7.28-1.5.x86_64.rpm && rpm -Uhv ./libzypp-devel-17.31.28-1.5.x86_64.rpm

Until all the dependency errors were resolved—which meant me hunting down every dependency. Inelegant, I suppose, but it worked.