Devuan GNU+Linux is a free software operating system for your computer. Free software means you are free to use, copy and distribute, study, change the software, and share your modifications with the community.

Ceres without systemd

Devuan Ceres will often bring in packages that depend on the systemd library libsystemd0, this is because it’s parent distro Debian Sid changes very frequently and with this often comes the support for systemd. Thanks to information provided by Mitt Green this issue can be addressed here which we will do by excluding any possibility of installing libsystemd0 using apt-pinning.

First make sure the devuan-baseconf package is installed.

root@devuan:~# apt-get install devuan-baseconf

This package provides apt-pinning rules to help avoid using systemd. We will create an apt preferences based on the one from this package and change the apt-pinning rules to suit our needs - in this case, we will not allow libsystemd0 to be installed.

root@devuan:~# cp /etc/apt/preferences.d/avoid-systemd /etc/apt/preferences.d/no-systemd

Now modify the apt pinning.

root@devuan:~# nano /etc/apt/preferences.d/no-systemd

For a seemless upgrade we will add two different sets of pinning rules here so that the pinning will be compatible no matter which branch is the target for an upgrade.

``` Package: systemd Pin: release o=Debian Pin-Priority: -1

Package: systemd Pin: release * Pin-Priority: -1 ```

For the sake of understanding what we just did you should test your work.

root@devuan:~# apt-get install systemd

The resulting output should include something like this.

systemd : Depends: libsystemd0 (= 215-17+deb8u2) but it is not installable E: Unable to correct problems, you have held broken packages.

This work is released under the Creative Commons Attribution-ShareAlike 4.0 International [CC BY-SA 4.0] license.
All trademarks are the property of their respective owners.
Please note that this work is provided “AS IS” and comes with absolutely NO warranty.