I realize this is an old thread, but currently receiving the same error:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 91, 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 Ubuntu/n/a
Command line lsb_release -a reports:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
But I have "Elementary OS" installed. I'm not sure how this occurred but need to correct the problem. Because I am unable to add a new repository.
I also do if this is posted in the wrong place. Thank you for any assistance.
I realize this is an old thread, but currently receiving the same error:
Traceback (most recent call last): add-apt- repository" , line 91, in <module> ies(options= options) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 109, in __init__ reload_ sourceslist( ) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 599, in reload_sourceslist distro. get_sources( self.sourceslis t) python3/ dist-packages/ aptsources/ distro. py", line 89, in get_sources distro. NoDistroTemplat eException: Error: could not find a distribution template for Ubuntu/n/a
File "/usr/bin/
sp = SoftwarePropert
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
(self.id, self.codename))
aptsources.
Command line lsb_release -a reports:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
But I have "Elementary OS" installed. I'm not sure how this occurred but need to correct the problem. Because I am unable to add a new repository.
I also do if this is posted in the wrong place. Thank you for any assistance.