I don't know exactly what seems to be the cause of this issue since it used to work fine after a new install. I've added some PPA until one day (must have done something, but I don't know what!) it just stopped working. This is what I do:
I add any new PPA source (for instance):
Code: Select all
sudo add-apt-repository ppa:satyajit-happy/themes
Code: Select all
You are about to add the following PPA to your system:
Themes by Satya
This PPA contains various themes for Gnome 3, Gnome Shell etc.
More info: https://launchpad.net/~satyajit-happy/+archive/themes
Press ENTER to continue or ctrl-c to cancel adding it
Code: Select all
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 98, 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 580, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 91, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
The funny thing is that I can't even access the Repositories via Synaptic GUI. I just get a weird message that says "Repositories have changed" and it only allows me to reload the sources and retrieve any new update, but I can't actually get to the sources dialog window to modify stuff! Really strange.
The only way I've found I can get to the view the sources list in a GUI is using Ubuntu Tweak tool, which I don't really like. I think it messes things up a bit. I prefer good ol' Synaptic!
Anyway, the reality is that I've lost sources functionality is messed up and I can't pin-point where the problem is.
By the way, I'm on Mint 12 "Lisa".
Could somebody please give me some advice? Thanks.