Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Commands»(Resolved) add-apt-repository command not found – Ubuntu & Debian

    (Resolved) add-apt-repository command not found – Ubuntu & Debian

    By RahulNovember 26, 20192 Mins Read

    The command add-apt-repository is used for adding PPA reference to our Ubuntu or Debian systems. For newer installations, this command may not available in your system. Use the following commands to add this command utility in your system as per your operating systems.

    Advertisement

    Ubuntu & Debian Latest Version

    The latest version of Ubuntu 19.10, 18.04, 16.04 and Debian 10/9/8, add-apt-repository command utility is available under the software-properties-common package. So use the following command to install it.

    sudo apt-get install software-properties-common
    
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      gir1.2-goa-1.0 gir1.2-snapd-1
    Use 'apt autoremove' to remove them.
    The following NEW packages will be installed:
      software-properties-common
    0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
    Need to get 0 B/9,912 B of archives.
    After this operation, 197 kB of additional disk space will be used.
    Selecting previously unselected package software-properties-common.
    (Reading database ... 186717 files and directories currently installed.)
    Preparing to unpack .../software-properties-common_0.96.24.32.3_all.deb ...
    Unpacking software-properties-common (0.96.24.32.3) ...
    Processing triggers for man-db (2.8.3-2) ...
    Processing triggers for dbus (1.12.2-1ubuntu1) ...
    Setting up software-properties-common (0.96.24.32.3) ...
    

    Ubuntu 13.10/Debian 7 and Older Versions

    For the Ubuntu 13.10 Systems and Debian 7 (Wheezy) or its earlier versions, the add-apt-repository command is available under the python-software-properties package. Use the following command to install it.

    sudo apt-get install python-software-properties
    

    add-apt-repository apt
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Create a Directory If It Does Not Exist in Linux

    How to Save Command Output to a File in Linux

    Mastering the Strace Command in Linux: A Complete Guide

    View 8 Comments

    8 Comments

    1. bmallette on November 25, 2019 9:16 pm

      On a Raspberian Buster
      When I ran : sudo apt-get install software-properties-common
      I got that it was already intalled.
      I ran : sudo apt-get remove software-properties-common
      then sudo apt-get install software-properties-common

      it solved the add-apt-repository, it seems that it was not part of the original raspberian buster release

      Reply
    2. Rocco on July 18, 2019 5:57 pm

      sudo apt-get install python-software-common

      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      E: Unable to locate package python-software-common

      Reply
    3. Peter on December 6, 2018 5:42 am

      Thank you!

      Reply
    4. Spotter on January 4, 2018 7:34 pm

      did not help me, damn (

      Reply
      • Spotter on January 4, 2018 7:43 pm

        ……….no, it’s worked!)) its my own trouble was. my Synaptic was opened, that’s it.

        Reply
    5. amenokal on May 17, 2017 6:59 am

      nice. thank you

      Reply
    6. Cain on April 10, 2017 9:18 am

      worked 🙂

      Reply
    7. Aiman Tajuddin on March 3, 2017 12:17 pm

      sorry..it say unable to locate…i dont know how to use this…help me

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Configure Postfix to Use Gmail SMTP on Ubuntu & Debian
    • PHP Arrays: A Beginner’s Guide
    • Deploying Flask Application on Ubuntu (Apache+WSGI)
    • OpenSSL: Working with SSL Certificates, Private Keys and CSRs
    • How to Create and Read List in Python
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.