Package: libdvd-pkg
Version: 1.5.0-1-1
Severity: minor
Since Debian 13, mmdebstrap building a rootfs can use the host's apt,
instead of the chrooting into the rootfs and running the guest's apt.
libdvd-pkg puts a symlink in /etc/apt/apt.conf.d/.
Because it is absolute (not relative), it only works when chrooted.
Here is a minimal demonstration:
$ mmdebstrap forky /dev/null --quiet --components=main,contrib
--include=libdvdcss2 \
--customize-hook='set -x; APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt clean;
ls -ld $1/etc/apt/apt.conf.d/88libdvdcss-pkg; chroot $1 apt clean'
+
APT_CONFIG=/tmp/mmdebstrap.sgGQCYGnzi/tmp/mmdebstrap.apt.conf.wXBQ_gyppdKU apt
clean
Notice: Ignoring '88libdvdcss-pkg' in directory
'/tmp/mmdebstrap.sgGQCYGnzi/etc/apt/apt.conf.d/' as it is not a regular file
+ ls -ld /tmp/mmdebstrap.sgGQCYGnzi/etc/apt/apt.conf.d/88libdvdcss-pkg
lrwxrwxrwx 1 root root 35 2026-04-27 20:09
/tmp/mmdebstrap.sgGQCYGnzi/etc/apt/apt.conf.d/88libdvdcss-pkg ->
/usr/lib/libdvd-pkg/88libdvdcss-pkg
+ chroot /tmp/mmdebstrap.sgGQCYGnzi apt clean
This issue is also present in trixie (libdvd-pkg=1.4.3-1-1.1):
$ mmdebstrap trixie /dev/null --quiet --components=main,contrib
--include=libdvdcss2 \
--customize-hook='set -x; APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt clean;
ls -ld $1/etc/apt/apt.conf.d/88libdvdcss-pkg; chroot $1 apt clean'
+
APT_CONFIG=/tmp/mmdebstrap.pKAV66Smvf/tmp/mmdebstrap.apt.conf.irIyNjOcwj45 apt
clean
Notice: Ignoring '88libdvdcss-pkg' in directory
'/tmp/mmdebstrap.pKAV66Smvf/etc/apt/apt.conf.d/' as it is not a regular file
+ ls -ld /tmp/mmdebstrap.pKAV66Smvf/etc/apt/apt.conf.d/88libdvdcss-pkg
lrwxrwxrwx 1 root root 35 2026-04-27 20:14
/tmp/mmdebstrap.pKAV66Smvf/etc/apt/apt.conf.d/88libdvdcss-pkg ->
/usr/lib/libdvd-pkg/88libdvdcss-pkg
+ chroot /tmp/mmdebstrap.pKAV66Smvf apt clean
Please make the symlink a relative symlink instead of an absolute symlink, so
these have the same behaviour:
chroot $1 apt [...]
APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt [...]
It would also work if it was a regular file, i.e. if the postinst used cp
instead of ln.
This is the relevant line, I think:
https://sources.debian.org/src/libdvd-pkg/1.5.0-1-1/debian/postinst#L20
-- System Information:
Debian Release: 13.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.74+deb13+1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled