×


Fix error while loading shared libraries in Ubuntu

"Error while loading shared libraries" occurs when a program cannot access a file in the server's library of an Ubuntu Linux System.

As part of our Server Support Services, We have helped customers fix Ubuntu and Debian related errors on a regular basics.
In this context, we will look into the nature of this error and how to fix it easily.

More about Error while loading shared libraries in Ubuntu Linux

Most Ubuntu Linux users face this issues while trying to install a software in their Linux system.

The error looks like this;

error while loading shared libraries:
cannot open shared object file: No such file or directory


In another note, this error might be triggered after the Ubuntu version is upgraded. What happens here is that due to the upgrade, old libraries are removed.

How to solve error while loading shared libraries in Ubuntu Linux

Fixing the library loading issues requires detection of the actual library which the program or software needs in order to function properly.


Lets say the affect library name is liblapacke.so.3, then you can try to search it in the system via the command below;

apt-file search liblapacke.so.3


The result of this will give you something like this;

liblapacke: /usr/lib/x86_64-linux-gnu/liblapacke.so.3


Now we can install this package which is missing with the command below;

sudo apt install liblapacke

This will finally solve the issue.


Need to solve Ubuntu Issues? Contact us Now.


Conclusion

Easy method to solve error while loading shared libraries in Ubuntu.