Unable to open software-properties-gtk

If I go into gnome-software > menu > software repositories

Nothing happens.

If I try : software-properties-gtk

in the terminal, I get:

No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
ERROR:root:Cannot import UbuntuDrivers: No module named ‘UbuntuDrivers’
Traceback (most recent call last):
File “/usr/bin/software-properties-gtk”, line 101, in
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File “/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py”, line 109, in init
SoftwareProperties.init(self, options=options, datadir=datadir)
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 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for PureOS/green

Trying to purge and reinstall the package doesn’t work. I probably screwed up somewhere, would appreciate any help.

1 Like

I’m having the same issue right after a fresh install of PureOS and its update.

Seems to be a bug.

1 Like

Please report the bug to our issue tracker.

Prior to that, perform a full upgrade:

sudo apt update && sudo apt full-upgrade

Somebody reported it already: https://tracker.pureos.net/T660

sudo apt update && sudo apt full-upgrade

hasn’t solved it for me.

1 Like

Has anybody found any way to fix this? sudo apt update && sudo apt full-upgrade doesn’t fix it.

1 Like

I have this issue, too. Completely updated.