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

1218 단어 Kali
전재: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 

좋은 웹페이지 즐겨찾기