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
  • 2
    Please try Ctrl-Alt-F2 Ctrl-Alt-F3 Ctrl-Alt-F4 Ctrl-Alt-F5 and Ctrl-Alt-F6 then click on [edit] and report your findings. Please do not use Add Comment; instead, please use [edit]. – K7AAY Sep 27 '19 at 23:30
  • Maybe it's possible to install the packages from a live usb, chrooting your hard disk system. – schrodingerscatcuriosity Sep 27 '19 at 23:35
  • Possible duplicate of [How to start Ubuntu in Console mode](https://askubuntu.com/questions/859630/how-to-start-ubuntu-in-console-mode) and [Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work](https://askubuntu.com/q/384033/) – karel Sep 28 '19 at 06:40

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.