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

Marietto 1913629 at bugs.launchpad.net
Thu Jan 28 17:44:36 UTC 2021


Public bug reported:

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 at 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 ?

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1913629

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

Status in systemd package in Ubuntu:
  New

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 at 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 ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1913629/+subscriptions



More information about the foundations-bugs mailing list