0

I did

sudo apt-get remove python

and it told me that about 150 MB would be freed by this operation. Then, after that I did

sudo apt-get install python

and it told me that 687 kB of additional disk space would be used. How does this add up?

Side question: Did I break anything by doing the above? If yes, how do I fix it? Edit: Answered here

1 Answers1

4

The command

sudo apt-get remove python

removed the package python and any package that depends on it. That's a lot of packages, and it most likely broke parts of your system.

The command

sudo apt-get install python

just installs the package python but not all the other packages that got removed.

You can see the list of all removed packages in the file /var/log/apt/history.log.

With the command

sudo apt-get install --reinstall ubuntu-desktop

you can install all packages belonging to the default installation. Replace ubuntu-desktop with kubuntu-desktop, xubuntu-desktop or whatever flavour you are using.