In Ubuntu 16.04, I ran by mistake sudo rm -rf /usr/share
. I know how stupid that is (I wanted to remove /usr/share/somefolder
that had been installed as root and got distracted). I interrupted it after about 5 seconds. I can already see some strange things: some text is not displaying on askubuntu.SE in firefox, when I open a terminal I get /etc/zsh/zshrc:111: compinit: function definition file not found
, autocompletion returns an error, etc.
My question is: what should I do now?
Edit I install debsums
and followed the steps in this answer to Is there a Ubuntu sanity check?. With the command sudo debsums -cs
, I could see that a lot of things where broken. However, I could not fix that other than by reinstalling (see my more detailed answer).