8

I just typed

sudo apt-get remove python2.6

I didn't realized that this command will uninstall the whole packages from my computer. Is it possible to uninstall the ubuntu without CD. Or how can I fix this big mistake?

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Mokus
  • 4,442
  • 8
  • 36
  • 54
  • Related: [Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work](https://askubuntu.com/questions/384033/removed-python-3-and-now-ubuntu-software-center-terminal-and-other-applications), [I deleted package 'python3' on Ubuntu and I have lost dashboard, terminal and Unity. Help me to restore my data please](https://askubuntu.com/questions/810854/i-deleted-package-python3-on-ubuntu-and-i-have-lost-dashboard-terminal-and-un) – ggorlen Mar 22 '23 at 00:16

1 Answers1

13

I am not 100% sure if I understood you correctly.

I'm guessing your Ubuntu-Installation is broken because the uninstalling of the python package also removed a lot else.

I would try to (re)install the ubuntu-desktop¹ meta package.

sudo apt-get install --reinstall ubuntu-desktop
imbaer
  • 2,911
  • 1
  • 26
  • 27