[Bug 1698704] Re: NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/zesty

Julian Andres Klode julian.klode at gmail.com
Mon Jun 19 08:02:52 UTC 2017


Templates are stored in python-apt-common in /use/share/python-apt, in
an Ubuntu.info file. Which version do you have installed? The version
shipped in zesty does include the zesty template.

** Changed in: apt (Ubuntu)
       Status: New => Incomplete

** Package changed: apt (Ubuntu) => python-apt (Ubuntu)

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

Title:
  NoDistroTemplateException: Error: could not find a distribution
  template for Ubuntu/zesty

Status in python-apt package in Ubuntu:
  Incomplete

Bug description:
  I'm trying to get GCC 7 on a machine to test C++17 and std::byte.
  According to https://askubuntu.com/questions/859256/how-to-install-
  gcc-7-or-clang-4-0:

  $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 95, in <module>
      sp = SoftwareProperties(options=options)
    File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 114, in __init__
      self.reload_sourceslist()
    File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 607, 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

  **********

  $ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu Zesty Zapus (development branch)
  Release:        17.04
  Codename:       zesty

  $ uname -a
  Linux goldmont 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1698704/+subscriptions



More information about the foundations-bugs mailing list