Page MenuHomePureOS Tracker

"Software & Updates" (preinstalled graphical APT repositories editor tool) doesn't start
Closed, ResolvedPublic

Description

This is what you get when trying to launch "software-properties-gtk", as a regular user (as it should be):

jeff@PureOS-vm:~$ software-properties-gtk
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 101, in <module>
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/n/a

As a super-user, from a terminal within a normal user session with Wayland, you get:

root@PureOS-vm:/home/jeff# software-properties-gtk
No protocol specified
** (software-properties-gtk:2029): WARNING **: Could not open X display
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 101, in <module>
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/n/a
root@PureOS-vm:/home/jeff#

Event Timeline

jeff created this task.Jul 24 2017, 14:17
mak closed this task as Resolved.Jul 24 2017, 14:29

This is resolved now, please ensure you update to python-apt 1.4.0~beta3+pureos1 (should be available via regular updates soonish).
If the issue is not fixed, please feel free to reopen the bug.

jeff reopened this task as Open.Jul 24 2017, 15:49

Apparently not fixed as you still get the same issue after applying the latest updates.

mak added a comment.Jul 24 2017, 16:05

You also need to have base-files >= 9.6pureos2 to make this work. All the necessary changes should happen via a regular update.

mak closed this task as Resolved.Jul 24 2017, 16:05
mladen added a subscriber: mladen.Jul 24 2017, 16:12

I can confirm that it has been fixed now.