{"id":17770,"date":"2026-11-24T18:02:11","date_gmt":"2026-11-24T12:32:11","guid":{"rendered":"https:\/\/www.skynats.com\/blog\/?p=17770"},"modified":"2026-11-24T18:02:11","modified_gmt":"2026-11-24T12:32:11","slug":"puppeteer-chrome-launch-failures-linux","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/puppeteer-chrome-launch-failures-linux\/","title":{"rendered":"Puppeteer Chrome Launch Failures on Linux: Installing Missing System Dependencies"},"content":{"rendered":"<h2><b>Introduction<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">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 <span style=\"color: #999999;\"><a style=\"color: #999999;\" href=\"https:\/\/pptr.dev\/\" target=\"_blank\" rel=\"noopener\">Puppeteer<\/a> <\/span>through npm does not always guarantee that its bundled Chrome browser will run successfully on a Linux server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One common issue is missing system-level shared libraries required by Chrome. When these dependencies are unavailable, Chrome may fail to launch with errors.<\/span><\/p>\n<h2><strong>How to Fix Puppeteer Chrome Launch Failures on Linux<\/strong><\/h2>\n<p>Puppeteer Chrome launch failures on Linux are commonly caused by missing shared libraries, incorrect browser paths, permission restrictions, or sandbox configuration issues.<\/p>\n<p>To troubleshoot the problem:<\/p>\n<ol>\n<li>\n<div>\n<div>\n<p>Verify that Puppeteer is installed correctly.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Locate the downloaded Chrome executable.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Run <code>ldd<\/code> against the Chrome binary to identify missing shared libraries.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Install the required dependencies using the Linux package manager.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Check the dependencies again.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Test Chrome in headless mode.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div>\n<div>\n<p>Run a Puppeteer script to confirm that Chrome launches successfully.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<p>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.<\/p>\n<h3><b>Step 1: Verify Puppeteer Installation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Next, verify whether Puppeteer is installed in the Node.js project.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">npm list puppeteer<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">This command displays the installed Puppeteer package and its version. If Puppeteer is installed correctly, you should see output similar to<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">project-name<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u2514\u2500\u2500 puppeteer@24.x.x<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><b>Step 2: Locate the Downloaded Chrome Binary<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Puppeteer generally stores its downloaded browser under the user&#8217;s cache directory.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To locate the Chrome executable, run:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">find ~\/.cache\/puppeteer -type f -name chrome<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">Example output:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\/root\/.cache\/puppeteer\/chrome\/linux-148.0.7778.97\/chrome-linux64\/chrome<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">This confirms the location of the downloaded Chrome binary.<\/span><\/p>\n<h3><b>Step 3: Identify Missing Shared Libraries<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">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&#8217;s shared library dependencies.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">ldd \/root\/.cache\/puppeteer\/chrome\/linux-148.0.7778.97\/chrome-linux64\/chrome | grep &#8220;not found&#8221;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">For example:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">libatk-1.0.so.0 =&gt; not found<\/span><\/p>\n<p><span style=\"font-weight: 400;\">libatk-bridge-2.0.so.0 =&gt; not found<\/span><\/p>\n<p><span style=\"font-weight: 400;\">libcups.so.2 =&gt; not found<\/span><\/p>\n<p><span style=\"font-weight: 400;\">libxkbcommon.so.0 =&gt; not found<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">These missing libraries prevent Chrome from launching successfully.<\/span><\/p>\n<h3><b>Step 4: Update the APT Package Repository<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Before installing the missing libraries, update the package repository information.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">apt-get update<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><b>Step 5: Install Required Chrome Dependencies<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Install the required system libraries using:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">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<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Note:<\/b><span style=\"font-weight: 400;\"> Package names can differ between Linux distributions and releases.<\/span><\/p>\n<h3><b>Step 6: Verify the Dependencies Again<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">After installing the packages, run the dependency check again:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">ldd \/root\/.cache\/puppeteer\/chrome\/linux-148.0.7778.97\/chrome-linux64\/chrome | grep &#8220;not found&#8221;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">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.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Step 7: Test Chrome in Headless Mode<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Finally, execute Chrome directly in headless mode.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\/root\/.cache\/puppeteer\/chrome\/linux-148.0.7778.97\/chrome &#8211;headless &#8211;no-sandbox &#8211;disable-gpu &#8211;dump-dom about:blank<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">If Chrome launches successfully, you should receive output similar to:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">&lt;html&gt;&lt;head&gt;&lt;\/head&gt;&lt;body&gt;&lt;\/body&gt;&lt;\/html&gt;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">This confirms that Chrome can start in headless mode and render an empty page.<\/span><\/p>\n<h4><strong>Conclusion<\/strong><\/h4>\n<p>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&#8217;s shared library requirements and test browser execution.<\/p>\n<p>However, missing libraries are not the only possible cause. Browser permissions, sandbox restrictions, incorrect executable paths and installation issues can also affect Chrome startup.<\/p>\n<p>For businesses running browser automation, web scraping, PDF generation or testing workloads, maintaining properly <a href=\"https:\/\/www.skynats.com\/linux-server-management\">configured Linux infrastructure<\/a> is essential for reliable application performance.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-17770","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=17770"}],"version-history":[{"count":3,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17770\/revisions"}],"predecessor-version":[{"id":17776,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/17770\/revisions\/17776"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=17770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=17770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=17770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}