Report this

What is the reason for this report?

shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory

Posted on December 22, 2024

Im trying to use puppeter (nodejs) with ubunto and im getting this error shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Did you by any chance first install the required system dependencies?

If not, try the following:

sudo apt update
sudo apt install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libxdamage1 libpango-1.0-0 libnss3 libxshmfence1 libgbm-dev

This will install the libatk-1.0.so.0 library and other dependencies that Chromium needs to run.

After installing the dependencies, try running your Node.js application again. Puppeteer should now launch Chromium without any issues.

Let me know how it goes!

- Bobby

Heya,

As mentioned in Discord, you should try

sudo apt install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libxdamage1 libxkbcommon0 libasound2 libpangocairo-1.0-0 libpango-1.0-0 libgbm1 libnss3 libxcb1 libxshmfence1

but before that as yo mentioned, it says Package libosound2 has no installation candidate. Try running

sudo apt install libasound2t64

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.