PDA

View Full Version : Kali linux crashes in VB after apt-get upgrade



Pratik
2018-08-11, 13:51
I have installed Kali linux 64 bit in my Oracle VB.
I have allocated 1 Gb of RAM, 35 Gb of Hard disk to it.
After apt-get upgrade, I was logged out and could not log in again.
I powered off my VB and restarted it. Now whenever I log into my Kali, I can only see a blue screen.
If I try to open a terminal, I am getting routed back to login page.

grid
2018-08-13, 14:26
It's been awhiile since I used Kali in a virtual machine, but I always allocated 100 GB of disk to it. If you have room, try giving the VM more disk and see if that helps

Pratik
2018-08-13, 14:57
@grid,
Thanks for the suggestion, I am not sure on hard disk size issue, I did some analysis and followed some steps to solve the issue, It did work for me.
Analysis:
My upgrade was getting stuck at setting up some of the packages, It stuck on some package for like 2-3 hrs. during that time, My VM got locked.
When I was trying to get into the system, it was not allowing me. I suspect this was happening because of setup process was eating up a lot of resources and no interrupt was able to break it up. I had left no choice but to force shut down my system. This led me to the corruption of packages.
Solution:
When I entered on login page, I followed following steps:
1. Press Alt+Ctr+F3
2. you will see terminal, login to it using credentials.
3. hit this command: dpkg --configure -a.
4. Once completed, reboot.
5. Done, system is upgraded successfully and all the packages are reconfigured.

grid
2018-08-15, 14:58
Glad it's working for you

Mister_X
2018-08-19, 21:30
1Gb of RAM is definitely not enough and is a likely explanation of that issue. Bump it to at least 2Gb

bigbiz
2018-08-21, 00:46
1Gb of RAM is definitely not enough and is a likely explanation of that issue. Bump it to at least 2Gb

Agree 3Gb is ideal.