By Strooss
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.