Pamac stuck at checking inter-conflicts

Hi All,

I have a problem when I try to update the packages via pamac, it gets stuck at checking inter-conflicts. It doesn't matter which packages are in question. For example today I had 3 packages from AUR and 1 package from standard repository, it went through a few steps and then the last step was checking inter-conflicts where it just got stuck and did nothing for a very long time, until I killed the pamac process. I've fount the the file /var/lib/pacman/db.lck was present, so maybe that was the issue, but I don't know why the file was there since the last installation I did via command line pacman was successful. When I deleted the file and ran the update via pacman in the command line, all went OK. Any idea?

Can you post the error, when you try to update via console (e.g.: pacman -Syyu or similar)?

pacman itself works OK. I have a problem with running installs/upgrades via pamac. For example now I've tried to upgrade the virtualbox-ext-oracle package from AUR and this is the log:

Synchronizing package databases...
Starting full system upgrade...
Cloning virtualbox-ext-oracle build files...
Checking virtualbox-ext-oracle dependencies...

Building virtualbox-ext-oracle...
==> Making package: virtualbox-ext-oracle 6.0.12-1 (St 11. september 2019, 07:56:42 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Oracle_VM_VirtualBox_Extension_Pack-6.0.12.vbox-extpack...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  7 22.0M    7 1796k    0     0  3607k      0  0:00:06 --:--:--  0:00:06 3600k
 40 22.0M   40 9264k    0     0  6188k      0  0:00:03  0:00:01  0:00:02 6184k
 81 22.0M   81 18.0M    0     0  7364k      0  0:00:03  0:00:02  0:00:01 7361k
100 22.0M  100 22.0M    0     0  6812k      0  0:00:03  0:00:03 --:--:-- 6812k
==> Validating source files with sha256sums...
    Oracle_VM_VirtualBox_Extension_Pack-6.0.12.vbox-extpack ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "virtualbox-ext-oracle"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: virtualbox-ext-oracle 6.0.12-1 (St 11. september 2019, 07:56:55 CEST)
==> Cleaning up...

Failed to init transaction:
unable to lock database

When I check the /var/lib/pacman directory, the db.lck file is there, but it was not there before I started the upgrade. So it seems like the file remains there after one of the pacman operations and thus the next step fails.

Pamac-GTK has been misbehaving for me exactly as you described, in several VMs + my real Tower, for a week or two [or three]. In each case i had to kill it, then delete the lock file, then simply do it "old-skool" in Konsole/Terminal via pacman [which of course always then succeeds]. So far i've been unsuccessful in troubleshooting it.

This is exactly how it behaves for me. When it gets stuck, I have to kill it, delete that file and run pacman directly via the terminal. So probably there is some kind of a bug that leave the db.lck in place after some of the steps are finished...

Hi Marte,

This is exactly how I do it, pacman is not running, the file is still in place in /var/lib/pacman, so I delete the file and run pacman via terminal. But this happens pretty much every time I want to run an update via pamac, so it's not really I one time occurence. There must be some bug somewhere...

For example today it got stuck at a point it has never been stuck before: I let it upgrade package python-pychromecast from AUR. And this is the output:

Synchronizing package databases...
Starting full system upgrade...
Cloning python-pychromecast build files...
Checking python-pychromecast dependencies...

Building python-pychromecast...
==> Making package: python-pychromecast 4.0.1-1 (Po 16. september 2019, 10:44:40 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 4.0.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   127    0   127    0     0    359      0 --:--:-- --:--:-- --:--:--   359

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 50722    0 50722    0     0  49436      0 --:--:--  0:00:01 --:--:--   98k
==> Validating source files with sha512sums...
    4.0.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 4.0.1.tar.gz with bsdtar
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/pychromecast
copying pychromecast/socket_client.py -> build/lib/pychromecast
copying pychromecast/logging_pb2.py -> build/lib/pychromecast
copying pychromecast/error.py -> build/lib/pychromecast
copying pychromecast/discovery.py -> build/lib/pychromecast
copying pychromecast/dial.py -> build/lib/pychromecast
copying pychromecast/config.py -> build/lib/pychromecast
copying pychromecast/cast_channel_pb2.py -> build/lib/pychromecast
copying pychromecast/authority_keys_pb2.py -> build/lib/pychromecast
copying pychromecast/__init__.py -> build/lib/pychromecast
creating build/lib/pychromecast/controllers
copying pychromecast/controllers/youtube.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/spotify.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/plex.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/multizone.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/media.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/homeassistant.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/dashcast.py -> build/lib/pychromecast/controllers
copying pychromecast/controllers/__init__.py -> build/lib/pychromecast/controllers
running egg_info
creating PyChromecast.egg-info
writing PyChromecast.egg-info/PKG-INFO
writing dependency_links to PyChromecast.egg-info/dependency_links.txt
writing requirements to PyChromecast.egg-info/requires.txt
writing top-level names to PyChromecast.egg-info/top_level.txt
writing manifest file 'PyChromecast.egg-info/SOURCES.txt'
reading manifest file 'PyChromecast.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file 'PyChromecast.egg-info/SOURCES.txt'
==> Entering fakeroot environment...
==> Starting package()...
running install
running install_lib
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
creating /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/__init__.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/dashcast.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/homeassistant.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/media.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/multizone.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/plex.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/spotify.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/controllers/youtube.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers
copying build/lib/pychromecast/__init__.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/authority_keys_pb2.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/cast_channel_pb2.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/config.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/dial.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/discovery.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/error.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/logging_pb2.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
copying build/lib/pychromecast/socket_client.py -> /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/__init__.py to __init__.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/dashcast.py to dashcast.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/homeassistant.py to homeassistant.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/media.py to media.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/multizone.py to multizone.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/plex.py to plex.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/spotify.py to spotify.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/controllers/youtube.py to youtube.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/__init__.py to __init__.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/authority_keys_pb2.py to authority_keys_pb2.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/cast_channel_pb2.py to cast_channel_pb2.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/config.py to config.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/dial.py to dial.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/discovery.py to discovery.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/error.py to error.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/logging_pb2.py to logging_pb2.cpython-37.pyc
byte-compiling /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/pychromecast/socket_client.py to socket_client.cpython-37.pyc
writing byte-compilation script '/tmp/tmp_k5n9jne.py'
/usr/bin/python /tmp/tmp_k5n9jne.py
removing /tmp/tmp_k5n9jne.py
running install_egg_info
running egg_info
writing PyChromecast.egg-info/PKG-INFO
writing dependency_links to PyChromecast.egg-info/dependency_links.txt
writing requirements to PyChromecast.egg-info/requires.txt
writing top-level names to PyChromecast.egg-info/top_level.txt
reading manifest file 'PyChromecast.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file 'PyChromecast.egg-info/SOURCES.txt'
Copying PyChromecast.egg-info to /tmp/pamac-build/python-pychromecast/pkg/python-pychromecast/usr/lib/python3.7/site-packages/PyChromecast-4.0.1-py3.7.egg-info
running install_scripts
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-pychromecast"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-pychromecast 4.0.1-1 (Po 16. september 2019, 10:44:43 CEST)
==> Cleaning up...

There is no db.lck file in /var/lib/pacman, pacman itself is not running:

#ps -ef | grep pacman | grep -v grep
<no output>

And it's stuck like that forever... Is there any log file for pamac, which would tell me what it is waiting for?

Have you tried pamac-qt instead of pamac-gtk? I am going to use it next time to see if it behaves better. If you're not using KDE, maybe this package might not be practical for you, wrt all the dependencies...?

Well I'm on Gnome so that would not be practical indeed... But it worked perfectly OK for more than a year...

Not sure about this but would you think a reinstallation of pamac-gtk could possibly straighten things up?

I've already tried that, but that hasn't helped... Maybe if I could somehow reset all pama settings and delete some temp files?

I experienced that this morning, but I suppose because I have both pamac-qt and Discover installed and both were checking for updates?

Pamac GUI clear cache/tmp in preferences

OK when I've cleaned up the tmp files and the cached files, then the upgrade of one package went OK - no idea if it was a coincidence. Will do some more testing to see if it really works now...

I have the exact same problem. Also pamac-manager just stops and I have to kill it as well.
it was working great before the new pamac 8 update.
pamac 7 worked great.

Starting full system upgrade...
Cloning skypeforlinux-stable-bin build files...
Checking skypeforlinux-stable-bin dependencies...
Resolving dependencies...
Checking inter-conflicts...

what works for me is terminal updates like: sudo pacman -Syyu and yay

Same here.

Good evening,
I was the one who submitted this report to the Gitlab.
I had the case again today with pamac-gtk.
I have two updates from AUR, I want to do them via pamac-gtk, again this error of db.lock.
I open the terminal, delete this db.lock file, try again with pamac-gtk: still the same error.
I do my updates via the terminal with yay, no problem.
First, I check if I have a process busy with updates, where would this db.lock error come from; but no process is busy with my updates.
Then you should explain to me where this database lockup came from.

For example today I had 2 updates (Firefox) from normal repositories.
I've started Pamac, but not via the Gnome applet for updates, but normally from the start menu.
In Pamac, I've switched over to the updates, and started the update of both packages.
All went OK, now without a problem. I will check it next time when I have some update from AUR.
So just for the sake of completeness: since I've cleaned up cache and tmp files in Pamac, I had 2 successful updates and no failures.

1 Like

Forum kindly sponsored by Bytemark