Ubuntu 16.04 LTS has adopted
systemd
as its
default system and service manager, i.e., the
init
manager. Although systemd offers many benefits, such as, aggressively starting services concurrently, you may sometimes want to switch back to
upstart
,
the older system and service manager for Ubuntu because some services that you still have to run depend on it. Below are the steps that you can play with to switch to back
upstart
. However, since Ubuntu 16.04 is now designed with
systemd
as default system and service manager, many other services and applications are not designed to work without
systemd
.
As a result, the following steps, as a few readers have noticed, may render your Ubuntu installation unusable. To run a Linux system without using
systemd
, the best approach is, to select and set up a Linux distribution that does not rely on
systemd
. See the
Without-Systemd Wiki for more information and a list of Linux distributions.
- Install
upstart-sysv
and remove systemd-sysv
.
sudo apt-get install upstart-sysv
-
Update
Ubuntu
to reflect the change that you just made.
sudo update-initramfs -u
-
Now you need to remove a few remaining
systemd
package in the system. This step removes package including libpam-systemd
.
sudo apt-get purge systemd
If you do not perform this step, you will see an error message as follows after you reboot the system and log back in.
[ 26.664057] systemd-logind[4445]: Failed to start user service, ignoring: Unknown unit: user@1000.service
-
Now reboot and log back in. You should see your system with a clean bill of health with
upstartd
back at the helm.
3. should be "sudo apt-get purge systemd"
ReplyDeleteThanks for the correction.
DeleteDANGEROUS! I have broken my LinuxLiteOS 3.2 (based on Ubuntu 16.04 and XFCE). Fortunately, I had made a disk-image with Clonezilla. Phew!
DeleteThat did not work for me! I had to reinstall Ubuntu!
ReplyDeleteThis comment has been removed by the author.
ReplyDelete1. sudo apt-get install upstart-sysv
ReplyDelete2. sudo update-initramfs -u
3. sudo reboot 0
4. sudo apt-get purge systemd
5. Hard reboot
6. Success
DANGEROUS! Desktop environment (Ubuntu 16.04) was gone.
ReplyDeleteLost my desktop environment. I had to reinstall.
ReplyDeleteI get a issue with
ReplyDeletesudo apt-get install upstart-sysv
Errors were encountered while processing:
runit
I found this which solved it.
Deletesudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git
https://askubuntu.com/questions/765565/how-to-fix-processing-with-runit-and-git-daemon-run