Linux – Kali Linux 2.0 broken, doesn’t boot

bootkali-linuxlinux

I have a Macbook Pro with a partition of Kali Linux Sana 2.0 on the macintosh hard drive. I haven't used it for a while but today I decided to boot into it.

It booted as usual, I logged in etc. and then I opened terminal and ran apt-get update. After that was done I ran apt-get upgrade.

This is where I messed up, everything downloaded and it was dpkg'ing a bunch of things it had downloaded, but then it got stuck for about 5 minutes and I got really annoyed so I clicked ctrl+c, to cancel the upgrade, but nothing happened, so then I decided to restart the machine. But when it has booted up it brought me to a grey screen with a login tab in the center.

I logged in as usual but then the screen turned black, and after about a minute a white screen with the words "oh no something has gone wrong a problem has occurred and the system can't recover" and there was nothing else on the screen except a Logout button which just restarts Kali and the process repeats.

I have looked for a solution and the only thing I have found is to click ctrl+alt+F1(orF2) and to continue some terminal commands, but nothing came up as in the tutorials. Now I don't know what to do.

I don't even care if I will have to completely reinstall Kali Linux, but I need a solution because now I have a 40GB partition on my mac which is just broken Kali Linux.

Best Answer

Here's how I was able to fix this issue on my machine with Kali running in a VM:

  1. Turn on the machine
  2. When GRUB loads select Advanced options for Kali GNU/Linux
  3. Select Kali GNU/Linux, with ...(recovery mode)
  4. When prompted, enter your root password
  5. Issue the following command dpkg --configure -a
  6. Wait for dpkg to reconfigure and sort itself out
  7. You should now be able to boot back into a working version of Kali
Related Question