Unable to boot after installing systemd-services and changing the init parameter on boot

5,080

Well, I´m not sure what Canonical did. When I installed systemd on my Raring installation (as seen in comments), the binary was there. Now it isn´t anywhere, and the changelog before Utopic version 208-8ubuntu1 is useless (utopic does have the binary there), since they just imported the package from Debian, which is a blessing to Utopic users, since the method described in the answer works for them.

Trusty changelogs doesn´t either explain what could happened either. I checked the BZR repository looking for clues directly about what happened with the package. There´s a systemd.install file in the debian\ directory, yet the package itself doesn´t exist in repositories; the systemv-init package which replace /sbin/init with a link to systemd binary indeed points to /lib/systemd/systemd, which only adds to my confusion. The control file has an entry for the systemd package too. The systemd.link file also links to /lib/systemd/systemd from the /bin directory.

All evidence points that systemd package is necesary to get systemd binary, yet the package itself is not provided anywhere for trusty. This has lead me to think that Canonical decided to not provide systemd binary for releases before trusty in their repositories, which is hinted by the fact that if you build the systemd debian source package that Ubuntu provides you will get the systemd package and all necesary binaries to boot using systemd as init.

So, to solve the problem you are facing, because the binary simply isn´t there, you just need to remove the init of your kernel parameters and revert the changes you have done to your /etc/default/grub file and run sudo update-grub, in summary everything you have done in order to replace upstart with systemd. Afterwards, is your call: upgrade to utopic, leave it as it is, or build systemd package from debian sources.

For now, I would only recommend Utopic and later users to install systemd, as before that, there´s no sure fire way to install systemd and replace the init with the packages provided by Canonical/Ubuntu repositories.

Share:
5,080

Related videos on Youtube

Edward Torvalds
Author by

Edward Torvalds

If you need help of any kind you can always ping me on my Mastodon profile. But before you ask for my help, I had appreciate if you post it as question on proper network of stackexchange, I will be happy to help you. Cheers!

Updated on September 18, 2022

Comments

  • Edward Torvalds
    Edward Torvalds over 1 year

    I tried two different methods but could not install systemd

    1st method from here, 2nd method from here

    Confirmation that systemd is not installed:

    edward@computer:~$ file /lib/systemd/systemd
    /lib/systemd/systemd: ERROR: cannot open `/lib/systemd/systemd' (No such file or directory)
    

    Another confirmation:

    I'm following the methods proposed in https://askubuntu.com/a/420979/294611 (against this question was closed as duplicated to), yet for some reason my system doesn't boot.

    • Panther
      Panther over 9 years
      As far as I know, systemd is not yet supported on Ubuntu. If you want to try it, boot Fedora or Arch linux.
    • Panther
      Panther over 9 years
      And from - wiki.ubuntu.com/systemd#Warning.21_Experimental_code - "Warning! Experimental code systemd is under active development in Ubuntu although the rough plan would be to default to systemd during development of 15.04. If you want to help it's best to be running 15.04. (14.10 might be doable as well..)"
    • Edward Torvalds
      Edward Torvalds over 9 years
      @bodhi.zazen there is method given in the first link I gave right ? then why cant we try it ?
    • Panther
      Panther over 9 years
      You are welcome to try it, but see the FAQ here regarding code in development see - askubuntu.com/help/on-topic "Questions that you should avoid: ... <clip> ... Issues with the next version of Ubuntu (Ubuntu+1) (More information about Alpha and Beta release issues)." systemd is experimental code at this time, ready for 15.04, which is ubuntu +1
    • Edward Torvalds
      Edward Torvalds over 9 years
      @bodhi.zazen if trying systemd is off-topic then why there is a method to try it out in this answer ?
    • Panther
      Panther over 9 years
      Even better, boot Fedora, systemd works fine in Fedora. Also the fedora and arch documentation are far better then the Debian or Ubuntu documentation at this time. If you insist on trying it on Ubuntu your experience will be less then optimal.
    • Panther
      Panther over 9 years
      Ask on meta for an opinion on what is on and off topic. I already gave you a link to the FAQ as a reference
    • Edward Torvalds
      Edward Torvalds over 9 years
      @bodhi.zazen thanks sir for your comments, but I am not looking for optimal-experience. please help according question
    • Edward Torvalds
      Edward Torvalds over 9 years
      @bodhi.zazen I am not asking about off-topic stuff. I am stating that how to install systemd already is given in that answer, its not working for me. please read the question
    • Panther
      Panther over 9 years
      well, you installed it, and it broke. So now you are asking how to fix it, ie for support. I asked for clarification on this topic on meta - meta.askubuntu.com/questions/12349/systemd-on-or-off-topic feel free to weigh in on that discussion.
    • ntninja
      ntninja over 9 years
      Are you using 14.10? Have you installed both the systemd-sysv and systemd packages?
    • Edward Torvalds
      Edward Torvalds over 9 years
      @alexander255 I mentioned in question I have ubuntu 14.04 but someone edited it
    • Edward Torvalds
      Edward Torvalds over 9 years
      @alexander255 I am not sure, please look at both the links, I tried installing systemd by two methods
    • Edward Torvalds
      Edward Torvalds over 9 years
      @Braiam my problem is installing systemd ! i cannot find systemd after installing it ! which means I could not install it !
    • Braiam
      Braiam over 9 years
      No, the problem comes after you followed the procedure to install the package. If you followed the instructions installing systemd-services you in theory have systemd for all proposes. The problem you are facing is because you are trying to use systemd as init.
    • Braiam
      Braiam over 9 years
      This is why I wanted you to change the title... now is closed as duplicated of the question you are following.