[Bug 2035144] Re: fake root fakechroot debootstrap jammy /home/builder/rootfs fails

Ken Sharp 2035144 at bugs.launchpad.net
Sun Feb 4 17:44:50 UTC 2024


*** This bug is a duplicate of bug 1463840 ***
    https://bugs.launchpad.net/bugs/1463840

** This bug is no longer a duplicate of bug 571091
   fakeroot missing lib32 files
** This bug has been marked a duplicate of bug 1463840
   debootstrap --variant=fakechroot --arch=i386 impossible on amd64

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

Title:
  fake root fakechroot debootstrap jammy /home/builder/rootfs fails

Status in fakeroot package in Ubuntu:
  New

Bug description:
  'fakeroot fakechroot debootstrap focal /home/builder/rootfs'
  fails.  However 'debootstrap focal /home/builder/rootfs' passes.

  dpkg: error processing package systemd (--install):
   installed systemd package post-installation script subprocess returned error exit status 127
  Setting up systemd-timesyncd (245.4-4ubuntu3) ...
  ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
  chage: user 'systemd-timesync' does not exist in /etc/passwd
  Stopped: `/bin/chage -M 99999 systemd-timesync' returned error code 1. Exiting.

  Removing user `systemd-timesync' ...
  Removing group `systemd-timesync' ...
  groupdel: group 'systemd-timesync' does not exist
  adduser: `groupdel systemd-timesync' returned error code 6. Exiting.
  dpkg: error processing package systemd-timesyncd (--install):
   installed systemd-timesyncd package post-installation script subprocess returned error exit status 1
  Processing triggers for libc-bin (2.31-0ubuntu9) ...
  Errors were encountered while processing:
   systemd
   systemd-timesyncd


  
  Test case:

  $ cat Dockerfile
  ARG RELEASE
  FROM --platform=linux/amd64 ubuntu:${RELEASE}
  RUN apt-get update && \
      DEBIAN_FRONTEND=noninteractive apt-get install -y \
        adduser \
        debhelper \
        debootstrap \
        fakechroot \
        fakeroot \
        libsemanage-common \
        sudo
  RUN useradd --create-home --uid 1000 builder
  COPY rootfs /rootfs

  $ cat rootfs
  #!/bin/bash -ex
  mkdir /home/builder/rootfs
  export DEBIAN_FRONTEND=noninteractive
  ${FAKEROOT} debootstrap focal /home/builder/rootfs || \
  	(cat /home/builder/rootfs/debootstrap/debootstrap.log && false)
  #${FAKEROOT} chroot /home/builder/rootfs apt-get update
  #${FAKEROOT} chroot /home/builder/rootfs apt-get install -y \
  #  grub-efi-amd64-bin

  echo SUCCESS

  $ cat Makefile
  all: root_focal user_focal root_jammy user_jammy

  .PHONY: docker
  docker:
  	docker buildx build --build-arg RELEASE=${RELEASE} --platform=linux/amd64 -t ${RELEASE} .

  .PHONY: docker_focal
  docker_focal:
  	${MAKE} RELEASE=focal docker

  .PHONY: docker_jammy
  docker_jammy:
  	${MAKE} RELEASE=jammy docker

  .PHONY: build
  build:
  	docker run --platform=linux/amd64 -u 0:0 \
  		-e FAKEROOT="${FAKEROOT}" \
  		${RELEASE} \
  		/rootfs

  .PHONY: root_focal
  root_focal: docker_focal
  	${MAKE} RELEASE=focal FAKEROOT="" build

  .PHONY: root_jammy
  root_jammy: docker_jammy
  	${MAKE} RELEASE=jammy FAKEROOT="" build

  .PHONY: user_focal
  user_focal: docker_focal
  	${MAKE} RELEASE=focal FAKEROOT="fakeroot fakechroot" build

  .PHONY: user_jammy
  user_jammy: docker_jammy
  	${MAKE} RELEASE=jammy FAKEROOT="fakeroot fakechroot" build

  Execution
  =========

  $ make root_jammy && make user_jammy # FAILS
  $ make root_focal && make user_focal # FAILS

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




More information about the foundations-bugs mailing list