Skip to content

Instantly share code, notes, and snippets.

@Zonalds
Forked from winuxue/puppeteer-ubuntu-1804.md
Last active January 16, 2024 13:44
Show Gist options
  • Save Zonalds/aef0ba1c65cf50bceb7baf43dff51291 to your computer and use it in GitHub Desktop.
Save Zonalds/aef0ba1c65cf50bceb7baf43dff51291 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

Or just intall all using

sudo apt-get install -y nodejs gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev

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