Results 1 to 4 of 4

Thread: Adding PPA - Not working

  1. #1
    Join Date
    2013-Mar
    Posts
    1

    Adding PPA - Not working

    I have been trying for hours to get apt-add-repository to work properly but had no success adding different ppas. (installed python-software-properties). I always get the following error:

    Exception:
    Code:
    Traceback (most recent call last):
      File "/usr/bin/add-apt-repository", line 160, in <module>
        sp = SoftwareProperties(options=options)
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
        self.reload_sourceslist()
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
        self.distro.get_sources(self.sourceslist)    
      File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
        raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    Already spotted the exact same problem @kali linux bug report page. Maybe somebody got an solution

  2. #2
    Join Date
    2013-Mar
    Posts
    29
    Please let me know if you ever get this working.

    I was also trying to figure out how to do this. People keep referring to the /etc/apt/sources.list file, but this does not explain to me how to add "ppa:<whatever>" . Several guides out there, especially when looking at linux theme sites, refer to "add-apt-repository ppa:<something>" but even after installing python libraries and stuff, the error you provided is the same thing I get when trying to use the command.

  3. #3

    apt-get install python-software-properties led to error

    Quote Originally Posted by altjx View Post
    Please let me know if you ever get this working.

    I was also trying to figure out how to do this. People keep referring to the /etc/apt/sources.list file, but this does not explain to me how to add "ppa:<whatever>" . Several guides out there, especially when looking at linux theme sites, refer to "add-apt-repository ppa:<something>" but even after installing python libraries and stuff, the error you provided is the same thing I get when trying to use the command.
    I am versed in cli; and linux for that matter... but I have ran into the same error.

    ##
    apt-add-repository ppa:rumpshake/boomboom/zoomzoom
    You are about to add the following PPA to your system:

    More info: https://launchpad.net/lookintothehole/which/thebrown/
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Traceback (most recent call last):
    File "/usr/bin/apt-add-repository", line 160, in <module>
    sp = SoftwareProperties(options=options)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    ##

    A moth in the wires...?

  4. #4
    Join Date
    2016-Oct
    Posts
    1
    I had the same issue described above after downloading an unofficial apt-add-repository script (I have software-properties-common installed as well);

    sudo apt-add-repository ppa:cactus/alsocactus

    Traceback (most recent call last):
    File "/usr/bin/apt-add-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
    File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
    File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.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 Kali/kali-rolling

    To fix my issue I double checked that the apt-add-repository script was configured correctly and had execute permissions in /usr/sbin/
    (# chmod +x apt-add-repository)

    then removed lsb-release and updated

    # gksudo gedit /etc/lsb-release
    # rm /etc/lsb-release

    # apt-get update

Similar Threads

  1. adding key to apt-key
    By soberbender in forum General Archive
    Replies: 0
    Last Post: 2020-07-25, 09:18
  2. Adding a RTC
    By RChadwick in forum ARM Archive
    Replies: 2
    Last Post: 2019-01-31, 19:39
  3. Adding Printer
    By sincity in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2018-01-04, 00:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •