Bug#751435: Removal broken on multiarch: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance
Package: libstdc++6
Version: 4.9.0-5
Severity: normal
Removing libstdc++6:i386 (4.9.0-5) ...
dpkg-query: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance
Use --help for help about querying packages.
Produced by the following code in prerm:
case "$1" in
remove)
files=$(dpkg -L libstdc++6 | awk -F/ 'BEGIN {OFS="/"} /\.py$/ {$NF=sprintf("__pycache__/%s.*.py[co]", substr($NF,1,length($NF)-3)); print}')
rm -f $files
esac
- Josh Triplett
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libstdc++6 depends on:
ii gcc-4.9-base 4.9.0-5
ii libc6 2.18-7
ii libgcc1 1:4.9.0-5
ii multiarch-support 2.18-7
libstdc++6 recommends no packages.
libstdc++6 suggests no packages.
-- no debconf information
Reply to: