Software & Updates fails to start ("aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for PureOS/green")
Open, HighPublic

Description

mladen@Librem13:~$ 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/green
mladen created this task.Feb 24 2019, 6:04 PM
chris.lamb changed the title from "Software & Updates cannot start" to "Software & Updates fails to start ("aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for PureOS/green")".Feb 24 2019, 6:09 PM

Software and Updates starts, it just fails to find a distribution template for PureOS

Wayne added a subscriber: Wayne.Mar 6 2019, 8:05 PM

I believe this is the same problem as T660. In my case, this application does not launch. Fortunately, I do not use it very much.

mak added a comment.Mar 6 2019, 8:29 PM

Grrr, this means a distro patch to python-qpt got reverted in PureOS somehow.
I will have a look, thanks for the direct bug assignment!

I was commenting on a PureOS forum topic, and I discovered the same error when using Software->left application icon->Software Repositories. My system log file displayed the above stack.

I assume Software uses the same utility to find the repositories. This is probably not a revelation, but it is another data point.

Add Comment