Closed mfeit-internet2 closed 2 years ago
U20 is fine.
Get the same problem trying to install systemd on plain U18:
# docker run -it ubuntu:18.04 /bin/bash
root@cdd1f79ea490:/# apt update
...
root@cdd1f79ea490:/# apt upgrade
...
root@cdd1f79ea490:/# apt install systemd
...
Selecting previously unselected package systemd.
(Reading database ... 4847 files and directories currently installed.)
Preparing to unpack .../systemd_237-3ubuntu10.53_amd64.deb ...
Unpacking systemd (237-3ubuntu10.53) ...
Setting up libapparmor1:amd64 (2.12-4ubuntu5.1) ...
Setting up libkmod2:amd64 (24-1ubuntu3.5) ...
Setting up systemd (237-3ubuntu10.53) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service.
ln: failed to create symbolic link '/etc/resolv.conf': Device or resource busy
Created symlink /etc/systemd/system/multi-user.target.wants/ondemand.service → /lib/systemd/system/ondemand.service.
Initializing machine ID from random generator.
chfn: PAM: System error
adduser: `/usr/bin/chfn -f systemd Network Management systemd-network' returned error code 1. Exiting.
dpkg: error processing package systemd (--configure):
installed systemd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cdd1f79ea490:/# /usr/bin/chfn -f 'systemd Network Management' systemd-network
chfn: PAM: System error
Solved. See https://stackoverflow.com/questions/25193161/chfn-pam-system-error-intermittently-in-docker-hub-builds.
ddb build u18u
andddb build u20u
fail while settint up systemd: