Installing Debian in a chroot and having to deal with packages that fail to configure because of environment issues makes me appreciate #NixOS more. What would one do who didn't know about /var/lib/dpkg/info/*.postinst or dpkg-reconfigure locales ?
Some packages wouldn't configure because of a missing /dev/pts, a missing /tmp/root/, missing directories from a wrongfully inherited XDG_DATA_DIRS variable, or a missing en_US.UTF-8 locale from a missing dpkg-reconfigure locales. So much trivia required to make it work!
Read my blog!