Error: could not find a distribution template for Kali/kali-rolling [duplicate]

转载请注明出处:https://blog.csdn.net/l1028386804/article/details/84033387

问题重现:

命令行输入:

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

问题如下:

# add-apt-repository ppa:yubico/stable && sudo apt-get update
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in 
    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
# 

解决方案:

vim /etc/apt/source.list

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

 

你可能感兴趣的:(Kali)