Ubuntu Forums Archive Viewer

add-apt-repository Exception: NoDistroTemplate

Archived thread 1966730 from Ubuntu +1 (Quantal Quetzal) (Closed). Markdown source: Ubuntu_+1_(Quantal_Quetzal)_(Closed)/thread_1966730_add-apt-repository_Exception_NoDistroTemplate.md

Original URL About this archive
#1
[08:43:34] ahsl@AL-DESK01:[~]: sudo add-apt-repository ppa:nijel/gammu-testing
[sudo] password for ahsl: 
You are about to add the following PPA to your system:
 This repository contains latest testing versions of Gammu - <http://wammu.eu/gammu/>.
 More info: https://launchpad.net/~nijel/+archive/gammu-testing
Press [ENTER] to continue or ctrl-c to cancel adding it

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

I'm assuming this is because we are theoretically running QQ and the PPA goes up to Precise, right?

Regards, Effenberg

#2

Nope, it's because you haven't updated the distribution template, see http://ubuntuforums.org/showpost.php?p=11878025&postcount=39

I've not tested that one but my own and that works for ppa:s too.

#3

Bowmore said: Nope, it's because you haven't updated the distribution template, see

http://ubuntuforums.org/showpost.php?p=11878025&postcount=39

I've not tested that one but my own and that works for ppa:s too.

Thanks for the tip Bowmore, I hadn't seen that post. It's fixed.

Regards, Effenberg

#4

Shouldn't this be a sticky thread?

#5

toobuntu said: Shouldn't this be a sticky thread?

I put that up in the sudo command sticky. If you know of any other sudo commands that would fit for crash recovery then feel free to put them up there.

#6

This happens every release but it should be fixed now:

https://lists.ubuntu.com/archives/quantal-changes/2012-May/000287.html

#7

jbicha said: This happens every release but it should be fixed now:

https://lists.ubuntu.com/archives/quantal-changes/2012-May/000287.html

IIRC you were following up with eric5 since 12.04. Now that 12.10 is going python3 all the way I think eric( still eric4 in quantal) should be upgraded as well to eric5.?