When I start Tumbleweed the first thing I do is zypper dup. However each time I get the following message:
**linux-top:~ #** zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make su
re these repositories are compatible before you continue. See 'man zypper' for more inform
ation about this command.
warning: waiting for shared lock on /var/lib/rpm/Packages
error: cannot get shared 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
Target initialization failed:
Rpm Exception
**linux-top:**
I presume after loging in the computer looks for updates because the first thing I get is the computer asking for the root password. I normally cancel out as I those updates would come from the normal updater and would be the equivalent of ‘zypper up’. If I wait for approx 10 minutes the command zypper dup works as it should. I would like to disable this automatic updates here and I have already unchecked the system update box in the system tray. Where can I disable this automatic update function?
Cheers
uli
I do sometimes see a message about locks, but I seem to recall that it mentions “packagekit”.
I don’t see this when I login to KDE Plasma, presumably because I have disabled the tray updater. But if I login to Gnome, I sometime see this. I have disabled whatever I can find about updates with Gnome, but apparently something still checks.
On the positive side, when whatever updater has finished and I can use “zypper”, it doesn’t have to refresh because the updater already did that.
You could try uninstalling “packagekit”. You might have to then lock it so that it isn’t automatically installed on the next update.
I had deleted packagekit previously for that reason but it is there again. I have done it again and if everything is OK I will taboo it next time and report back. It might be a while though.
Thanks nrickert
OK today I started Tumbleweed (after I had deleted the PackageKit yesterday) and there was no messages “waiting for shared lock on /var/lib/rpm/Packages”. So I tabooed these packages (PackageKit PackageKit-backend-zypp PackageKit-branding-openSUSE PackageKit-lang). The next thing I did is to check what this request for the root password is. It seems to have to do with the network connections see https://paste.opensuse.org/41313179. These two processes listed under Details are (checked with ps -ef) :
I presume this comes because during startup the laptop always turns on wifi. Since I am on an ethernet cable I turn it off during startup. Just before the plymouth screen appears I can see the IP addresses (v4 and v6) so the network connection is there. So this request for the root password had nothing to do with any updates.
I hope the tabooing or PackageKit solved the problem and this startup was not a one-off. If it comes up again and I have further problems I come back to you. In the meantime a big thank you to all of you who came to help!
Regards
Uli