1

This question is an exact duplicate of:

Trying to follow Enabling the Yubico PPA on Ubuntu : Yubico Support, by executing:

add-apt-repository ppa:yubico/stable && sudo apt-get update

yet, getting following message:

# add-apt-repository ppa:yubico/stable && sudo apt-get update
Traceback (most recent call last):
  File "/usr/bin/add-apt-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 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling
# 

marked as duplicate by Rui F Ribeiro, msp9011, Sparhawk, schily, steve Aug 21 '18 at 9:42

This question was marked as an exact duplicate of an existing question.

2

add-apt-repository doesn't appear to know how to deal with Kali. That's what this line says about it:

aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling

To add this you'll have to add the PPA by hand if you truly want to set this up. This means getting the appropriate sources. If you go to this URL you can use the pull down to get a rough idea of what the /etc/apt/sources.list entries look like for the different versions of Ubuntu:

For Ubuntu 18.10:

deb http://ppa.launchpad.net/yubico/stable/ubuntu cosmic main 
deb-src http://ppa.launchpad.net/yubico/stable/ubuntu cosmic main 

For Kali you'll likely have to change these.

References

  • 1
    And then after following this advice, for this and other packages, OPs might hit on rpm post/pre-install scripts checking the distribution name and not knowing kali, dangling dependencies and/or things that won't automagically compile when installing, as PPA for Ubuntu is being (ab)used. The better advice here is if you are not sysadmin/developer inclined, is to use Ubuntu PPAs in Ubuntu and not in Kali. Or asking for that feature on their forums, they love to mix different incompatible packages. – Rui F Ribeiro Aug 21 '18 at 7:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.