Ubuntu Install Chrome From Command Line

10 min read

How to Install Google Chrome on Ubuntu from the Command Line

Google Chrome is one of the most popular web browsers globally, known for its speed, security, and seamless integration with Google services. Practically speaking, while Ubuntu typically comes with Firefox as its default browser, many users prefer Chrome for its extensive extension ecosystem and performance. Although you can install Chrome via a graphical interface, using the command line offers greater control, efficiency, and automation—especially for advanced users, system administrators, or those managing multiple systems. This guide provides a comprehensive, step-by-step approach to installing Google Chrome on Ubuntu entirely from the terminal, ensuring a smooth and repeatable process That's the whole idea..

Prerequisites

Before proceeding, ensure your Ubuntu system is updated and has internet access. Open a terminal (Ctrl+Alt+T) and run the following command to update your package list:

sudo apt update

This step refreshes the list of available packages from Ubuntu’s repositories, preventing potential conflicts during installation The details matter here. Still holds up..

Step 1: Download the Chrome .deb Package

Google provides a .deb package for Chrome directly from its servers, which is the most reliable method for command-line installation. First, deal with to the directory where you want to save the file (e.g., your home directory). Then, use wget or curl to download the latest stable version of Chrome. As of this writing, the 64-bit version is recommended for most modern systems:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

If you prefer curl and want to save the file with the correct name, use:

curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

Verify the download by checking the file size and integrity with ls -lh, ensuring it’s not corrupted or incomplete.

Step 2: Install the Package Using dpkg

Once downloaded, install the .deb package with the dpkg command. This tool handles individual .deb files but may leave dependencies unresolved if they’re missing:

sudo dpkg -i google-chrome-stable_current_amd64.deb

If you encounter errors about unmet dependencies (e.g., “dependency is not satisfied”), don’t worry—this is common. Ubuntu’s package manager can automatically fetch and install these requirements.

Step 3: Resolve Dependencies with apt

To fix any broken dependencies, run:

sudo apt install -f

The -f flag stands for “fix broken,” prompting apt to correct any dependency issues by downloading missing packages from the repositories. This step ensures Chrome functions correctly without manual intervention.

Step 4: Launch Chrome from the Terminal

After installation, you can start Chrome immediately by typing:

google-chrome

Alternatively, use xdg-open to open a specific URL, such as your homepage:

xdg-open https://www.google.com

This command leverages the system’s default application handler for URLs, which Chrome will now handle Worth knowing..

Step 5: Create a Desktop Shortcut (Optional)

If you want Chrome to appear in your applications menu or desktop launcher, create a .desktop file. First, ensure the /usr/share/applications/ directory exists, then create a file:

sudo nano /usr/share/applications/google-chrome.desktop

Paste the following content, then save and exit (Ctrl+O, Enter, Ctrl+X):

[Desktop Entry]
Version=1.0
Type=Application
Name=Google Chrome
Comment=Web Browser
Exec=/usr/bin/google-chrome
Icon=google-chrome
Terminal=false
Categories=Network;WebBrowser;

This makes Chrome accessible via the Ubuntu dash or application launcher Worth keeping that in mind. But it adds up..

Step 6: Update Chrome Automatically

Chrome updates itself in the background, but you can manually trigger an update from the terminal:

google-chrome --update

For enterprise environments or automation, consider using apt to manage Chrome if you’ve added Google’s repository. Add the repository and key, then update:

echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update && sudo apt install google-chrome-stable

This method allows updates via sudo apt upgrade.

Step 7: Uninstall Chrome (If Needed)

To remove Chrome completely, first purge the package and then clean up residual files:

sudo apt purge google-chrome-stable
sudo apt autoremove

This removes Chrome and any unused dependencies, freeing up disk space Which is the point..

Scientific Explanation: Why the Command Line?

Using the command line for installation isn’t just about convenience—it’s rooted in principles of automation, reproducibility, and control. Unlike graphical installers, which may prompt for user interactions or introduce graphical dependencies, terminal commands are scriptable and non-interactive. This is critical in server environments, CI/CD pipelines, or when deploying software across multiple machines. Additionally, command-line tools like dpkg and apt provide granular control over package management, allowing users to diagnose issues, manage dependencies, and ensure system integrity.

FAQ

Q: Why doesn’t Chrome appear in my applications menu after installation?
A: The .deb package should automatically create a launcher. If missing, manually create a .desktop file as shown above or check /usr/share/applications/ for existing entries Small thing, real impact. Took long enough..

Q: Can I install Chrome on a 32-bit Ubuntu system?
A: Google has discontinued 32-bit support. Ensure your system is 64-bit by checking with uname -m. If you must use 32-bit, consider Chromium, the open-source alternative.

Q: How do I fix “dpkg: error: dependency problems” errors?
A: Run sudo apt install -f to resolve dependencies. If issues persist, check for network connectivity or corrupted downloads.

Q: Is it safe to download Chrome from the official Google URL?
A: Yes, Google’s servers are secure. For added safety, verify the package’s checksum after downloading using sha256sum.

Conclusion

Installing Google Chrome on Ubuntu via the command line is a straightforward yet powerful method that emphasizes efficiency and control. By following these steps, you can deploy Chrome reliably, automate updates, and integrate it smoothly into your workflow. Whether you’re a developer, sysadmin, or power user, mastering command-line installations enhances your ability to manage Ubuntu systems effectively. As Chrome continues to evolve, this approach ensures you stay updated with minimal effort, keeping your browsing experience fast, secure, and made for your needs.

Advanced Configuration & Optimization

Beyond basic installation, power users can fine-tune Chrome’s behavior on Linux through launch flags and configuration files.

Persistent Launch Flags To apply flags permanently (e.g., enabling hardware video decoding or forcing dark mode), create a configuration file rather than aliasing the command:

mkdir -p ~/.config/chrome-flags.conf
echo "--enable-features=VaapiVideoDecoder --force-dark-mode" > ~/.config/chrome-flags.conf

Chrome on Linux automatically reads ~/.config/chrome-flags.conf (or chromium-flags.conf) on startup, ensuring your tweaks survive updates and menu launches.

Hardware Acceleration Troubleshooting If you experience video tearing or high CPU usage during playback, verify GPU acceleration status at chrome://gpu. On Wayland sessions, you may need to launch with --ozone-platform=wayland --enable-features=WaylandWindowDecorations for native frame rendering. For NVIDIA proprietary drivers, ensure libvdpau and vaapi drivers are installed (sudo apt install vdpau-driver-all libva-nvidia-driver) to offload decoding to the GPU.

Profile Management for Isolation Run multiple isolated Chrome instances simultaneously—ideal for separating work, personal, and testing contexts—without interfering with the default profile:

google-chrome-stable --user-data-dir="$HOME/.config/google-chrome-work" --profile-directory="Work Profile"
google-chrome-stable --user-data-dir="$HOME/.config/google-chrome-dev" --profile-directory="Dev Profile"

Create .desktop files for each in ~/.local/share/applications/ with unique StartupWMClass values to prevent icon grouping issues in your dock Most people skip this — try not to..


Alternatives Worth Considering

While Chrome dominates market share, Ubuntu users benefit from native alternatives that align closer with open-source philosophies or specific privacy needs:

Browser Package Source Key Differentiator
Chromium sudo apt install chromium-browser (Snap) / Flatpak Open-source upstream; no proprietary codecs or Google tracking by default.
Brave Official APT repo / Flatpak Built-in shields (ad/tracker blocking), Tor integration, crypto wallet.
Vivaldi Official .On the flip side, deb / APT repo Extreme customization, tab tiling, built-in mail/calendar/RSS.
Firefox sudo apt install firefox (Snap/DEB) Native Wayland support, strong privacy defaults, Gecko engine diversity.

Short version: it depends. Long version — keep reading.

Installing Brave (APT Method) for Comparison:

sudo apt install curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc

```bash
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser.list
sudo apt update
sudo apt install brave-browser

After the package is installed, you can launch Brave either from the terminal or via the desktop entry that was automatically added to ~/.Now, local/share/applications. The first run will guide you through the onboarding wizard, where you can opt‑in to the built‑in privacy features, set a default search engine, and connect your Brave wallet if you have one.

Quick Customization Tips

Setting How to Access Why It Matters
Privacy Shields brave://settings/shields Blocks ads, trackers, and fingerprinting by default.
Tor Tabs brave://settings/tor Opens a private, anonymized tab using the Tor network.
Wallet brave://settings/wallet Manages your crypto assets and dApp permissions.
Theme & Appearance brave://settings/appearance Switch to a dark theme, customize new tab page, or enable reader mode.

If you prefer a containerized approach, Brave is also available as a Snap (snap install brave) or a Flatpak (flatpak install flathub com.So browser). Now, brave. The Snap version automatically receives updates through the Snap store, while the Flatpak version keeps a sandbox isolated from the system packages—useful if you want to avoid any APT‑managed dependencies.

Comparing the Alternatives at a Glance

Browser Installation Method License Tracking Hardware Acceleration
Chromium apt / Snap / Flatpak BSD‑like None (Google‑free) Works with --enable-features=VaapiVideoDecoder
Brave APT / Snap / Flatpak MIT Minimal (optional) Native support, respects system VA‑API settings
Vivaldi .deb / APT / Snap Proprietary Limited (user‑controlled) Full GPU acceleration via Chrome stack
Firefox apt / Snap / Flatpak MPL‑2.0 Strong privacy defaults Wayland‑native, uses Mesa/VA‑API internally

Final Thoughts

Whether you stick with Chrome’s extensive feature set, switch to the privacy‑first Brave, or explore the open‑source flexibility of Chromium, the key to a smooth browsing experience on Ubuntu lies in three pillars:

  1. Configuration – leveraging ~/.config/chrome-flags.conf (or its Chromium/Brave equivalents) to enable hardware‑accelerated decoding and system‑wide dark mode without digging into menus each time.
  2. Isolation – using distinct user‑data directories and profile directories lets you keep work, development, and personal sessions cleanly separated, reducing cross‑contamination and easing automation scripts.
  3. Troubleshooting – the chrome://gpu page and proper driver installation (libvdpau, libva-nvidia-driver) keep video playback buttery‑smooth on Wayland and NVIDIA setups.

For most power users, Chrome with a well‑tuned flag file and multiple isolated profiles remains the most productive choice. If privacy and ad‑free browsing are higher priorities, Brave offers a compelling, lightweight alternative that still respects hardware acceleration when configured correctly. In the long run, the “best” browser is the one that aligns with your workflow, privacy expectations, and system capabilities—so experiment with the options above, fine‑tune the flags, and enjoy a faster, cleaner Ubuntu desktop experience.

Easier said than done, but still worth knowing.

Latest Batch

New This Month

Dig Deeper Here

Continue Reading

Thank you for reading about Ubuntu Install Chrome From Command Line. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home