6

I'm using ubuntu 20.04 on Vmware virtual machine and it was working fine.

By mistake, I have executed the below command.

sudo apt purge python3.8

After that, I observed weird behavior on Virtual ubuntu So, I restarted the VM. From this point, Vm is not able to switch to GUI mode it always sticks to the TTY terminal. I can create the new VM but I setup the lots of things on that.

Please let me know the solution to my problem as soon as possible.

mchid
  • 43,546
  • 8
  • 97
  • 150

1 Answers1

8

A lot of system components got removed when you removed python. Never mess up with the default version of python in Ubuntu.

First, re-install python.

sudo apt install --reinstall python3

Then, reinstall the necessary packages for GUI.

sudo apt install ubuntu-desktop

Finally, reboot the computer with the command sudo reboot, and you should be greeted with the GUI.

mchid
  • 43,546
  • 8
  • 97
  • 150
Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212