debootstrapping vivid under fakechroot fails

Bug #1430891 reported by Martin Pitt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fakechroot (Debian)
Fix Released
Unknown
fakechroot (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

$ 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.

Tags: jammy amd64
Martin Pitt (pitti)
Changed in fakechroot (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-15.03
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

Workaround:

$ cat ~/fakechroot-touch/debootstrap.env
. /etc/fakechroot/debootstrap.env
FAKECHROOT_CMD_SUBST="$FAKECHROOT_CMD_SUBST:/usr/bin/chfn=/bin/true"

fakeroot fakechroot -c ~/fakechroot-touch/ debootstrap --variant=fakechroot vivid /tmp/vividfc http://archive.ubuntu.com/ubuntu/

Changed in fakechroot (Ubuntu):
importance: High → Medium
milestone: ubuntu-15.03 → none
status: New → Triaged
Changed in fakechroot (Debian):
status: Unknown → New
Martin Pitt (pitti)
Changed in fakechroot (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Changed in fakechroot (Debian):
status: New → Confirmed
Changed in fakechroot (Debian):
status: Confirmed → Fix Released
Ken Sharp (kennybobs)
Changed in fakechroot (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Ken Sharp (kennybobs) wrote :

I jumped the gun here. The fix either didn't make its make into Ubuntu, or it was not an adequate fix.

Jammy:

chfn: PAM: Authentication failure
adduser: `/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.
dpkg: error processing package systemd-timesyncd (--configure):
 installed systemd-timesyncd package post-installation script subprocess returned error exit status 1

Can someone please reopen this?

tags: added: amd64 jammy
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.