• Skip to main content
  • Skip to primary sidebar
  • Deals
  • Features
  • Guides
  • Chromebooks
  • Videos
  • Podcast
  • More +
    • Reviews
    • Unboxing
    • Upcoming Devices
    • Chromebook Plus
    • Chrome
    • ChromeOS
    • Chrome OS Flex
  • Search
  • Sign Up
  • Log In
Chrome Unboxed – The Latest Chrome OS News

Chrome Unboxed - The Latest Chrome OS News

A Space for All Things Chrome, Google, and More!

  • Deals
  • Features
  • Guides
  • Chromebooks
  • Videos
  • Podcast
  • More +
    • Reviews
    • Unboxing
    • Upcoming Devices
    • Chromebook Plus
    • Chrome
    • ChromeOS
    • Chrome OS Flex
  • Search
  • Sign Up
  • Log In

How to fix the “add-apt-repository command not found” error in Crostini Linux

April 10, 2020 By Gabriel Brangers View Comments

Support our independent tech coverage. Chrome Unboxed is written by real people, for real people—not search algorithms. Join Chrome Unboxed Plus for just $2 a month to get an ad-free experience, access to our private Discord, and more. Learn more about membership here.
START FREE TRIAL (MONTHLY)START FREE TRIAL (ANNUAL)

As we continue our Command Line series, we’re always on the lookout for ways to try new software and alternative methods for installing Linux applications. One common instance that comes up frequently is installing software from a repository other than the default Debian Buster that comes with Crostini Linux on Chrome OS. If you’ve tinkered with Crostini, it’s possible that you have run into this same situation and the error that occurs when trying to add a secondary repository.

For our example, we will use the Debian Stretch repository since it is a trusted repo and we already know that it works well on Chrome OS. When Chrome OS was updated to Debian 10 (Buster) containers, the Debian 9 (Stretch) repos were removed. To add the main Debian Stretch repository, we will use the following command in the terminal.

Xremove ads
sudo apt-add-repository 'deb http://ftp.us.debian.org/debian stretch main contrib non-free'

Immediately, you will see that this method doesn’t work due to the missing software-properties-common package and the following error will print in the terminal. add-apt-repository command not found Don’t panic. It’s a simple fix. First, we will need to install the software-properties-common package and then, run the command to add the Debian Stretch repository.

sudo apt-get install -y software-properties-common
sudo apt-add-repository 'deb http://ftp.us.debian.org/debian stretch main contrib non-free'

Once the installation is complete and you have added the repository, run sudo apt update && sudo apt upgrade -y to make sure everything is up-to-date. (This is just an example. There are zero reasons to use the Stretch repository. You will find the same and sometimes newer versions of applications in the Buster repo.) Now that that’s finished, you can verify that your repo was added by using the cat command and viewing the sources.list file that housed the repos. Run the following command to verify that Stretch Main is now in that file.

Featured Videos

Xremove ads
cat /etc/apt/sources.list

If you are adding a repository to install a single application and don’t want to keep the repo in your sources list, you can remove it by adding the -r command to the apt-add command we used. That command looks like this:

sudo apt-add-repository -r 'deb http://ftp.us.debian.org/debian stretch main contrib non-free'

For some repositories, you may find yourself getting an error when trying to run apt update. There is a variety of reasons this can happen. Missing keys and “insecure sources” are common errors when adding a repo to Crostini. If you hit that wall, drop a comment below and we can address the specific repository together as the method for fixing that error can vary.

SUBSCRIBE TO UPSTREAM

Get Chrome Unboxed delivered straight to your inbox

Upstream is our flagship, curated newsletter with the top stories, most click-worthy deals, giveaways, and trending articles from Chrome Unboxed sent directly to your inbox a few times a week. Join 31,000+ subscribers.

Xremove ads
SUBSCRIBE HERE!

Filed Under: Apps, ChromeOS, Command Line, Crostini, Guides and How-To's

About Gabriel Brangers

Lover of all things coffee. Foodie for life. Passionate drummer, hobby guitar player, Web designer and proud Army Veteran. I have come to drink coffee and tell the world of all things Chrome. "Whatever you do, Carpe the heck out of that Diem" - Roman poet, Horace. Slightly paraphrased.

Primary Sidebar

Googlebook

Googlebook is launching with a hardware lineup unlike anything in laptop history

By Robby Payne
August 24, 2026

ASUS Googlebook CX9406 leak reveals early pricing, Core Ultra 5 and a 16GB RAM model

By Robby Payne
August 20, 2026

Googlebook leak reveals ‘Continue On’, Google’s built-in answer to Apple Handoff

By Robby Payne
August 19, 2026

Google makes it official: Googlebook press event set for September in NYC

By Robby Payne
August 18, 2026

Why I can still love Chromebooks and be thrilled for Googlebook’s future

By Robby Payne
August 18, 2026

More Googlebook

Xremove ads

Deals

The best Chromebook ever made is $350 off at Best Buy right now

By Robby Payne
August 21, 2026

The best Chromebook deals today

By Robby Payne
August 17, 2026

The excellent, powerful Acer Chromebook Plus Spin 514 is $150 off right now

By Robby Payne
August 12, 2026

Acer’s new Chromebook 315 is wildly affordable and points to the real future of Chromebooks

By Robby Payne
August 11, 2026

You can score the massively upgraded ASUS CX54 Chromebook Plus for just $599 right now

By Joseph Humphrey
July 28, 2026

More Deals

Xremove ads

Reviews

Acer Chromebook Plus Spin 514 Review: the best convertible you can buy [VIDEO]

By Robby Payne
July 1, 2026

Lenovo Chromebook Plus 2-in-1 Review: pretty great in a vacuum

By Robby Payne
April 23, 2026

My review after 6 weeks with the Lenovo Chromebook Plus 14 [VIDEO]

By Robby Payne
August 11, 2025

One week with the best small Android tablet you can buy, and I’m sold

By Robby Payne
May 9, 2025

Best Chromebooks of 2024 [VIDEO]

By Robby Payne
November 28, 2024

More Reviews

Xremove ads

TWITTER · FACEBOOK · INSTAGRAM · YOUTUBE · EMAIL · ABOUT

Copyright © 2026 · Chrome Unboxed · Chrome is a registered trademark of Google Inc.
We are participants in various affiliate advertising programs designed to provide a means for us to earn fees by linking to affiliated sites.

PRIVACY POLICY