I ran sudo mv /lib/x86_64-linux-gnu/libpthread.so.0 ~
, which in retrospect, was not the world's greatest idea.
Now, I can't do anything. Any commands I run fail with
error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
.
I can't run apt
, I can't even do an ls
. I can't move the file back with [sudo] mv ~/libpthread.so.0 /lib/x86_64-linux-gnu/
. I can't run ldconfig
. Any ideas on how to undo this damage?
One possible relevant fact is that /lib/x86_64-linux-gnu/
also contained the file libpthread-2.27.so
, which was perhaps symlinked with libpthread.so.0
somehow?
I don't think it matters, but this is Ubuntu 18.04 running on WSL.
cd
without error! – crockeea Apr 1 '20 at 20:53LD_LIBRARY_PATH=$HOME ls
? – steeldriver Apr 1 '20 at 20:55sudo /sbin/ldconfig -v
. Checkman ldconfig
for info. – Raffa Apr 1 '20 at 22:38sudo
at all. – crockeea Apr 1 '20 at 22:52