I was recently updating packages on my Ubuntu 18 installation (graphically) when my laptop overheated and stopped. I am now unable to boot properly into the currently installed kernel or any of the old ones. It appears to have stalled after building the nvidia modules.

I have the following kernels available in the boot menu:

4.18.0-14-generic 4.18.0-14-generic (recovery mode) 4.15.0-45-generic 4.15.0-45-generic (recovery mode) 4.15.0-39-generic 4.15.0-39-generic (recovery mode) 4.15.0-32-generic 4.15.0-32-generic (recovery mode)

If I try to boot into 4.18.0-14 or 4.15.0-45 (either normal or recovery mode) I get the following error:

---[ end Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

I am able to boot into 4.15.0-39-generic (recovery mode) and get into emergency mode with the following errors

Boot errors

Below is the end of the term.log file from /var/log/apt/term.log which I believe shows the NVidia modules being built and the installing failing trying to build the kernel module.

Apt Installation log

So now I am wondering about my options. Is there a way to recover the update and install from the command line or should I be looking at reinstall options? Thanks in advance for your help.

  • If you have access to USB devices, I would suggest making a live USB (the install USB) and using this to copy your data to a USB HDD or other USB devices. – Charles Green Feb 7 at 17:09
  • Thanks. I do have a live USB that I can use and I will look at backing things up. Any suggestions for how to proceed after that? – durn2000 Feb 7 at 17:34
  • I've seen question before about failed upgrades - my own opinion is that they are a disaster, and a reinstall is needed. It may be possible to fix the broken upgrade, but it may be a lot of work as well. – Charles Green Feb 7 at 17:37
  • 2
    After some digging I removed the newest kernel version using `sudo apt-get --purge remove linux-image-4.18.0-14-generic' rebooted and was able to boot into my old kernel with no issues. From what I understand I have to wait until 2 days from now to post this as an answer. – durn2000 Feb 7 at 19:01
  • 1
    Please write the "solution" as an answer. – Kulfy Feb 7 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.