Jump to content


How to Fix Error sudo: add-apt-repository: command not found

  • Please log in to reply
1 reply to this topic

#1 jim


    Advanced Member

  • Administrators
  • 3,385 posts

Posted 18 December 2014 - 05:51 AM


To fix the error sudo: add-apt-repository: command not found is quite simple.

I got this error while I was trying to add a PPA at school, on a Ubuntu 12.04 LTS .

To fix this error, you have to install the software-properties-common:

Code: [Select]

$ sudo apt-get install software-properties-common python-software-properties

  • LS-Support-12 likes this

#2 camdesign



  • Members
  • Pip
  • 6 posts

Posted 08 October 2015 - 04:57 AM

that off-course work but whenever you try to use it, you get following error:


Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 91, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Linaro/trusty
What is the fix? I am using ubuntu 14 image on pcduino3

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users