0

This question already has an answer here:

I was going some testing and decided to delete some library files in

/usr/lib/x86_64-linux-gnu/

(Horrible idea I know) The side effect of deleting those files is that I am unable to open the gnome or unity control center for Ubuntu. When I open the control center by running unity-control-center -v

/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: sqlite3_errstr
Failed to load module: /usr/lib/x86_64-linux-gnu/unity-control-center-1/panels/libinfo.so
** (unity-control-center:9666): DEBUG: Enabling debugging
/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: sqlite3_errstr
Failed to load module: /usr/lib/x86_64-linux-gnu/unity-control-center-1/panels/libinfo.so

I have everywhere for this error and tried reinstalling many many diffrent libs but none seem to work. This is different from other questions because the libraries can be restored by installing the right packages Using Ubuntu 16.04.3 LTS

marked as duplicate by muru, WinEunuuchs2Unix, karel, Eric Carvalho, Fabby Dec 23 '17 at 1:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    This might get kinda hard because there are thousands of files usually in that folder – Max Dec 19 '17 at 5:58
  • With regard to your edit, no it's not different from the question linked to above, since that question has an answer that involves reinstalling the right packages. – Chai T. Rex Dec 19 '17 at 6:46
1

Two options here:

  1. You should try to fix this with debsums. You can find missed files with it and reinstall their packages with the following commands:

    sudo apt-get install debsums
    sudo debsums_init
    sudo debsums --changed --silent
    

    then reinstall mentioned packages manually with

    sudo apt-get -f install
    
  2. Or try to find all packages, which have files in /usr/lib/x86_64-linux-gnu/ with dpkg -S /usr/lib/x86_64-linux-gnu/ or combined with re-installation

    sudo apt-get install --reinstall `dpkg -S /usr/lib/x86_64-linux-gnu/ \
    | sed 's/,/ /g' | head -c-28`
    

Not the answer you're looking for? Browse other questions tagged or ask your own question.