0

I recently removed python3 from my Ubuntu 18.04 system, and the next time I tried to logon I was greeted with a failed to start session error when entering my credentials. Unfortunately, Ctrl-Alt-F1 does not open a TTY for me. Trying CtrlAlt-F2 etc. also does nothing.

I am OK with re-installing Ubuntu, but unsure if this is necessary at this time.

Andreas
  • 101
  • 3

1 Answers1

0

If friendlier options fail, you can try:

  1. Boot a live USB.
  2. Open a terminal and mount the partition where ubuntu lives:

    sudo mount /dev/sdX /mnt
    
  3. Chroot to your system:

    sudo chroot /mnt
    
  4. Now in the root environment it's possible you have to edit /etc/resolv.conf:

    nano /etc/resolv.conf
    

    add

    nameserver 8.8.8.8
    

    and save the file

  5. Run sudo apt update

  6. Run sudo apt install python3
  7. Close your live system and reboot.