{"id":13590,"date":"2025-04-08T18:00:00","date_gmt":"2025-04-08T12:30:00","guid":{"rendered":"https:\/\/www.skynats.com\/?p=13590"},"modified":"2025-08-11T12:46:08","modified_gmt":"2025-08-11T07:16:08","slug":"install-google-chrome-headless-ubuntu-server","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/","title":{"rendered":"How to Install Google Chrome Headless on Ubuntu Server"},"content":{"rendered":"\n<p>Google Chrome Headless is a browser mode without a graphical user interface, making it perfect for automated web tasks such as testing, data scraping, and generating PDFs or screenshots. To start these tasks on Linux systems, you first need to install Google Chrome on Ubuntu. This setup is widely used in CI\/CD pipelines for web automation, allowing developers to efficiently run UI tests without a visible browser window, which speeds up testing and reduces resource consumption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-if-you-want-to-run-google-chrome-in-headless-mode-for-automated-tasks-or-server-based-browsing-this-guide-will-walk-you-through-the-steps-to-install-google-chrome-headless-on-an-ubuntu-server\">If you want to run Google Chrome in headless mode for automated tasks or server-based browsing, this guide will walk you through the steps to install Google Chrome Headless on an Ubuntu server.<\/h2>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to an Ubuntu server.<\/li>\n\n\n\n<li>sudo privileges to install and configure packages.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-step-1-update-the-package-index\"><strong>Step 1: Update the Package Index<\/strong><\/h2>\n\n\n\n<p>Update the package index to ensure all repositories are in sync:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#apt-get update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-step-2-install-dependencies\"><strong>Step 2: Install Dependencies<\/strong><\/h2>\n\n\n\n<p>Install the required dependencies for Chrome:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#apt-get install libappindicator1 fonts-liberation<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Step 3: Download Google Chrome<\/strong><\/h3>\n\n\n\n<p>Use wget to download the latest version of Google Chrome:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#wget https:\/\/dl.google.com\/linux\/direct\/google-chrome-stable_current_amd64.deb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-4-install-google-chrome\"><strong>Step 4: Install Google Chrome<\/strong><\/h3>\n\n\n\n<p>Install the Chrome package using dpkg. This may show some dependency errors, which we\u2019ll resolve in the next step:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#dpkg -i google-chrome-stable_current_amd64.deb<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\" id=\"h-step-5-fix-broken-dependencies\"><strong>Step 5: Fix Broken Dependencies<\/strong><\/h4>\n\n\n\n<p>Resolve any missing dependencies:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#apt --fix-broken install<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\"><strong>Step 6: Re-run the Chrome Installation<\/strong><\/h4>\n\n\n\n<p>After fixing dependencies, rerun the Chrome installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#dpkg -i google-chrome-stable_current_amd64.deb<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\"><strong>Step 7: Verify the Installation<\/strong><\/h4>\n\n\n\n<p>To check if Google Chrome is installed and functioning, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#google-chrome-stable --version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\"><strong>Example Command: Run Chrome in Headless Mode<\/strong><\/h3>\n\n\n\n<p>To generate a PDF of a webpage, you can use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#google-chrome-stable --headless --disable-gpu --print-to-pdf https:\/\/example.com\/<\/code><\/pre>\n\n\n\n<p><strong>Note:<\/strong> Replace example.com with the domain you want to process.<\/p>\n\n\n\n<p>With these above mentioned steps, you can successfully install Google Chrome Headless on your <a href=\"https:\/\/ubuntu.com\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Ubuntu<\/mark><\/a> server, and handle automated browsing, screenshots, or testing scripts.<\/p>\n\n\n\n<p>Have any queries related to &#8220;How to Install Google Chrome Headless on Ubuntu Server&#8221;?&nbsp;<a href=\"https:\/\/www.skynats.com\/blog\/\">Contact us<\/a>, and we\u2019ll get back to you within no time!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Chrome Headless is a browser mode without a graphical user interface, making it perfect for automated web tasks such as testing, data scraping, and generating PDFs or screenshots. To start these tasks on Linux systems, you first need to install Google Chrome on Ubuntu. This setup is widely used in CI\/CD pipelines for web [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[923,851],"class_list":["post-13590","post","type-post","status-publish","format-standard","hentry","category-blog","tag-google-chrome-headless","tag-ubuntu-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install Google Chrome Ubuntu \u2013 Headless Setup Guide<\/title>\n<meta name=\"description\" content=\"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Google Chrome Headless on Ubuntu Server\" \/>\n<meta property=\"og:description\" content=\"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-08T12:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T07:16:08+00:00\" \/>\n<meta name=\"author\" content=\"Sourav AJ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sourav AJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/\"},\"author\":{\"name\":\"Sourav AJ\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/255d12fc66a62db365022ecbb5846276\"},\"headline\":\"How to Install Google Chrome Headless on Ubuntu Server\",\"datePublished\":\"2025-04-08T12:30:00+00:00\",\"dateModified\":\"2025-08-11T07:16:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/\"},\"wordCount\":308,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"Google Chrome Headless\",\"ubuntu server\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/\",\"name\":\"Install Google Chrome Ubuntu \u2013 Headless Setup Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2025-04-08T12:30:00+00:00\",\"dateModified\":\"2025-08-11T07:16:08+00:00\",\"description\":\"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-google-chrome-headless-ubuntu-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Google Chrome Headless on Ubuntu Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/255d12fc66a62db365022ecbb5846276\",\"name\":\"Sourav AJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"caption\":\"Sourav AJ\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install Google Chrome Ubuntu \u2013 Headless Setup Guide","description":"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Google Chrome Headless on Ubuntu Server","og_description":"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!","og_url":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2025-04-08T12:30:00+00:00","article_modified_time":"2025-08-11T07:16:08+00:00","author":"Sourav AJ","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Sourav AJ","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/"},"author":{"name":"Sourav AJ","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/255d12fc66a62db365022ecbb5846276"},"headline":"How to Install Google Chrome Headless on Ubuntu Server","datePublished":"2025-04-08T12:30:00+00:00","dateModified":"2025-08-11T07:16:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/"},"wordCount":308,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["Google Chrome Headless","ubuntu server"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/","url":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/","name":"Install Google Chrome Ubuntu \u2013 Headless Setup Guide","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2025-04-08T12:30:00+00:00","dateModified":"2025-08-11T07:16:08+00:00","description":"Install Google Chrome Ubuntu in headless mode with ease. Follow our quick guide now to boost automation and server performance!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/install-google-chrome-headless-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Google Chrome Headless on Ubuntu Server"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/255d12fc66a62db365022ecbb5846276","name":"Sourav AJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","caption":"Sourav AJ"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13590","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=13590"}],"version-history":[{"count":2,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13590\/revisions"}],"predecessor-version":[{"id":15606,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13590\/revisions\/15606"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=13590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=13590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=13590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}