Ubuntu – Login loop on Ubuntu 19.10

19.0419.10data-recoverypartial-upgradeupgrade

While upgrading my system from 19.04 to 19.10, there was power failure. Due to partial upgrade,my system after login shows me black screen for a while and then shows white screen with text on it-
"Oh no! Something has gone wrong. A problem has occured and the system can't recover. Please logout and try again."

Error after login image

I tried every possible thing available on Ask Ubuntu and Stack Overflow like upgrade, update, reconfigure lightdm etc. Nothing seems to work for me. Can someone help me with this ASAP?

I don't have backup of my data. So it would be great if you help me get my data back.

Thanks in advance:)

Best Answer

I had the exact same issue and fixed it by following below steps:

Trigger CLI from the error screen using Ctrl+Alt+F3 and Login. Then execute the command for release upgrade:

sudo do-release-upgrade

If there was issue with new release download, this should solve it, else it will print out:

No new release found.

If so, continue by updating the package lists and upgrading it.

apt-get update && apt-get upgrade

If there was a issue here, the system will ask you to execute the command suggested by Schwab Eugen.

sudo dpkg --configure -a

The system will finish unpacking and installing the missing resources. After that just reboot the machine and it should will work.

Related Question