Score:0

Missing ubuntu packages after wrong command

it flag

I messed my ubuntu 18.04LTS after I mistakenly typed

sudo apt-get remove libpython3.6-stdlib

This removed about 980 MB of packages and now many packages are missing from my ubuntu. How can I revert it back?

bac0n avatar
cn flag
Does this answer your question? [Where are the logs for apt-get?](https://askubuntu.com/questions/425809/where-are-the-logs-for-apt-get)
Raffa avatar
jp flag
Ouch! ... That is soooo unfortunate. Try `sudo apt install --reinstall python3 ubuntu-desktop` and see if it works... To get a list of recently removed or purged packages run `grep -E "remove|purge" /var/log/dpkg.log`
Raffa avatar
jp flag
Does this answer your question? [How to remove all traces of python from Ubuntu](https://askubuntu.com/questions/1321421/how-to-remove-all-traces-of-python-from-ubuntu)
N0rbert avatar
zw flag
You probably have had PPA with Pythons on time of 16.04. What is the output of `apt-cache policy libpython3.6-stdlib` ? What is the output of `grep -r ^deb /etc/apt --include=*.list` and `grep -r '^#.*deb' /etc/apt --include=*.list` ?
guiverc avatar
cn flag
Read the list of packages that will be removed prior to hitting "Y". The confirmation question is there for a reason.
nobody avatar
gh flag
short way save your data and install anew.
Score:0
de flag

You may re-install the package by the following commands

sudo apt-get update
sudo apt-get install libpython3.6-stdlib
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.