Axel Beckert wrote: > I still have bash as /bin/sh on that system and trying to reconfigure > dash to be /bin/sh again, still causes this problem: > > 4/0/0 r...@acromantula:pts/3 17:08:08 [~] # dpkg-reconfigure dash > dpkg-divert: mismatch on package > when removing `diversion of /bin/sh by dash' > found `diversion of /bin/sh to /bin/sh.distrib by bash'
Based on strace -f -o log -e execve dpkg-reconfigure dash it seems like dpkg-reconfigure calls prerm upgrade <version> config reconfigure <version> postinst configure <version> dash.prerm doesn't do anything on upgrade. dash.config puts up the deconf prompt. The relevant part of dash.postinst looks like: diverter=$(dpkg-divert --listpackage $dfile) truename=$(dpkg-divert --truename $dfile) case "$1" in true) if [ "$diverter" != dash ]; then # Let dpkg-divert error out; we are not taking # over the diversion, unless we added it # ourselves on behalf of bash. if [ "$diverter" = bash ]; then dpkg-divert --package bash --remove $dfile else dpkg-divert --package dash --remove $dfile # Make sure we die: echo "This should never be reached" exit 1 fi which would be trying to remove a diversion by bash in your case, I'd think. Could you try that strace command and see how dpkg-divert is called? Mystified, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org