Package: libccnet0
Version: 6.0.2-2
Severity: important
Dear Maintainer,
libccnet0 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 libccnet0 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 libccnet0
with
pycompile -p libccnet0:$DPKG_MAINTSCRIPT_ARCH
And the following line in /var/lib/dpkg/info/libccnet0:*.prerm
pyclean -p libccnet0
with
pyclean -p libccnet0:$DPKG_MAINTSCRIPT_ARCH
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 libccnet0:amd64 depends on:
ii libc6 2.24-11+deb9u3
ii libevent-2.0-5 2.0.21-stable-3
it libglib2.0-0 2.50.3-2
ii libjansson4 2.9-1
ii libsearpc1 3.0.8-1
ii libsqlite3-0 3.16.2-5+deb9u1
ii libuuid1 2.29.2-1+deb9u1
ii python 2.7.13-2
ii python-searpc 3.0.8-1
libccnet0:amd64 recommends no packages.
libccnet0:amd64 suggests no packages.
-- no debconf information