0

I accidentally removed python3 from Ubuntu 19.04, and after restarting the PC, it only displays a terminal with a disabled network, so I can't do sudo apt-get update or install anything.

How can I enable the network and then install python3 and recover the Ubuntu?

  • Download the packages with another computer from ubuntu.pkgs.org and install them via apt deb path/to/file –  Jun 11 '19 at 11:18
  • Enabling the network from shell seems a separate question (use the Search box - it's been answered several times already) from reinstalling Python3 (which has also already been asked and answered several times). For most users, it may be easier and faster to simply backup your data and reinstall - Python3 is a critical component of apt, and apt won't work without Py3. dpkg will work, but that means restoring each dependency in the proper order which may be tedious. We can give you better advice if you list the packages that were removed - it's in your /var/log/apt/history.log – user535733 Jun 11 '19 at 13:05
  • 2

0 Answers0