Jan 9, 2015

Ubnutu updating is borken and Ubuntu cannot start anymore

I was updating Ubuntu to version 14.10 but it hanged when reached to grub2 updating step (it may be because Ubuntu was installed in legacy mode).

 I restarted the computer by force but Ubuntu is not start any more, it just go to grub like bash screen.

I did the following steps to solve the problem:
  1. Boot by Ubuntu live usb in "efi mode".
  2. Install boot-repair tool.
  3. By boot-repair (from advanced options) I reinstalled grub on an efi partition (if not exist, create one by gparted tool).
  4. Reboot the computer to login on installed Ubuntu.
  5. Then from Ubuntu advanced options, I selected one of the versions, then Press "ctrl + Alt + f1"
  6. Console will be opened, make sure that there is Internet connected.
  7. login in it, and type this command:  sudo dpkg --configure -a
  8. It will take some time to repair the instance. (take a coffee break until it finish :) )
  9. Then reboot and enjoy.