Question

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

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


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
December 24, 2024

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
Bobby Iliev
Site Moderator
Site Moderator badge
December 23, 2024

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.