• 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

Xremove ads

Deals

The touchscreen Lenovo Chromebook Slim 3 is a steal at under $200

By Robby Payne
March 16, 2026

Google TV Streamer and Remote held in front of a wall-mounted TV

The premium Google TV Streamer 4K is back down to $80

By Joseph Humphrey
March 16, 2026

The best Chromebook deals today

By Robby Payne
March 16, 2026

Pixel Buds Pro 2 running

I still love the Pixel Buds Pro 2 and they are $60 off right now

By Joseph Humphrey
March 13, 2026

The Lenovo Chromebook Slim 3 is the one to get, starting at just $139 right now

By Robby Payne
March 6, 2026

More Deals

Xremove ads

Reviews

Acer Chromebook Plus Spin 514 Review: Kompanio Ultra power in a convertible

By Robby Payne
December 24, 2025

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

Samsung Galaxy Chromebook Plus Review: Samsung is back! [VIDEO]

By Robby Payne
October 28, 2024

More Reviews

Xremove ads

Guides

This Chromebook trackpad shortcut is definitely not new, but is blowing my mind

By Robby Payne
March 11, 2024

How to reduce broadcast delay on YouTube TV to stop live spoilers

By Robby Payne
December 8, 2023

Windows PC keyboard and Chromebook

How to use a Windows keyboard with a Chromebook

By Joseph Humphrey
December 8, 2023

How reset and revert your Chromebook to the previous version of Chrome OS

By Robby Payne
November 29, 2023

My Chromebook Plus features disappeared: here’s how I fixed it

By Robby Payne
November 24, 2023

More Guides

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