adduser: \/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello to everyone.
Actually I'm trying to run X86 applications on my Jetson Nano using qemu and debootstrapping debian 9 on ubuntu 18.04 for arm64,but it seems that an old bug that it seems to be fixed here but it's not :
https:/
This is what I did to achieve my goal :
sudo apt-get update
apt-get install qemu qemu-user qemu-user-static binfmt-support debootstrap binutils
debootstrap --foreign --arch i386 stretch ./chroot-
and this is what happens :
http://
W: Cannot check Release signature; keyring file not available /usr/share/
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1
I: Found additional base dependencies: dmsetup gnupg-agent libapparmor1 libassuan0 libbsd0 libcap2 libcryptsetup4 libdevmapper1.02.1 libdns-export162 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libksba8 liblocale-
I: Checking component main on http://
I: Retrieving libacl1 2.2.52-3+b1
.....
I: Extracting zlib1g...
At this point I've mounted the partitions :
sudo mount -t sysfs /sys/ ./chroot-
sudo mount -t proc /proc/ ./chroot-
sudo mount --bind /dev ./chroot-
sudo mount --bind /dev/pts ./chroot-
sudo mount --bind /dev/shm ./chroot-
and I've copied the qemu static on the chrooted debian i386 folder :
cp /usr/bin/
and I've started the second stage of debootstrap :
root@ziomario-
at some point this is what happens :
libc6 is not installed ; libdebconfclient0 is not installed ; awk is not installed ; libbz2-1.0 is not installed ; libc6 is not installed ; liblzma5 is not installed ;
libselinux1 is not installed ; zlib1g is not installed ; tar is not installed ; libgcc1 is not installed ; dash is not installed ; libtinfo5 is not installed ; libblkid1 is not installed ; libcomerr2 is not installed ; libss2 is not installed ; libuuid1 is not installed ; util-linux is not installed ; libpcre3 is not installed ; libpam0g is not installed ; libpam-modules-bin is not installed.
Adding group \systemd-journal' (GID 101) ...`
Done.
at this point I saw the error that should have been fixed :
chfn: PAM: System error
adduser: \/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.`
dpkg: error processing package systemd (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
systemd
W: Failure trying to run: dpkg --force-overwrite --force-confold --skip-same-version --install /var/cache/
W: See //debootstrap/
u can find the full log here : https:/
what to do ?
I tried to reproduce this but it didn't fail for me, however a quick search seems to indicate this might be a problem not with systemd, but with pam, e.g.: /github. com/proot- me/PRoot/ issues/ 156#issuecommen t-735011266
https:/
As you're using 18.04, which includes pam 1.1.8, the problem may be fixed for you if you try on a 20.04 system, which includes pam 1.3.1.
If that works, then there is likely some patch needed to be backported to pam in bionic.