Package: dash Version: 0.5.8-2.10 If /bin/sh points to dash (the default for some nine years now), dash fails to crossgrade, say from i386 to amd64. This is a regression from Stretch where that worked flawlessly.
,---- | # export LC_ALL=C | # dpkg --print-architecture | amd64 | # dpkg --print-foreign-architectures | i386 | # dpkg-query -W dash | dash:i386 0.5.8-2.10 | # readlink -f /bin/sh | /bin/dash | # dpkg -i /var/cache/apt/archives/dash_0.5.8-2.10_amd64.deb | (Reading database ... 10104 files and directories currently installed.) | Preparing to unpack .../dash_0.5.8-2.10_amd64.deb ... | Ignoring request to remove shared diversion 'diversion of /bin/sh to /bin/sh.distrib by dash'. | dpkg-divert: error: 'diversion of /bin/sh to /bin/sh.distrib by bash' clashes with 'diversion of /bin/sh to /bin/sh.distrib by dash' | dash.preinst: dpkg-divert exited with status 2 | dpkg: error processing archive /var/cache/apt/archives/dash_0.5.8-2.10_amd64.deb (--install): | new dash:i386 package pre-installation script subprocess returned error exit status 1 | Errors were encountered while processing: | /var/cache/apt/archives/dash_0.5.8-2.10_amd64.deb `---- A workaround is to dpkg-reconfigure dash to not provide /bin/sh, then installing dash:amd64 over dash:i386 works. ,---- | # dpkg-reconfigure dash | Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' | Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' | Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' | Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' | # readlink -f /bin/sh | /bin/bash | # dpkg -i /var/cache/apt/archives/dash_0.5.8-2.10_amd64.deb | (Reading database ... 10104 files and directories currently installed.) | Preparing to unpack .../dash_0.5.8-2.10_amd64.deb ... | Unpacking dash (0.5.8-2.10) over (0.5.8-2.10) ... | Setting up dash (0.5.8-2.10) ... `---- I haven't looked in great detail, but I suspect it is related to #890073. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.4-nouveau (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dash depends on: ii debianutils 4.8.6 ii dpkg 1.19.0.5+b1 ii libc6 2.27-5 dash recommends no packages. dash suggests no packages. -- debconf information: * dash/sh: true