Artificial intelligent assistant

systemd apt pinned to -1 and installed in upgrade from Debian 8 to Debian 9 While in the process of migrating some servers from my testing network, a few of them installed `systemd`; I was a bit surprised as I am using sysV, and have systemd pinned to `-1`. What happened?

It seems my `systemd` pinning to -1 was not enough. There are a couple more packages belonging to system to APT pin too.

So, I changed my `/etc/apt/preferences.d/01nosystemd` to:


Package: systemd
Pin: origin ""
Pin-Priority: -1

Package: dh-systemd
Pin: origin ""
Pin-Priority: -1

Package: systemd-shim
Pin: origin ""
Pin-Priority: -1

Package: libpam-systemd
Pin: origin ""
Pin-Priority: -1


And also ran the commands:


sudo apt-mark hold systemd dh-systemd systemd-shim libpam-systemd


Additional note: `libsystemd0` is not forgotten, simply it cannot be avoided so easily, due to several dependencies.

Link: linux.org wiki questions - Prevent systemd installation

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 45e0c7bb2aa22d962cb2d15d257eb96f