The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • A Visitors Guide to Pittsburgh (PA), United States

  • A Visitors Guide to Colorado Springs (CO), United States

  • 5 Pairs of Shoes That Will Instantly Step Your Shoe Game Up

  • Radiant Youthful Skin is the Perfect Christmas Gift

  • Give Your Loved One the Gift of Youthful, Radiant Skin this Christmas

  • Give Your Loved One the Gift of a Restful Night Sleep this Christmas

  • Nex Playground’s Holiday Sales Bring Active Play Indoors This Seaso

  • A Visitors Guide to Louisville (KY), United States

  • A Visitor’s Guide to Nashville-Davidson (TN), United States

  • A Visitors Guide to Portland (OR), United States

Assistive Technology
Home›Assistive Technology›How to Fix the “add-apt-repository: command not found” Error on Ubuntu

How to Fix the “add-apt-repository: command not found” Error on Ubuntu

By Matthew Lynch
June 15, 2023
0
Spread the love

If you’re an Ubuntu user, you may have encountered the “add-apt-repository: command not found” error during an attempt to add a new repository to your system. This error occurs when the add-apt-repository command is not available in your system. Fortunately, this error can be fixed using a few simple steps.

  1. Install software-properties-common

The add-apt-repository command is a part of the software-properties-common package. Therefore, the first step is to make sure that this package is installed on your system.

To install software-properties-common, open a terminal window and type the following command:

“`

sudo apt-get update

sudo apt-get install software-properties-common

“`

Once the package is installed, you can try running the add-apt-repository command again. If the error persists, proceed to the next step.

  1. Install Python-software-properties

In some cases, the “add-apt-repository: command not found” error can also occur due to the absence of the python-software-properties package.

To install python-software-properties, open a terminal window and type the following command:

“`

sudo apt-get update

sudo apt-get install python-software-properties

“`

Once the package is installed, try running the add-apt-repository command again. The error should be resolved.

  1. Update Your System Path

If the first two methods don’t solve the issue, you can try adding the software path containing the add-apt-repository script to your system path.

Open the terminal and type:

“`

echo $PATH

“`

This command will list the system paths currently used.

Visit `/usr/lib/command-not-found` folder path in the terminal. Here, type `nano` command, followed by `command_not_found` file name.

“`

cd /usr/lib/command-not-found

sudo nano command_not_found

“`

Inside the file, locate the following line of code:

“`python

sys.stderr.write(_(“Can’t find ‘%s’

“`

Add the following line below this code:

“`

os.system(‘echo “+” >>/tmp/local-path’);

os.system(‘echo “export PATH=$PATH:/usr/sbin” >>/tmp/local-path’);

“`

This will add a new path to the default system path.

Once done, save the file, and exit.

Now type the command to update your system path:

“`

source /tmp/local-path

“`

Finally, try running the add-apt-repository command again. The error should be resolved.

Previous Article

How to Reverse or Mirror Text in ...

Next Article

Oddly Satisfying Smartphone Apps You Can Play ...

Matthew Lynch

Related articles More from author

  • Assistive Technology

    How to Find the Default IP Address of a Belkin Router

    June 15, 2023
    By Matthew Lynch
  • Assistive Technology

    How to Fix the Spotify Code 4 Connection Error in Windows 10 & 11

    June 23, 2023
    By Matthew Lynch
  • Assistive Technology

    Is the Mail App Not Syncing on Windows? Here How to Fix it

    September 30, 2024
    By Matthew Lynch
  • Assistive Technology

    How to Use the iPad Dock In iOS 12 and Up

    June 14, 2023
    By Matthew Lynch
  • Assistive Technology

    A Beginner’s Guide to Using the Mac Terminal

    June 14, 2023
    By Matthew Lynch
  • Assistive Technology

    How to Install Windows on Steam Deck

    June 10, 2023
    By Matthew Lynch

Search

Login & Registration

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2025 Matthew Lynch. All rights reserved.