Comment 5 for bug 1291678

Revision history for this message
randy (rfunderburk39) wrote :

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.