[Bug 1902540] Re: hirsute fails on add-apt-repository

Christian Ehrhardt  1902540 at bugs.launchpad.net
Tue Nov 3 07:30:29 UTC 2020


Yeah still present for me as well in a new hirsute container of today :-/
Thanks for double checking as Bryce/Sergio as that is excluding a lot of caching/net-setup/... questions.


>From the debugging I know that the self-detect is right
self.codename == hirsute

But the list in self.sourceslist.matcher.templates does not contain a hirsute.
That comes from /usr/lib/python3/dist-packages/aptsources/sourceslist.py from src:python-apt.
Maybe the bug is over there and adding a task for that can help to trigger the right people (or there maybe is even a bug open already).

** Also affects: python-apt (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  hirsute fails on add-apt-repository

Status in python-apt package in Ubuntu:
  New
Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  On a fully updated hirsute add-apt-repository fails, example:

  root at h:~# sudo add-apt-repository ppa:ci-train-ppa-service/4321
  Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 330, in <module>
      addaptrepo = AddAptRepository()
    File "/usr/bin/add-apt-repository", line 35, in __init__
      self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
      raise NoDistroTemplateException(
  aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/hirsute

  The PPA seems not to matter (all trigger it) and if I manually add PPA
  sources list and GPG key it works. So maybe software-properties just
  needs to learn about hirsute?

  Or is there another components (like distro-info or such) that needs a
  bump for this to work?

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



More information about the foundations-bugs mailing list