Chromedriver on Ubuntu 14.04 - Error loading shared libraries: libui_base.so

I installed chromium-chromedriver from the official ubuntu repository, but when I try to run the binary or call it from the java library, I always got the following error:

/ usr / lib / chromium-browser / chromedriver: error loading shared libraries: libui_base.so: cannot open shared objects file: no such file or directory

This is not a duplicate of Chromedriver on Ubuntu 12.04 - Error loading shared libraries: libXi.so.6

since missing library names are different. And I tried to use their solution, which does not work.

Does anyone face the same problem?

+4
source share
1 answer

libui_base.so is provided by Chromium itself, it exists at /usr/lib/chromium-browser/libs.

To fix the problem, we need to add this path to LD_LIBRARY_PATH. Or I created a chrome_lib.conf file in a folder /etc/ld.so.conf.d/containing just this path.

/etc/ld.so.conf.d/chrome_lib.conf:

/usr/lib/chromium-browser/libs

Then run $. sudo ldconfig After that, the chrome reverse works successfully.

+7
source

All Articles