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
@samal-rasmussen
Copy link

@konradk
Tiny error. libpango-1.0 should be libpango-1.0-0.

@stasberkov
Copy link

stasberkov commented Dec 20, 2024

I just checked the dependencies chrome deb file has:

sberkov@DN1WP-SBERKOV2:~/Downloads$ dpkg -I google-chrome-stable_current_amd64.deb
 new Debian package, version 2.0.
 size 112770956 bytes: control archive=17460 bytes.
    1132 bytes,    12 lines      control
   26982 bytes,   619 lines   *  postinst             #!/bin/sh
   22164 bytes,   477 lines   *  postrm               #!/bin/sh
    1349 bytes,    42 lines   *  prerm                #!/bin/sh
 Package: google-chrome-stable
 Version: 131.0.6778.204-1
 Architecture: amd64
 Maintainer: Chrome Linux Team <[email protected]>
 Installed-Size: 359620
 Pre-Depends: dpkg (>= 1.14.0)
 Depends: ca-certificates, fonts-liberation, libasound2 (>= 1.0.17), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.11.90), libatspi2.0-0 (>= 2.9.90), libc6 (>= 2.17), libcairo2 (>= 1.6.0), libcups2 (>= 1.6.0), libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3, libdbus-1-3 (>= 1.9.14), libdrm2 (>= 2.4.75), libexpat1 (>= 2.1~beta3), libgbm1 (>= 17.1.0~rc2), libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.9.10) | libgtk-4-1, libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.35), libpango-1.0-0 (>= 1.14.0), libudev1 (>= 183), libvulkan1, libx11-6 (>= 2:1.4.99.1), libxcb1 (>= 1.9.2), libxcomposite1 (>= 1:0.4.4-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxkbcommon0 (>= 0.5.0), libxrandr2, wget, xdg-utils (>= 1.0.2)
 Provides: www-browser
 Section: web
 Priority: optional
 Description: The web browser from Google
  Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

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