{"id":337,"date":"2018-10-17T09:32:04","date_gmt":"2018-10-17T09:32:04","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/solved-add-apt-repository-command-not-found-on-debian-ubuntu\/"},"modified":"2018-10-17T09:32:04","modified_gmt":"2018-10-17T09:32:04","slug":"solved-add-apt-repository-command-not-found-on-debian-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/solved-add-apt-repository-command-not-found-on-debian-ubuntu\/","title":{"rendered":"[Solved] add-apt-repository Command Not Found on Debian &amp; Ubuntu"},"content":{"rendered":"<p>Last updated October 8, 2018 By <a href=\"https:\/\/itsfoss.com\/author\/abhishek\/\">Abhishek Prakash<\/a> <a href=\"https:\/\/itsfoss.com\/add-apt-repository-command-not-found\/#comments\">3 Comments<\/a> <\/p>\n<p>&#xD;<\/p>\n<p><em>This quick tutorial shows you how to quickly fix the \u201cadd-apt-repository command not found\u201d error on Debian, Ubuntu and other Debian-based Linux distributions.<\/em><\/p>\n<p>One of the many ways to install software on <a href=\"https:\/\/www.ubuntu.com\/\" target=\"_blank\">Ubuntu<\/a> or <a href=\"https:\/\/www.debian.org\/\" target=\"_blank\">Debian<\/a> is to use PPA (<a href=\"https:\/\/launchpad.net\/ubuntu\/+ppas\" target=\"_blank\">Personal Package Archive<\/a>).<\/p>\n<p>If you want to add a new PPA repository, you\u2019ll have to use the add-apt-repository command in the following fashion:<\/p>\n<p>sudo add-apt-repository ppa:some\/ppa<\/p>\n<p>In Debian, elementary OS and sometimes on Ubuntu, you\u2019ll see the error that add-apt-repository command is missing.<\/p>\n<p>sudo: add-apt-repository: command not found<\/p>\n<p>Let\u2019s see how to fix this annoying error.<\/p>\n<h2>Fix add-apt-repository: command not found error<\/h2>\n<p>The error is simple. The package add-apt-repository is not installed on your system.<\/p>\n<p>But if you try to use sudo apt-get install add-apt-repository, it won\u2019t work.<\/p>\n<p>It\u2019s because add-apt-repository command is under the <a href=\"https:\/\/packages.debian.org\/sid\/admin\/software-properties-common\" target=\"_blank\">package software-properties-common<\/a> and you need to install this package in order to install add-apt-repository.<\/p>\n<p>So, open a terminal and use this command:<\/p>\n<p>sudo apt-get install software-properties-common<\/p>\n<p>The command output will be something like this:<\/p>\n<p>Reading package lists&#8230; Done<br \/>\nBuilding dependency tree<br \/>\nReading state information&#8230; Done<br \/>\nThe following NEW packages will be installed:<br \/>\n software-properties-common<br \/>\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br \/>\nNeed to get 9,912 B of archives.<br \/>\nAfter this operation, 197 kB of additional disk space will be used.<br \/>\nGet:1 http:\/\/us.archive.ubuntu.com\/ubuntu bionic-updates\/main amd64 software-properties-common all 0.96.24.32.5 [9,912 B]<br \/>\nFetched 9,912 B in 2s (5,685 B\/s)<br \/>\nSelecting previously unselected package software-properties-common.<br \/>\n(Reading database &#8230; 265950 files and directories currently installed.)<br \/>\nPreparing to unpack &#8230;\/software-properties-common_0.96.24.32.5_all.deb &#8230;<br \/>\nUnpacking software-properties-common (0.96.24.32.5) &#8230;<br \/>\nProcessing triggers for man-db (2.8.3-2) &#8230;<br \/>\nProcessing triggers for dbus (1.12.2-1ubuntu1) &#8230;<br \/>\nSetting up software-properties-common (0.96.24.32.5) &#8230;<\/p>\n<p>Once you have installed software-properties-common, you can now comfortably use add-apt-repository or apt-add-repository commands to add PPA.<\/p>\n<p>Note: If you see an error saying software-properties-common command not found, you should run sudo apt-get update and then try to install it again.<\/p>\n<p>I hope this quick tip helped you in fixing \u201cadd-apt-repository: command not found\u201d error on Ubuntu and other Debian-based Linux distributions.<\/p>\n<p>If you are still facing issues with PPA, let me know in the comment section. Additional suggestions, questions and a quick word of thanks are always welcome.<\/p>\n<p> &#xD;<br \/>\n <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/secure.gravatar.com\/avatar\/20749c268f5d3e4d2c785499eb6a17c0?s=70&amp;d=mm&amp;r=g\" width=\"70\" \/><\/p>\n<h4>About Abhishek Prakash<\/h4>\n<p>I am a professional software developer, and founder of It&#8217;s FOSS. I am an avid Linux lover and Open Source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries. I&#8217;m a huge fan of Agatha Christie&#8217;s work.<\/p>\n<p> <a href=\"https:\/\/itsfoss.com\/add-apt-repository-command-not-found\/\" target=\"_blank\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last updated October 8, 2018 By Abhishek Prakash 3 Comments &#xD; This quick tutorial shows you how to quickly fix the \u201cadd-apt-repository command not found\u201d error on Debian, Ubuntu and other Debian-based Linux distributions. One of the many ways to install software on Ubuntu or Debian is to use PPA (Personal Package Archive). If you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/solved-add-apt-repository-command-not-found-on-debian-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;[Solved] add-apt-repository Command Not Found on Debian &amp; Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":0,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}