0

I accidentally removed python2.7 so most of things disappeared like all bars and I couldn't use terminal.

After searching to try to solve it like install ubuntu-desktop then after restarting the machine, I still only see the Ubuntu logo and can't reach the login screen

I'm not able to access the wireless network.

Zanna
  • 70,465
sam
  • 1,333

1 Answers1

1
  1. Open a text-only virtual console by pressing the keyboard shortcut Ctrl + Alt + F3.

  2. At the login: prompt type your username and press Enter.

  3. At the Password: prompt type your user password and press Enter.

  4. Reinstall Python by running the following command:

    sudo apt install python-all python3-all
    
  5. Switch out of the virtual console and return to your desktop environment by pressing the keyboard shortcut Ctrl+Alt+F7.


After you have installed Python, you need to get back your default Unity desktop. In order to avoid messing something up, do it in the following order:

  1. First install the terminal from the console using the command: sudo apt install gnome-terminal. If you can't install gnome-terminal at all, skip this step and go to step 2.

  2. Return to your desktop and open the terminal using the keyboard shortcut Ctrl + Alt + T. From the terminal install the Ubuntu Software Center using the command:

    sudo apt install software-center
    

    If you still can't open the terminal, run the same command from the console instead. If you can't install the default software application at all, skip this step and go to step 3.

  3. Open the terminal and try to open the Ubuntu Software Center from the terminal by running the software-center command. From the Ubuntu Software Center install the Ubuntu desktop system or else open the terminal (or the console) and install the Ubuntu desktop system by running this command:

    sudo apt install ubuntu-desktop  
    
karel
  • 114,770