1

I wanted to upgrade my system from 14 to 15, so along these instructions, I changed the line to Prompt=normal and ran the upgrade command. A couple of hours later, I decided to reboot and check out the new ubuntu. However, it froze on shutdown, and I had to do a hardware shutdown. And when I tried to reboot, I got the /sbin/init missing error. I tried many of the other solutions, but none worked.

And when I booted with a GParted live CD, and mounted my old file system, I saw that all my files were intact.

However, my /sbin/init and /sbin/shutdown were actually missing.

What should I do to get my system back and running? I can get a live/installation CD if need be, but don't have one on hand.

Maltysen
  • 111
  • 4
  • 1
    Do you have `/lib/systemd/systemd` and `/sbin/systemctl`? – muru Dec 30 '15 at 01:27
  • @muru I have a bunch that are `/lib/systemd/systemd-` but nothing that's just `/lib/systemd/systemd` – Maltysen Dec 30 '15 at 01:39
  • @muru I have no `/sbin/systemctl`, but I have `/sbin/sysctl` – Maltysen Dec 30 '15 at 01:40
  • If you can setup a chroot on your old filesystem, do that, and run `dpkg --configure -a` and `apt-get install -f`. That might continue the interrupted upgrade. If not, run `apt-get install ubuntu-desktop`. – muru Dec 30 '15 at 01:42
  • @muru what's a chroot and how do I set one up? – Maltysen Dec 30 '15 at 01:49
  • A chroot is when you use another directory as `/`, in effect you see the filesystem as if you'd booted into it. See http://askubuntu.com/a/28100/158442 for an example where the a chroot is used to install kernels - quite similar to your case. – muru Dec 30 '15 at 01:51
  • @muru do I need the actual live CD for that, or can I use the GParted CD to run those commands? – Maltysen Dec 30 '15 at 01:53
  • A GParted live CD should do fine. I'd expect it to have everything needed. – muru Dec 30 '15 at 01:54
  • @muru what about internet? I didn't bother setting it up. – Maltysen Dec 30 '15 at 01:55
  • Ah, that depends on how you connect to the internet. If you need some proprietary wifi driver, you might have difficulties on the GParted CD. – muru Dec 30 '15 at 01:56
  • @muru so I need internet for finishing the install? IIRC, the download step had completed. – Maltysen Dec 30 '15 at 01:57
  • You may need it. If `dpkg --configure -a` and `apt-get install -f` do the job, you might not, but if you have to do `apt-get install ubuntu-desktop`, you will need it. – muru Dec 30 '15 at 01:58
  • @muru I have a 64 bit system and GParted only comes in 32 bit, and I'm getting errors, I'll try with some other live CD. – Maltysen Dec 30 '15 at 02:02
  • @muru thanks so much!!! I'm able to boot up into a text-only ubunu 15 now! I guess I'll install KDE now. – Maltysen Dec 30 '15 at 03:38

0 Answers0