Skip to content

Instantly share code, notes, and snippets.

@winuxue
Created May 22, 2019 01:15
Show Gist options
  • Save winuxue/cfef08e2f5fe9dfc16a1d67a4ad38a01 to your computer and use it in GitHub Desktop.
Save winuxue/cfef08e2f5fe9dfc16a1d67a4ad38a01 to your computer and use it in GitHub Desktop.
Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic)

puppeteer dependeces in ubuntu 18.04 (Bionic)

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

sudo apt-get install libnss3

error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libxss1

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

apt-get install libasound2

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

apt-get install libatk-bridge2.0-0

error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory

apt install libgtk-3-0
@miaopanpan
Copy link

apt-get install libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev

thank you

@VGerris
Copy link

VGerris commented Mar 27, 2024

anyone running ubuntu 22.04 LTS, i just went though each dependecy for puppeteer as they came up:

* libatk-bridge2.0-0

* libcups2

* libxkbcommon.so.0

* libXcomposite.so.1

* libXdamage.so.1

* libXfixes.so.3

* libXrandr.so.2

* libgbm.so.1

* libpango-1.0.so.0

after installing everything above and using args: ["--no-sandbox"], puppeteer works.

This is my list, not using options but the grafana module for icinga :
- libatk-bridge2.0-0
- libcups2
- libxcomposite1
- libxdamage1
- libxfixes3
- libxrandr2
- libgbm1
- libxkbcommon-x11-0
- libpango1.0-0
- libasound2

Thank you

@samal-rasmussen
Copy link

Ubuntu 22.04 command:
sudo apt install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libxcomposite-dev libxdamage1 libxrandr2 libgbm1 libxkbcommon-x11-0 libpango1.0-0 libasound2

Thank you @VGerris @joecorsi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment