To reproduce:
On a plain debian buster:
Kernel: Linux 4.19.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Run the command:
fakeroot fakechroot debootstrap --verbose --variant=fakechroot
buster ${WORKSPACE}/buster
Ends up with a lot of warnings
dpkg: warning: ignoring pre-dependency problem!
And fails finally with a lot of errors with this pattern:
------------------------------------------
Adding 'diversion of /bin/sh to /bin/sh.distrib by dash'
mv: cannot move '/bin/sh.tmp' to '/bin/sh': No such file or directory
dpkg: error processing package dash (--configure):
installed dash package post-installation script subprocess returned
error exit status 1
Setting up init-system-helpers (1.56+nmu1) ...
Setting up binutils (2.31.1-11) ...
Setting up libpam0g:amd64 (1.1.8-4) ...
dpkg (subprocess): unable to execute installed libpam0g:amd64 package
post-installation script (/var/lib/dpkg/info/libpam0g:amd64.postinst):
No such file or directory
dpkg: error processing package libpam0g:amd64 (--configure):
installed libpam0g:amd64 package post-installation script subprocess
returned error exit status 2
dpkg: adduser: dependency problems, but configuring anyway as you requested:
adduser depends on passwd.
-------------------------------------'
Seems to be something with the faked-root since the postinstall files
are visible in the file-system.
Any ideas ?
/Regards
/P