Website Vidya
Linux & ServersStep-by-Step Guide

How to Install Chromium on Ubuntu 24.04

Complete guide to install Chromium on Ubuntu 24.04 LTS using Snap and APT, with Wayland hardware acceleration and default browser settings.

RR
Rajesh RayLead Systems Educator
Published:
5 min read
PDF Cheat Sheet
How to Install Chromium on Ubuntu 24.04
AI Executive SummaryWebsiteVidya AI

5 min read

Complete guide to install Chromium on Ubuntu 24.04 LTS using Snap and APT, with Wayland hardware acceleration and default browser settings.

Key Highlights
  • Prerequisites and Supported Releases
  • Step 1: Understanding Chromium Packaging on Modern Ubuntu
  • Step 2: Installing Chromium via Snap (Recommended Default)
Grounded in full engineering runbookWebsiteVidya AI Engine

Software developers, privacy advocates, and Linux enthusiasts frequently prefer an unbranded, open-source web browsing engine that delivers cutting-edge web standard compliance without proprietary telemetry. When you install chromium on ubuntu 24.04, you deploy the core open-source browser project that powers modern web architectures, providing full compatibility with Chrome Web Store extensions, developer DevTools, and V8 JavaScript execution.

On Ubuntu 24.04 LTS, Canonical packages Chromium primarily as a sandboxed Snap package, which automates background security updates and isolates browser processes from the underlying host filesystem. This tutorial covers installation via Snap and APT transitional wrappers, explores native deb repository alternatives, and configures hardware acceleration flags for seamless Wayland desktop rendering.

Prerequisites and Supported Releases

This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat) & Ubuntu 22.04 LTS. The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.

Advertisement

Before proceeding, ensure you have the following requirements satisfied:

  • An active Ubuntu 24.04 LTS system with a graphical desktop environment (GNOME, KDE, XFCE).
  • A user account with active sudo administrative privileges.
  • An active Internet connection to download browser packages.
  • At least 500 MB of available disk storage.

Step 1: Understanding Chromium Packaging on Modern Ubuntu

Before running installation commands, it is helpful to understand how Canonical distributes Chromium on Ubuntu. If you execute sudo apt install chromium-browser, Ubuntu installs a transitional dummy package that automatically invokes snap install chromium.

This architectural shift ensures that Chromium receives rapid upstream security patches directly without waiting for Debian or Ubuntu distribution point release cycles.

AttributeOfficial Snap PackageNative DEB / PPA Alternative
MaintenanceMaintained directly by CanonicalCommunity maintained (e.g. Linux Mint / Debian upstream)
Security UpdatesAutomated background rolloutsStandard apt upgrade schedule
ConfinementStrict AppArmor / cgroups sandboxingTraditional unrestricted Linux process
File AccessAccess to ~/ and connected mountsDirect access to full local filesystem
Startup OverheadMinimal container init on cold bootInstant native execution

The Snap daemon creates all desktop shortcuts, registers MIME handlers, and downloads necessary sandboxing profiles automatically.

Advertisement
# Install Chromium from the stable channel
sudo snap install chromium

# Expected confirmation output:
# chromium 126.0.6478.126 from Canonical✓ installed

Step 3: Alternative Method — Installing Native DEB via Linux Mint PPA

If your workflow specifically prohibits Snap packages (e.g. automated Selenium testing grids in lightweight Docker containers), you can acquire native DEB packages from Linux Mint's official Debian package repository, which builds un-snapped Chromium binaries.

Configure the Linux Mint repository and pin its priority higher than standard Ubuntu repositories to prevent APT from overriding the package.

# Import the Linux Mint package signing key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL http://packages.linuxmint.com/mint.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/linuxmint.gpg > /dev/null

# Add the Linux Mint package repository
echo "deb [signed-by=/etc/apt/keyrings/linuxmint.gpg] http://packages.linuxmint.com virginia upstream" | sudo tee /etc/apt/sources.list.d/linuxmint.list

# Pin package priority so only Chromium is pulled from this repository
sudo tee /etc/apt/preferences.d/mint-chromium <<EOF
Package: chromium
Pin: origin packages.linuxmint.com
Pin-Priority: 900

Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: -1
EOF

# Update package index and install native DEB
sudo apt update
sudo apt install -y chromium

Step 4: Launching Chromium and Setting as Default Browser

You can launch Chromium by searching for Chromium Web Browser in the GNOME Application Dash, or by invoking the binary from your terminal.

To set Chromium as your operating system's default browser for all web links, use the xdg-settings command.

Advertisement
# Launch Chromium from the terminal
chromium &

# Set Chromium as the default system browser
xdg-settings set default-web-browser chromium_chromium.desktop

# Verify current default browser configuration
xdg-settings get default-web-browser

Step 5: Enabling Hardware Video Acceleration on Wayland

You can verify hardware acceleration inside Chromium by navigating to chrome://gpu in the address bar. Look for Video Decode: Hardware accelerated highlighted in green.

# Launch Chromium with native Wayland and VA-API video decoding flags
chromium --ozone-platform=wayland --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks

Step 6: Managing Removable Media and Printer Permissions for Snap

Because the Snap version operates within a security confinement sandbox, it cannot read files on external USB drives or access network printers by default.

Connect the necessary Snap interface plugs to grant permissions:

# Grant access to external USB drives and network mounts
sudo snap connect chromium:removable-media

# Grant access to CUPS printing services
sudo snap connect chromium:cups-control

Step 7: Completely Uninstalling Chromium from Ubuntu 24.04

If you need to remove Chromium, execute the command corresponding to your chosen installation method.

# If installed via Snap:
sudo snap remove chromium

# If installed via APT / Linux Mint repo:
sudo apt purge -y chromium
sudo rm -f /etc/apt/sources.list.d/linuxmint.list /etc/apt/preferences.d/mint-chromium /etc/apt/keyrings/linuxmint.gpg

# Remove local browsing profile data:
rm -rf ~/snap/chromium ~/.config/chromium

Troubleshooting and Common Errors

When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:

Chromium cannot access files in /mnt or /media.

Cause: Strict Snap confinement prevents reading non-home filesystem paths.

Resolution: Connect the removable-media plug: sudo snap connect chromium:removable-media.

sudo snap connect chromium:removable-media

Screen sharing does not work during Google Meet or Zoom calls on Wayland.

Cause: PipeWire desktop portal permissions are missing or WebRTC pipewire flags are disabled.

Resolution: Ensure xdg-desktop-portal-gnome is installed and launch Chromium with --enable-features=WebRTCPipeWireCapturer.

sudo apt install -y xdg-desktop-portal-gnome

Chromium fails to launch with 'Missing sandbox' error in root containers.

Cause: Running Chromium as root without unprivileged user namespaces.

Resolution: Never run browsers as root, or pass the --no-sandbox flag inside isolated test containers.

chromium --no-sandbox

Security Best Practices and Hardening

Chromium's Snap confinement provides an essential defense-in-depth security layer against zero-day browser exploits.

Avoid running Chromium with --no-sandbox on personal workstations, as disabling the sandbox exposes the host filesystem to remote malicious JavaScript payloads.

Periodically audit installed browser extensions and remove unverified extensions to protect sensitive browser sessions, cookies, and tokens from credential leakage.

Use isolated browser profile instances when conducting automated testing or security penetration assessments against staging web targets.

Deepen your Linux system administration skills with our related production-tested guides:

Authoritative References and Official Documentation

Frequently Asked Questions

Quick answers to common questions and configurations

4 FAQs
Yes. Chromium supports the Chrome Web Store out of the box. You can browse and install extensions, themes, and developer plugins exactly as you would in Google Chrome.
Maintaining separate deb packages for multiple supported Ubuntu releases requires enormous developer resources for every weekly browser point release. Snap packaging allows Canonical to publish a single, tested, sandboxed build across all Ubuntu versions simultaneously.
Yes. The official Canonical Chromium Snap package compiles support for wide multimedia codecs including H.264, AAC, and MP3, enabling seamless playback on YouTube, Netflix, and streaming platforms.
Open a private browsing window directly from your terminal by executing: chromium --incognito.
RR
Written byVerified Author

Rajesh Ray

I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.

SPAM-FREE MODERATED DISCOURSE

Join the Conversation & Perspective

Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.

AT
MP
JV
+2

No comments on this guide yet. Be the first to share your thoughts or ask a question!

Recommended Reading10 Guides

Related Technical Guides

Tested runbooks, server administration walkthroughs, and troubleshooting guides

Featured Infrastructure PartnerUp to 75% OFF + 3 Months Free

Supercharge Your Linux & Cloud Workloads with Hostinger

Deploy high-speed NVMe KVM VPS, Docker containers, and LiteSpeed-accelerated WordPress servers in under 60 seconds with full root access, dedicated IPv4, and 24/7 technical support.

Pure NVMe SSD StorageFull Root Access & SSHFree Domain & Unlimited SSL99.9% Uptime SLA
Plans from$2.99/mo
Claim Hostinger DealAffiliate link • Special discount applied at checkout