[Bug 1312673] Re: software-properties-gtk crashed with aptsources.distro.NoDistroTemplateException in get_sources(): Error: could not find a distribution template for Ubuntu/utopic

John Russell 1312673 at bugs.launchpad.net
Tue Nov 22 11:04:14 UTC 2016


Just upgraded to Yakkety amd64, changed 3rd party sources to Yakkety, updated software and software-properties-gtk returns the error:
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 101, 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 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/zesty

There is no Zesty in my sources but /etc/lsb-release is: 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu Zesty Zapus (development branch)"

So I edited it:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"

And Software & Updates is working again.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1312673

Title:
  software-properties-gtk crashed with
  aptsources.distro.NoDistroTemplateException in get_sources(): Error:
  could not find a distribution template for Ubuntu/utopic

Status in software-properties package in Ubuntu:
  Fix Released

Bug description:
  lsb_release -rd
  Description:    Ubuntu Utopic Unicorn (development branch)
  Release:        14.10

  
  apt-cache policy software-properties-gtk 
  software-properties-gtk:
    Installed: 0.92.37
    Candidate: 0.92.37
    Version table:
   *** 0.92.37 0
          500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
          100 /var/lib/dpkg/status
       0.92.36 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

  ProblemType: Crash
  DistroRelease: Ubuntu 14.10
  Package: software-properties-gtk 0.92.37
  Uname: Linux 3.14.0-999-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: amd64
  Date: Fri Apr 25 19:27:37 2014
  ExecutablePath: /usr/bin/software-properties-gtk
  InstallationDate: Installed on 2012-09-30 (572 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.1)
  InterpreterPath: /usr/bin/python3.4
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/software-properties-gtk --open-tab 2 --toplevel 62914567
  PythonArgs: ['/usr/bin/software-properties-gtk', '--open-tab', '2', '--toplevel', '62914567']
  SourcePackage: software-properties
  Title: software-properties-gtk crashed with aptsources.distro.NoDistroTemplateException in get_sources(): Error: could not find a distribution template for Ubuntu/utopic
  UpgradeStatus: Upgraded to utopic on 2013-11-10 (165 days ago)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1312673/+subscriptions



More information about the foundations-bugs mailing list