Package: dash Version: 0.5.8-2.6 Severity: serious Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** Just doing a typical update for debian unstable. dmm:/bin/ $ sudo apt-get install dash [11:13:29] Reading package lists... Done Building dependency tree Reading state information... Done dash is already the newest version (0.5.8-2.6). The following packages were automatically installed and are no longer required: linux-image-4.13.0-1-amd64 linux-image-4.14.0-1-amd64 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 139 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up dash (0.5.8-2.6) ... Removing 'diversion of /bin/sh to /bin/sh.distrib by bash' Adding 'diversion of /bin/sh to /bin/sh.distrib by dash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' dpkg: error: error executing hook 'if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkgconf-dpkghook; then /usr/share/pkgconf-dpkghook update; fi', exit code 32512 E: Sub-process /usr/bin/dpkg returned an error code (2) Unfortnuately this has the affect of breaking the symbolic link for /bin/sh and so many things, like apt-get update then fail. Quick work arround is to ln bash as sh. Gets us going again, steps below for anyone in trouble. dmm:/bin/ $ ls -la /bin/sh [11:13:38] lrwxrwxrwx 1 root root 4 Jan 24 11:13 /bin/sh -> dash dmm:/bin/ $ sudo rm sh [11:14:23] dmm:/bin/ $ sudo ln -s bash sh [11:14:41] dmm:/bin/ $ ls -la sh [11:14:46] lrwxrwxrwx 1 root root 4 Jan 24 11:14 sh -> bash -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (150, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dash depends on: ii debianutils 4.8.4 ii dpkg 1.19.0.5 ii libc6 2.26-4 dash recommends no packages. dash suggests no packages. -- debconf information: * dash/sh: true