Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

  1. #1

    Default Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    When I start Tumbleweed the first thing I do is zypper dup. However each time I get the following message:
    Code:
    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

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,663
    Blog Entries
    3

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    I haven't seen that message.

    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.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    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

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,695
    Blog Entries
    1

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Quote Originally Posted by nrickert View Post
    I haven't seen that message.

    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.
    Not a Gnome user, but this perhaps?
    Code:
    gsettings set org.gnome.software download-updates false
    https://lists.opensuse.org/opensuse-.../msg00280.html

  5. #5
    Join Date
    Sep 2012
    Posts
    7,090

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Quote Originally Posted by fuerstu View Post
    Code:
    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
    
    Please show content of /var/lib/rpm (ls -la /var/lib/rpm/)

  6. #6

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Just for the record I am using KDE. And, arvidjaar, here is the listing - just a link.
    Code:
     ls -la /var/lib/rpm
    lrwxrwxrwx 1 root root 26 Mar  7 22:32 /var/lib/rpm -> ../../usr/lib/sysimage/rpm
    
    In case you want the other list:
    Code:
    ls -la /usr/lib/sysimage/rpm
    total 468784
    drwxr-xr-x 2 root root      4096 Mar  7 22:32 .
    drwxr-xr-x 3 root root      4096 Mar  7 22:32 ..
    -rw-r--r-- 1 root root  31301632 Mar 11 17:03 Basenames
    -rw-r--r-- 1 root root     32768 Mar 11 17:03 Conflictname
    -rw-r--r-- 1 root root  41672704 Mar 11 17:03 Dirnames
    -rw-r--r-- 1 root root      8192 Mar 11 16:02 Enhancename
    -rw-r--r-- 1 root root      8192 Mar 10 14:42 Filetriggername
    -rw-r--r-- 1 root root     81920 Mar 11 17:03 Group
    -rw-r--r-- 1 root root    188416 Mar 11 17:03 Installtid
    -rw-r--r-- 1 root root    319488 Mar 11 17:03 Name
    -rw-r--r-- 1 root root    147456 Mar 11 17:03 Obsoletename
    -rw-r--r-- 1 root root 397094912 Mar 11 17:03 Packages
    -rw-r--r-- 1 root root   6496256 Mar 11 17:03 Providename
    -rw-r--r-- 1 root root     69632 Mar 11 17:03 Recommendname
    -rw-r--r-- 1 root root   1437696 Mar 11 17:03 Requirename
    -rw-r--r-- 1 root root         0 Aug 25  2012 .rpm.lock
    -rw-r--r-- 1 root root    589824 Mar 11 17:03 Sha1header
    -rw-r--r-- 1 root root    294912 Mar 11 17:03 Sigmd5
    -rw-r--r-- 1 root root     20480 Mar 11 17:03 Suggestname
    -rw-r--r-- 1 root root    217088 Mar 11 17:03 Supplementname
    -rw-r--r-- 1 root root      8192 Mar  5  2017 Transfiletriggername
    -rw-r--r-- 1 root root      8192 Feb 11 17:04 Triggername
    

  7. #7
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Quote Originally Posted by fuerstu View Post
    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
    You can go in Yast=>Software Manager and taboo it now, save you dealing with it in the future.

    Also, another setting for updates is, while in Software Manager, look under Configuration where you can configure online updates.
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,663
    Blog Entries
    3

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Quote Originally Posted by deano_ferrari View Post
    Not a Gnome user, but this perhaps?
    Code:
    gsettings set org.gnome.software download-updates false
    https://lists.opensuse.org/opensuse-.../msg00280.html
    I'm pretty sure that is already set. It is not downloading updates. But it is still doing a refresh on the repo metadata.

    I'm not really a Gnome user either, but I play with it from time to time.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  9. #9

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Quote Originally Posted by deano_ferrari View Post
    Not a Gnome user, but this perhaps?
    Code:
    gsettings set org.gnome.software download-updates false
    I don't seem to have org.gnome.software
    Code:
    :~> gsettings list-schemas | grep org.gnome.software
    :~>
    But as I wrote - I use KDE not gnome.

  10. #10
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    193

    Default Re: Tumbleweed waiting for shared lock on /var/lib/rpm/Packages

    Right click on the show hidden icons item in the task bar, select system tray settings and uncheck software updates.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •