Package: libdvd-pkg
Version: 1.4.2-1-1
Severity: important
X-Debbugs-Cc: mar...@clan-strauss.de

Dear Maintainer,

I upgraded from debian buster to bullseye. Afterwards libdvd-pkg reported the
following error:

libdvd-pkg: dpkg database is locked. You may need to use command "sudo dpkg-
reconfigure libdvd-pkg".
libdvd-pkg: Building and installation of package(s) [libdvdcss2 libdvdcss-dev]
postponed till after next APT operation.

This repeats for each "apt update". I spotted the same message on two different
computers, guess more people might be affected.
The package should download libdvdcss2 build and install it, which it doesn't
because of the failed check.

I tried the proposed "dpkg-reconfigure libdvd-pkg" which just produces the same
message. After some internet search I found the debian bug report #824093.
There someone reported that the check had been broken and provided a patch.
The patch is applied in the current version, however it seems that
the check for the lock is once again broken.

Basiclly it boils down to the following lines in the script:
/usr/lib/libdvd-pkg/b-i_libdvdcss.sh line 20

dpkg -P non-existent-package 2>/dev/null
if [ "$?" -eq 2 ]; then

It seems the with dpkg in version 1.20.9 the return code is always 2
independent of whether a package manager like aptitude is running or not.
Same is true for "dpkg -i /dev/zero" which was the previous version.
I checked this on the command line, the return code does not reflect
the lock status.
No idea how to fix this, the returned message is translated, so no good
to use that one. Maybe there is an official way how to do it, searching the
internet didn't help there. Maybe ask the dpkg maintainer?

-- System Information:
Debian Release: 11.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-11-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libdvd-pkg depends on:
ii  build-essential        12.9
ii  debconf [debconf-2.0]  1.5.77
ii  debhelper              13.3.4
ii  dh-autoreconf          20
ii  wget                   1.21-1+deb11u1

Versions of packages libdvd-pkg recommends:
ii  libcap2-bin  1:2.44-1

libdvd-pkg suggests no packages.

-- debconf information:
  libdvd-pkg/title_u:
* libdvd-pkg/first-install:
* libdvd-pkg/post-invoke_hook-install: true
  libdvd-pkg/post-invoke_hook-remove: false
  libdvd-pkg/title_b-i:
  libdvd-pkg/upgrade:

Reply via email to