On 16/03/2021 18.26, L A Walsh wrote:
The following package is going to be upgraded: rpm
1 package to upgrade. Overall download size: 1.6 MiB. Already cached: 0 B After the operation, additional 2.6 KiB will be used. Continue? [y/n/? shows all options] (y): Checking for file conflicts: .............................................[done]
Retrieving package rpm-4.14.1-lp151.13.10.x86_64 (1/1), 1.6 MiB ( 4.6 MiB unpacked) (1/1) Installing: rpm-4.14.1-lp151.13.10 .................................[done] Additional rpm output: Updating /etc/sysconfig/services ...
Output of rpm-4.14.1-lp151.13.10.x86_64.rpm %posttrans script: migrating rpmdb from /var/lib/rpm to /usr/lib/sysimage/rpm... mv: inter-device move failed: 'var/lib/rpm/alternatives' to 'usr/lib/sysimage/rpm/alternatives'; unable to remove target: Directory not empty rmdir: failed to remove 'var/lib/rpm': Directory not empty
Warning: rpm-4.14.1-lp151.13.10.x86_64.rpm %posttrans script failed (returned 1) Problem occured during or after installation or removal of packages: Failed to cache rpm database (1). Please see the above error message for a hint. ----------------
Speaking of weird error messages
Tried to install rpm from leap 15.1... Rats; yeah, have backups won't travel much...
Yes, at some point in time the location of the rpm database changed, so one of updates had to move the existing files. One of the moves (across mounts) failed because target directory was not empty. cer@Telcontar:~> l /var/lib/rpm lrwxrwxrwx 1 root root 26 Jun 8 2020 /var/lib/rpm -> ../../usr/lib/sysimage/rpm/ cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)