VIVE L’AMOUR!
I was having many problems with “dash” (on different occasions), too.
Finally, I decided to change the default “/bin/sh” shell … from “/bin/dash” to “/bin/bash”.
sudo dpkg-reconfigure dash
“Install dash as /bin/sh?” <-- choose “”
A pitiful case, am I not?
Pepe Le Pew.