Puppeteer Chrome Launch Failures on Linux: Installing Missing System Dependencies

Table of Contents

Introduction

Puppeteer is a Node.js library that provides a high-level API to control Chrome or Chromium through the DevTools Protocol. It is commonly used for browser automation, PDF generation, web scraping, screenshot capture, and automated testing. However, installing Puppeteer through npm does not always guarantee that its bundled Chrome browser will run successfully on a Linux server.

One common issue is missing system-level shared libraries required by Chrome. When these dependencies are unavailable, Chrome may fail to launch with errors.

How to Fix Puppeteer Chrome Launch Failures on Linux

Puppeteer Chrome launch failures on Linux are commonly caused by missing shared libraries, incorrect browser paths, permission restrictions, or sandbox configuration issues.

To troubleshoot the problem:

  1. Verify that Puppeteer is installed correctly.

  2. Locate the downloaded Chrome executable.

  3. Run ldd against the Chrome binary to identify missing shared libraries.

  4. Install the required dependencies using the Linux package manager.

  5. Check the dependencies again.

  6. Test Chrome in headless mode.

  7. Run a Puppeteer script to confirm that Chrome launches successfully.

On Ubuntu and Debian servers, missing dependencies can often be resolved using APT packages. However, the exact requirements depend on the Linux distribution and version.

Step 1: Verify Puppeteer Installation

Next, verify whether Puppeteer is installed in the Node.js project.

npm list puppeteer

This command displays the installed Puppeteer package and its version. If Puppeteer is installed correctly, you should see output similar to

project-name

└── [email protected]

Step 2: Locate the Downloaded Chrome Binary

Puppeteer generally stores its downloaded browser under the user’s cache directory.

To locate the Chrome executable, run:

find ~/.cache/puppeteer -type f -name chrome

Example output:

/root/.cache/puppeteer/chrome/linux-148.0.7778.97/chrome-linux64/chrome

This confirms the location of the downloaded Chrome binary.

Step 3: Identify Missing Shared Libraries

This is one of the most important troubleshooting steps. Chrome depends on several Linux shared libraries for graphics rendering, accessibility, audio, font rendering, and other browser functions. Use the ldd command to inspect the Chrome binary’s shared library dependencies.

ldd /root/.cache/puppeteer/chrome/linux-148.0.7778.97/chrome-linux64/chrome | grep “not found”

For example:

libatk-1.0.so.0 => not found

libatk-bridge-2.0.so.0 => not found

libcups.so.2 => not found

libxkbcommon.so.0 => not found

These missing libraries prevent Chrome from launching successfully.

Step 4: Update the APT Package Repository

Before installing the missing libraries, update the package repository information.

apt-get update

Step 5: Install Required Chrome Dependencies

Install the required system libraries using:

apt install libatk1.0-0 libatk-bridge2.0-0 libcups2 libxkbcommon0 libasound2 libgbm1 libcairo2 libpango-1.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libatspi2.0-0

Note: Package names can differ between Linux distributions and releases.

Step 6: Verify the Dependencies Again

After installing the packages, run the dependency check again:

ldd /root/.cache/puppeteer/chrome/linux-148.0.7778.97/chrome-linux64/chrome | grep “not found”

If the command returns no output, all missing shared libraries reported by ldd have been resolved. This is an important validation step before testing Chrome.

 

Step 7: Test Chrome in Headless Mode

Finally, execute Chrome directly in headless mode.

/root/.cache/puppeteer/chrome/linux-148.0.7778.97/chrome –headless –no-sandbox –disable-gpu –dump-dom about:blank

If Chrome launches successfully, you should receive output similar to:

<html><head></head><body></body></html>

This confirms that Chrome can start in headless mode and render an empty page.

Conclusion

Puppeteer Chrome launch failures on Linux servers are often caused by missing system-level shared libraries rather than an issue with the Puppeteer npm package itself. By following this troubleshooting process, you can systematically identify missing dependencies, install the required packages, verify Chrome’s shared library requirements and test browser execution.

However, missing libraries are not the only possible cause. Browser permissions, sandbox restrictions, incorrect executable paths and installation issues can also affect Chrome startup.

For businesses running browser automation, web scraping, PDF generation or testing workloads, maintaining properly configured Linux infrastructure is essential for reliable application performance.

 

Picture of Jishnu V

Jishnu V

Jishnu is a Level 2 System Engineer at Skynats Technologies, specializing in Linux server administration, cloud infrastructure, and advanced technical support.

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Subscribe and get your first issue fixed for Free!

Looking for server support and 24x7 monitoring?

Have doubts? Connect with us now.