Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?

share|improve this question

3 Answers 3

For complete replacement of upstart, Utopic (14.10) and newer:

Just install the systemd-sysv package.

Raring (13.04) and newer:

First of all, you should install systemd. This is easily achievable using:

sudo apt-get install systemd-services

Now that that's done, you need to test if systemd works alright with Ubuntu before removing upstart and leaving your system unbootable. This is also easily achievable. When booting using grub just edit the line starting with linux and add init=/lib/systemd/systemd like this:

linux   /vmlinuz-3.12-1-amd64 root=UUID=cead26d6-08f4-4894-ac78-a9a4ce59f773 ro initrd=/install/initrd.gz quiet init=/lib/systemd/systemd

This will let you taste systemd and hopefully everything will be fine. Now the difficult part. You need to remove upstart. To do so it depends of what packages you have installed, etc. I wouldn't recommend it yet. You could keep upstart around and made permanent booting with systemd editing the /etc/default/grub file and look for GRUB_CMDLINE_LINUX_DEFAULT and append init=/lib/systemd/systemd like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/lib/systemd/systemd"
share|improve this answer
    
Ubuntu 12.04 LTS: Unable to locate package systemd-services . I think you should add at least for which version this works, and/or which repository to add and how. –  Anthon Mar 12 at 5:04
    
@Anthon this only works with raring and newer. –  Braiam Mar 12 at 5:05
    
Or just raring? On 13.10 systemd-services doesn't include /lib/systemd/systemd, and there isn't another package that does. –  sourcejedi Apr 9 at 9:55
    
@sourcejedi you are right, I'm baffled, I've searched all the repository and /lib/systemd/systemd isn't provided by any package before utopic... I'm not sure what's going on since I have /lib/systemd/systemd in my updated-from-raring trusty system. –  Braiam Sep 3 at 1:12

add these ppas

sudo add-apt-repository ppa:ondrej/systemd
sudo apt-get update

systemd requires the directory /sys/fs/cgroup as a mountpoint. It doesn't exist in the current Ubuntu kernel (2.6.35). It can't be created with mkdir either because sysfs doesn't allow that. To create the directory this patch from the 2.6.36 kernel must be backported. A suitably patched kernel can be pulled via apt-get

sudo apt-get install linux-image-2.6.35-23-generic=2.6.35-23.41ppa1 linux-headers-2.6.35-23-generic=2.6.35-23.41ppa1 linux-headers-2.6.35-23=2.6.35-23.41ppa1

then install systemd

 sudo apt-get install systemd libpam-systemd systemd-gui systemd-extra-units

for more information go to this link

share|improve this answer
    
Which version of currently supported Ubuntu runs kernel 2.6.35? –  user68186 Feb 14 at 18:00
    
The PPA, nor the installing of 'dependencies' works :/ –  blade19899 Feb 14 at 18:20
2  
I wouldn't install kernel 2.6 nor older in any of my systems –  Braiam Feb 14 at 18:35
    
That wiki information is really out of date, I read it as well when trying to find the answer to this question and was not impressed –  michel-slm Mar 13 at 1:47

One can install via ondrej/systemd ppa

WARNING! THIS IS A DEMO ONLY! Only use this if you know what you are doing, and preferably only in virtual or real machines which you can easily reinstall.

add ppa, update resources list, and install systemd

sudo add-apt-repository ppa:ondrej/systemd
sudo apt-get update
sudo apt-get install systemd libpam-systemd systemd-gui systemd-extra-units

Current error when using PPA:

dpkg: error processing /var/cache/apt/archives/systemd_204-7+sury.org~saucy+1_amd64.deb (--unpack): trying to overwrite '/lib/udev/rules.d/71-seat.rules', which is also in package systemd-services 204-0ubuntu19.1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/systemd_204-7+sury.org~saucy+1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

To make Ubuntu start in systemd by default, edit /etc/default/grub and add:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash init=/lib/systemd/systemd"

Reload grub with the following

update-grub

Result is a kernel panic

From source

WORK IN PROGRESS

Reference

  1. systemd - Ubuntu Wiki#Installing_systemd
share|improve this answer
    
any updates???? –  Braiam Mar 12 at 5:05
    
@Braiam, updated my A, according to the Ubuntu systemd wiki –  blade19899 Apr 7 at 15:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.