[Bug 874329] Re: software-properties-gtk crashed with NoDistroTemplateException in get_sources(): Error: could not find a distribution template when Ubuntu.info is out of date

Oren Bar 874329 at bugs.launchpad.net
Sat Jul 14 11:31:43 UTC 2012


I had this problem, but the root cause was my 12.04 reporting itself as 12.10.
Although this report seem to indicate 12.04, I add this for reference.
Link to explanation and solution (to my problem):
http://askubuntu.com/a/135472/76950

-- 
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/874329

Title:
  software-properties-gtk crashed with NoDistroTemplateException in
  get_sources(): Error: could not find a distribution template when
  Ubuntu.info is out of date

Status in “software-properties” package in Ubuntu:
  Triaged
Status in “software-properties” package in Debian:
  Fix Released

Bug description:
  first "precise" i386 crash after having installed the available
  packages. Then this crash happen when i want to open Settings->Repo
  into synaptic: the dialog box dont open but get this crash.

  TEST CASE:
  1. Run the latest development release
  2. Edit the file /usr/share/python-apt/templates/Ubuntu.info and delete all the sections with and entry "ParentSuite=Precise"
  3. Open a terminal and run the following command
    $ software-properties-gtk

  EXPECTED RESULT
  The application starts correctly.
  Ideally it should display a message indicating that the repository information for the current release is out of date.

  CURRENT RESULT
  Traceback (most recent call last):
    File "/usr/bin/software-properties-gtk", line 104, in <module>
      app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 85, in __init__
      SoftwareProperties.__init__(self, options=options, datadir=datadir)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
      self.reload_sourceslist()
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 580, in reload_sourceslist
      self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 91, in get_sources
      raise NoDistroTemplateException("Error: could not find a "
  NoDistroTemplateException: Error: could not find a distribution template

  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: software-properties-gtk 0.81.10
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
  Uname: Linux 3.0.0-12-generic-pae i686
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu3
  Architecture: i386
  Date: Fri Oct 14 17:16:51 2011
  ExecutablePath: /usr/bin/software-properties-gtk
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk -n -t 54525989
  ProcEnviron:
   SHELL=/bin/bash
   LANG=fr_FR.UTF-8
   PATH=(custom, no user)
  PythonArgs: ['/usr/bin/software-properties-gtk', '-n', '-t', '54525989']
  SourcePackage: software-properties
  Title: software-properties-gtk crashed with NoDistroTemplateException in get_sources(): Error: could not find a distribution template
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: admin audio avahi avahi-autoipd crontab debian-tor fuse haldaemon klog libuuid lpadmin messagebus mythtv plugdev polkituser pulse root ssh ssl-cert syslog users voice

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




More information about the foundations-bugs mailing list