Package: python-kmodpy Version: 0.1.10-2 Severity: important Dear Maintainer,
python-kmodpy is marked as Multi-Arch: same but its postinst and preinst scripts call pycompile and pyclean without specifying the package architecture. As a result if python-kmodpy is installed for more than one architecture the package name is ambiguous, causing the postinst and prerm scripts fail. This then prevents any package from being installed or removed, thus breaking the system permanently. The solution is to replace the following line in /var/lib/dpkg/info/libccnet0:*.postinst pycompile -p python-kmodpy with pycompile -p python-kmodpy:$DPKG_MAINTSCRIPT_ARCH And the following line in /var/lib/dpkg/info/libccnet0:*.prerm pyclean -p python-kmodpy with pyclean -p python-kmodpy:$DPKG_MAINTSCRIPT_ARCH Note that this bugs still affects Debian 9.4, the current stable release. See also bug #770625 which shows how this same bug was fixed in gir1.2-ibus-1.0. -- System Information: Debian Release: 9.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-kmodpy:amd64 depends on: ii libkmod2 23-2 ii python 2.7.13-2 python-kmodpy:amd64 recommends no packages. python-kmodpy:amd64 suggests no packages. -- no debconf information