$ fakeroot fakechroot debootstrap --variant=fakechroot vivid /tmp/vivid http://archive.ubuntu.com/ubuntu/
[...]
Setting up systemd (219-4ubuntu5) ...
Created symlink from /<email address hidden> to /lib/systemd/system/getty@.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/remote-fs.target to /lib/systemd/system/remote-fs.target.
Created symlink from /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service to /lib/systemd/system/systemd-timesyncd.service.
Initializing machine ID from random generator.
chfn: PAM: System error
adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.
dpkg: error processing package systemd (--configure):
subprocess installed post-installation script returned error exit status 1
Perhaps we can fix chfn like in https://bugs.debian.org/745082, or perhaps change systemd to use "useradd" only.
Workaround:
$ cat ~/fakechroot- touch/debootstr ap.env /debootstrap. env CMD_SUBST= "$FAKECHROOT_ CMD_SUBST: /usr/bin/ chfn=/bin/ true"
. /etc/fakechroot
FAKECHROOT_
fakeroot fakechroot -c ~/fakechroot-touch/ debootstrap --variant= fakechroot vivid /tmp/vividfc http:// archive. ubuntu. com/ubuntu/