Fork me on GitHub
#nextjournal
<
2022-03-10
>
bnstvn13:03:19

I have a notebook with standard Clojure env, where one of the first cells is apt-get install ssh. I didn’t run this notebook in last two months or so, but now this fails with the error below. Was there any change in the backing container/configuration so I can’t do this anymore? Anything obvious I’m missing? Thanks!

ln: failed to create symbolic link '/etc/resolv.conf': Device or resource busy

bnstvn13:03:50

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:
 systemdE: Sub-process /usr/bin/dpkg returned an error code (1)

mkvlr14:03:06

@U01FQSYHRCY does this ring a bell?

Leah Neukirchen15:03:50

I assume it could be bind-mounted

Leah Neukirchen15:03:49

installing systemd into a docker container is not really recommended, what pulls it in?

😆 1
Leah Neukirchen15:03:12

would apt-get install –no-install-recommends ssh work?

Leah Neukirchen15:03:28

hm, probably openssh-server -> libpam-systemd -> systemd -.-

Leah Neukirchen15:03:00

but that's a recommends, so could work. 🙂

bnstvn17:03:16

Thank you, it works! I did’t even realize I was installing systemd..