# Background and History
Unbelievable!
I try my best to make sure systemD is NOT installed on my system as it royally mucks up absolutely everything eventually.
I check all dependencies to be installed and wrote a cron script to notify me if systemD snake ever wormed its way onto my servers.
SystemD was NOT installed on my system, as I make sure the snake doesnt muck up a perfect system....which it always does/
Well, today I did a simple
Code: Select all
apt update
apt upgrade
My cron script sounded the alarm halfway during the upgrade and there it was systemd installed again even though there was no systemD installed before.
This time systemD really mucked up everything.
Trying to uninstall systemD
it uninstalled the following
Code: Select all
pulseaudio pulseaudio-module-bluetooth pulseaudio-module-jack
python3-pyqt5.qtwebengine qml-module-org-kde-kio
qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons
simplescreenrecorder squeezelite unpaper vlc vlc-plugin-base
vlc-plugin-vlsub vlc-plugin-zvbi x264
The systemD crap just broke things it was not even supposed to be controlling.
So systemD installed itself and absolute wrecked my server.
After systemD was removed and then I tried
Code: Select all
apt update
apt upgrade
Lo and behold the snake systemD installs itself again.
This time when I tried to do an
apt remove systemd I get.
Code: Select all
# apt remove systemd
Reading package lists... Done
Building dependency tree # apt remove systemd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
systemd
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
After this operation, 9,516 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 636371 files and directories currently installed.)
Removing systemd (232-25+deb9u12) ...
systemd is the active init system, please switch to another before removing systemd.
dpkg: error processing package systemd (--remove):
subprocess installed pre-removal script returned error exit status 1
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading state information... Done
The following packages will be REMOVED:
systemd
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
After this operation, 9,516 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 636371 files and directories currently installed.)
Removing systemd (232-25+deb9u12) ...
systemd is the active init system, please switch to another before removing systemd.
dpkg: error processing package systemd (--remove):
subprocess installed pre-removal script returned error exit status 1
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
So, SystemD now refuses to uninstall itself as I have to first install another init.
SysVinit is ALREADY installed.
Question1)
How do I resolve this.
SystemD is the ultimate PITA.
I tried to blacklist it in dpkg but it does not work. as you can see attempts to do so never really works.
https://askubuntu.com/questions/75895/h ... -installed
Question2) Anyone has a way to ultimately block a package .... such as systemDuh