TechBuzzPro

How to Install a .deb File on a Chromebook Terminal

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can install a .deb file on a Chromebook by enabling the Linux development environment (Crostini), opening the Terminal app, and running sudo apt install ./filename.deb from the folder where the file is saved. This works on most Chromebooks from 2019 onward that support Linux apps. You do not need to enable developer mode or root the device; the Linux container is a supported, sandboxed feature. Before you start, make sure your Chromebook has enough free storage (at least a few gigabytes) and that you know the exact name of the .deb file you want to install.

What You'll Need

  • A Chromebook that supports the Linux development environment (most models from 2019 and later; check Settings > About ChromeOS > Additional details for a "Linux development environment" entry).
  • The .deb file you want to install, downloaded from the official source for that software.
  • An internet connection for the initial Linux setup and any dependencies.
  • At least 2–3 GB of free storage on the Chromebook.

Note that menu labels can differ slightly by ChromeOS version, device, or region, but the overall path is the same.

Step-by-Step

  1. Enable Linux on your Chromebook. Open Settings, then go to About ChromeOS > Developers (or search Settings for "Linux"). Select Turn on next to Linux development environment. Follow the on-screen prompts to choose a disk size (the default is usually fine) and wait for the setup to finish. This may take several minutes.
  2. Open the Terminal app. Once Linux is set up, a Terminal app appears in your launcher. Open it. You will see a command prompt ending with a $ sign.
  3. Locate your .deb file. Files you download in Chrome are saved to the Downloads folder. In the Terminal, type ls ~/Downloads and press Enter to list the files there. Confirm the exact filename of your .deb file, including capitalization and extension.
  4. Install the .deb file. Run the following command, replacing filename.deb with the actual name of your file:
    sudo apt install ./filename.deb
    The ./ prefix tells apt to treat the argument as a local file path rather than a package name. Press Enter. When prompted, type your Linux password (the one you set during Linux setup) and press Enter. Note that the password will not appear as you type; that is normal.
  5. Wait for installation to complete. apt will read the package, resolve dependencies from the repositories, and install the software. If it asks to confirm additional disk space, type Y and press Enter.
  6. Launch the app. Most installed Linux apps appear in the ChromeOS launcher under a "Linux apps" folder. You can also run the app from the Terminal by typing its command name.
  7. Clean up (optional). You can delete the .deb file from Downloads to save space. The installed software remains.

Common Mistakes

  • Omitting the ./ prefix. Running sudo apt install filename.deb without ./ makes apt look for a package by that name in the repositories, which fails. Always use ./filename.deb.
  • Wrong working directory. If the file is in Downloads, either run the command from within that folder or use the full path, e.g. sudo apt install ~/Downloads/filename.deb.
  • Typo in the filename. Linux filenames are case-sensitive. Copy the name exactly as shown by ls.
  • Using a .deb built for the wrong architecture. Most Chromebooks use 64-bit x86 or ARM. Check with uname -m and download the matching package.
  • Forgetting the password. The sudo password is the one you created for the Linux environment, not your Google account password.

Tips

  • Use sudo apt update before installing to refresh the package lists; this helps apt resolve dependencies correctly.
  • If a dependency is missing, apt usually names it. You can try sudo apt --fix-broken install to resolve common dependency issues.
  • Keep the .deb file until you confirm the app works, in case you need to reinstall.
  • Only download .deb files from the official website of the software. Avoid third-party package mirrors.
  • To remove the app later, use sudo apt remove packagename. You can find the package name with dpkg -l | grep keyword.

Troubleshooting

If the install fails, work through these checks in order:

  1. "Unable to locate package" or "No such file or directory". Confirm the filename and path. Run ls ~/Downloads again and copy the exact name. Make sure you included ./ or the full path.
  2. Dependency errors. Run sudo apt update, then retry the install. If apt reports missing dependencies, run sudo apt --fix-broken install and then retry.
  3. Permission denied. Ensure you are using sudo. If you are prompted for a password and it fails, you may need to reset the Linux container's password; this is done through the Terminal settings or by reinstalling Linux (which deletes Linux files and apps).
  4. Architecture mismatch. Check uname -m. If it shows aarch64, you need an ARM64 build; if x86_64, an AMD64 build. Download the correct version from the software's official site.
  5. Linux will not start. Restart the Chromebook. If the problem persists, go to Settings > About ChromeOS > Developers > Linux development environment and use the repair or remove options. Removing Linux deletes all Linux apps and files, so back up anything important first.

Frequently Asked Questions

Can I install any .deb file on a Chromebook?

You can install most .deb packages, but the app must be compatible with the Linux container's architecture and desktop environment. Some apps that require a full desktop session or specific hardware may not work.

Do I need developer mode to install .deb files?

No. The Linux development environment is a standard ChromeOS feature and does not require developer mode.

Where do I find the Terminal after enabling Linux?

The Terminal app appears in the ChromeOS launcher. You can also search for "Terminal" in the launcher.

How do I uninstall a .deb app?

Use sudo apt remove packagename in the Terminal. To find the package name, run dpkg -l | grep keyword.

Why does apt ask for a password?

Installing software requires administrator rights inside the Linux container. The password is the one you created when you first set up Linux, not your Google account password.

Can I double-click a .deb file to install it?

No. ChromeOS does not have a built-in .deb installer. You must use the Terminal with apt as described above.