I'm currently facing this issue with add-apt-repository
. Whenever I try to do anything (adding or even removing repos), I get this error:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 108, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 118, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 613, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Elementary/next
Note that I am currently running Ubuntu 20.04, yet the error says something about Elementary OS.
I already looked for possible solutions (like this one with ppa-purge
as well as some others), but none of them worked out.
Right now, I cannot add any repos to apt, which is super annoying.
Thanks in advance for your help!
sudo apt update
– user535733 Sep 26 '20 at 15:06