Friday, November 16, 2018

gui - How do I restore accidently deleted system library(libpro*)?



As the title said, I accidentally deleted system libraries which has the name pattern of "libpro*" in usr/lib/. And then, when I reboot the system, graphical user interface is gone away(Ubuntu gnome 16.04). My original intention is to delete google's protobuf library only, but my careless action causes this disaster result. It seems to me that I deleted libproj, libproxy, and etc(libpro*) including google's libproto.
How can I restore my system before deleting the those files? Can I just copy other ubuntu's libpro* files into my system?



You can find which libraries that was deleted by using the command




dpkg-query --search /usr/lib/*libpro*


Then reinstall them by calling



sudo apt-get install --reinstall lib...


for each of the missing libraries
... should be proj, proxy and so forth


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...