Monday , September 16 2019
Home / Kali-Linux / Fix Kali-Linux Error / Alternatif Fix Error add-apt-repository

Alternatif Fix Error add-apt-repository

Descryption

Kali Version :
Error type: Error add-apt-repository

Error Message

[text]Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 160, in
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[/text]

Fix Step:

[sociallocker]
  1. gedit /etc/lsb-release
  2. Tambahkan script ini ke file lsb-release [text]DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=12.04
    DISTRIB_CODENAME=precise
    DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"[/text]
  3. Save & Exit
[/sociallocker]

Refrence :

http://indonesianbacktrack.or.id/forum/Thread-Alternatif-Fix-Error-add-apt-repository