Unable to login into kali after an upgrade

I tried installing Kali Linux using ISO in Virtualbox. After installing the Kali linux correctly, I used the command ‘sudo apt-get upgrade -y’ to upgrade it. Since during the upgrade, my kali linux used to go for sleep mode, so I decided to turn off the sleep timer after completing the upgrade. When it finished, and I tried to open the settings, I was unable to open it. And after rebooting my Kali, I am unable to login it, and is showing this error. Is there any way to fix this such that I can able to access the kali linux as normal?

you need to update the repo before upgrading

sudo apt update && sudo apt full-upgrade -y

as your in a VM just delete the machine and reinstall from scratch

1 Like

Thank you fro your words brother… It worked.