On 20/02/2019 21.09, George from the tribe wrote:
So, I am trying to do zypper dup on tumbleweed, and it failed at this package: btrfsmaintenance-0.4.2-1.1.noarch
The way it failed was that it was doing the install, and stalled at installing this package when it was 92% installed. It sat there for a looooong time... I noticed the partition was full up to its reserve requirement, so I increased it with tune2fs -m 1 /dev/sda2
This freed up space, but the installation of this would not proceed. So I finally hit ctrl-c to kill it (maybe that was a bad idea?)... and it killed it, but most of the distribution upgrade is already installed, so I cannot reboot on this partition...
BTW, I am not even using btrfs; I am using ext4, so I don't know why TW wants me to have this package in the first place, but that is another issue...
Ok...
back to the issue at hand... I am stuck with a partially installed distribution upgrade, and so I cannot reboot, but I also cannot complete the upgrade. When I try to reinstall it, I get this:
...
Removal of (98296)btrfsmaintenance-0.4.2-1.1.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Resource temporarily unavailable)
Abort, retry, ignore? [a/r/i] (a): r
So I removed that file, and tried again, and got this:
Abort, retry, ignore? [a/r/i] (a): r Removal of (98296)btrfsmaintenance-0.4.2-1.1.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: warning: waiting for exclusive lock on /var/lib/rpm/Packages error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db4 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm
Abort, retry, ignore? [a/r/i] (a): r
This is where I am stuck. It seems the problem is the exclusive lock. I tried undeleting the /var/lib/rpm/.rpm.lock file, and it still did the same thing.
Any help please? I don't want to have to reinstall the whole OS, but that is about the only thing I will know how to do next if I can't get this to work.
Ok, remove the lock, and use the rpm command to remove that pesky package. Make sure (ps -afxu | less) that there is no rpm/zypper/yast/packagekit running first. rpm --erase btrfsmaintenance -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)