adduser: \/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.`

Bug #1913629 reported by Marietto
6
This bug affects 1 person
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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745082

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-stretch-i386/

and this is what happens :

http://ftp.us.debian.org/debian
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
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-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libxtables12 pinentry-curses xxd
I: Checking component main on http://ftp.us.debian.org/debian...
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-stretch-i386/sys/
sudo mount -t proc /proc/ ./chroot-stretch-i386/proc/
sudo mount --bind /dev ./chroot-stretch-i386/dev/
sudo mount --bind /dev/pts ./chroot-stretch-i386/dev/pts/
sudo mount --bind /dev/shm ./chroot-stretch-i386/dev/shm/

and I've copied the qemu static on the chrooted debian i386 folder :

cp /usr/bin/qemu-i386-static ./chroot-stretch-i386/usr/bin

and I've started the second stage of debootstrap :

root@ziomario-desktop:~/Scrivania/qemu-x86# sudo chroot ./chroot-stretch-i386/ /debootstrap/debootstrap --second-stage

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/apt/archives/adduser_3.115_all.deb /var/cache/apt/archives/libapparmor1_2.11.0-3+deb9u2_i386.deb /var/cache/apt/archives/libcryptsetup4_2%3a1.7.3-4_i386.deb /var/cache/apt/archives/libip4tc0_1.6.0+snapshot20161117-6_i386.deb /var/cache/apt/archives/libkmod2_23-2_i386.deb /var/cache/apt/archives/libcap2_1%3a2.25-1_i386.deb /var/cache/apt/archives/libidn11_1.33-1+deb9u1_i386.deb /var/cache/apt/archives/libseccomp2_2.3.1-2.1+deb9u1_i386.deb /var/cache/apt/archives/dmsetup_2%3a1.02.137-2_i386.deb /var/cache/apt/archives/libdevmapper1.02.1_2%3a1.02.137-2_i386.deb /var/cache/apt/archives/libncurses5_6.0+20161126-1+deb9u2_i386.deb /var/cache/apt/archives/libprocps6_2%3a3.3.12-3+deb9u1_i386.deb /var/cache/apt/archives/procps_2%3a3.3.12-3+deb9u1_i386.deb /var/cache/apt/archives/systemd_232-25+deb9u12_i386.deb

W: See //debootstrap/debootstrap.log for details (possibly the package systemd is at fault)

u can find the full log here : https://pastebin.com/XwkQp91Y

what to do ?

Revision history for this message
Dan Streetman (ddstreet) wrote :

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.:
https://github.com/proot-me/PRoot/issues/156#issuecomment-735011266

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.

affects: systemd (Ubuntu) → pam (Ubuntu)
Revision history for this message
Marietto (marietto2008) wrote :
Download full text (11.5 KiB)

Hello. I have installed these packages on the arm64 / jetson nano / ubuntu 18.04 because the older ones were bugged :

dpkg -i /root/Scaricati/arm64/libpam0g_1.3.1-5ubuntu4.1_arm64.deb
dpkg -i /root/Scaricati/arm64/libpam-modules-bin_1.3.1-5ubuntu4_arm64.deb
dpkg -i /root/Scaricati/arm64/libpam-modules_1.3.1-5ubuntu4_arm64.deb

and then I have tried to make a new chroot with ubuntu groovy i386 and this is what happened :

root@ziomario-desktop:~/Scrivania/Work/qemu-chroot-nano# sudo chroot ./chroot-groovy-i386/ /debootstrap/debootstrap --second-stage
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking bsdutils...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking debconf...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fsprogs...
I: Unpacking findutils...
I: Unpacking gcc-10-base:i386...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init-system-helpers...
I: Unpacking libacl1:i386...
I: Unpacking libattr1:i386...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:i386...
I: Unpacking libblkid1:i386...
I: Unpacking libbz2-1.0:i386...
I: Unpacking libc-bin...
I: Unpacking libc6:i386...
I: Unpacking libcap-ng0:i386...
I: Unpacking libcom-err2:i386...
I: Unpacking libcrypt1:i386...
I: Unpacking libdb5.3:i386...
I: Unpacking libdebconfclient0:i386...
I: Unpacking libext2fs2:i386...
I: Unpacking libgcc-s1:i386...
I: Unpacking libgcrypt20:i386...
I: Unpacking libgmp10:i386...
I: Unpacking libgpg-error0:i386...
I: Unpacking libgssapi-krb5-2:i386...
I: Unpacking libk5crypto3:i386...
I: Unpacking libkeyutils1:i386...
I: Unpacking libkrb5-3:i386...
I: Unpacking libkrb5support0:i386...
I: Unpacking liblz4-1:i386...
I: Unpacking liblzma5:i386...
I: Unpacking libmount1:i386...
I: Unpacking libncurses6:i386...
I: Unpacking libncursesw6:i386...
I: Unpacking libnsl2:i386...
I: Unpacking libnss-nis:i386...
I: Unpacking libnss-nisplus:i386...
I: Unpacking libpam-modules:i386...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:i386...
I: Unpacking libpcre2-8-0:i386...
I: Unpacking libpcre3:i386...
I: Unpacking libprocps8:i386...
I: Unpacking libselinux1:i386...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:i386...
I: Unpacking libsepol1:i386...
I: Unpacking libsmartcols1:i386...
I: Unpacking libss2:i386...
I: Unpacking libssl1.1:i386...
I: Unpacking libsystemd0:i386...
I: Unpacking libtinfo6:i386...
I: Unpacking libtirpc-common...
I: Unpacking libtirpc3:i386...
I: Unpacking libudev1:i386...
I: Unpacking libuuid1:i386...
I: Unpacking libzstd1:i386...
I: Unpacking login...
I: Unpacking logsave...
I: Unpacking lsb-base...
I: Unpacking mawk...
I: Unpacking mount...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking passwd...
I: Unpacking perl-base...
I: Unpacking procps...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking sysvinit-utils...
I: Unpacking tar....

Revision history for this message
Marietto (marietto2008) wrote :

you can read the full log here : https://pastebin.com/722TuaBs

Revision history for this message
Marietto (marietto2008) wrote :
Download full text (10.6 KiB)

also focal does not work. debootstrap (for arm64) seem to be fully bugged.

root@ziomario-desktop:~/Scrivania/Work/qemu-chroot-nano# sudo chroot ./chroot-focal-i386/ /debootstrap/debootstrap --second-stage
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking bsdutils...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking debconf...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fsprogs...
I: Unpacking fdisk...
I: Unpacking findutils...
I: Unpacking gcc-10-base:i386...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init-system-helpers...
I: Unpacking libacl1:i386...
I: Unpacking libattr1:i386...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:i386...
I: Unpacking libblkid1:i386...
I: Unpacking libbz2-1.0:i386...
I: Unpacking libc-bin...
I: Unpacking libc6:i386...
I: Unpacking libcap-ng0:i386...
I: Unpacking libcom-err2:i386...
I: Unpacking libcrypt1:i386...
I: Unpacking libdb5.3:i386...
I: Unpacking libdebconfclient0:i386...
I: Unpacking libext2fs2:i386...
I: Unpacking libfdisk1:i386...
I: Unpacking libgcc-s1:i386...
I: Unpacking libgcrypt20:i386...
I: Unpacking libgpg-error0:i386...
I: Unpacking liblz4-1:i386...
I: Unpacking liblzma5:i386...
I: Unpacking libmount1:i386...
I: Unpacking libncurses6:i386...
I: Unpacking libncursesw6:i386...
I: Unpacking libpam-modules:i386...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:i386...
I: Unpacking libpcre2-8-0:i386...
I: Unpacking libpcre3:i386...
I: Unpacking libprocps8:i386...
I: Unpacking libselinux1:i386...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:i386...
I: Unpacking libsepol1:i386...
I: Unpacking libsmartcols1:i386...
I: Unpacking libss2:i386...
I: Unpacking libsystemd0:i386...
I: Unpacking libtinfo6:i386...
I: Unpacking libudev1:i386...
I: Unpacking libuuid1:i386...
I: Unpacking libzstd1:i386...
I: Unpacking login...
I: Unpacking logsave...
I: Unpacking lsb-base...
I: Unpacking mawk...
I: Unpacking mount...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking passwd...
I: Unpacking perl-base...
I: Unpacking procps...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking util-linux...
I: Unpacking zlib1g:i386...
I: Configuring required packages...
I: Configuring lsb-base...
I: Configuring libaudit-common...
I: Configuring libsemanage-common...
I: Configuring gcc-10-base:i386...
I: Configuring ncurses-base...
I: Configuring sensible-utils...
I: Configuring libcrypt1:i386...
I: Configuring libgcc-s1:i386...
I: Configuring libc6:i386...
I: Configuring libudev1:i386...
I: Configuring libsepol1:i386...
I: Configuring libattr1:i386...
I: Configuring debianutils...
I: Configuring mawk...
I: Configuring libdebconfclient0:i386...
I: Configuring base-files...
I: Configuring libbz2-1.0:i386...
I: Configuring base-passwd...
I: Configuring libdb5.3...

Revision history for this message
Steve Langasek (vorlon) wrote :

If the target you're bootstrapping is Debian, and the failure is inside the chroot, this wouldn't be a bug in the Ubuntu pam package. It might be a bug in the Ubuntu version of fakechroot, which is where the Debian bug you linked you was assigned.

Revision history for this message
Marietto (marietto2008) wrote :

the first thing that I did has been installing these new packages :

fakechroot_2.19-3_all.deb and libfakechroot_2.19-3_arm64.deb

on ubuntu 18.04 but they didn't fix the problem. Having installed the packages that u have suggested have fixed the PAM problem,but now there is another bug,as u can see.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.