Every cycle python-apt breaks until updated for the new distro codename

Bug #1902538 reported by joelw135
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
New
Undecided
Unassigned
python-apt (Ubuntu)
Fix Committed
High
Unassigned
software-properties (Ubuntu)
Invalid
High
Unassigned

Bug Description

The problem is currently happening in hirsute (fixed with the python-apt in proposed, software-properties fails to start due a python-apt error

  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 605, in reload_sourceslist
    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

Could we try to handle the missing codename in a way that doesn't make python-apt users blow up every cycle until we play catching up?

Revision history for this message
joelw135 (joel-waxman) wrote :
Revision history for this message
joelw135 (joel-waxman) wrote :
joelw135 (joel-waxman)
description: updated
Revision history for this message
Norbert (nrbrtx) wrote :

Please run `apport-collect 1902538` on this system.

joelw135 (joel-waxman)
description: updated
Norbert (nrbrtx)
tags: added: hirsute
Revision history for this message
joelw135 (joel-waxman) wrote :

@Norbert I ran apport-collect 1902538 but it said no more information added.

Revision history for this message
Norbert (nrbrtx) wrote :

Launching from the terminal gives the following output:

```
$ software-properties-gtk
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 154, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 111, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 605, in reload_sourceslist
    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

```

Revision history for this message
joelw135 (joel-waxman) wrote :

@Norber Hopefully this can be resolved soon. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue should be fixed with this update

https://launchpad.net/ubuntu/+source/python-apt/2.1.3ubuntu3

it does sound like we should do better than having software-properties bail out every start of cycle until python-apt is updated, I'm going to repurpose the bug for that issue

Changed in software-properties (Ubuntu):
status: Confirmed → Invalid
importance: Undecided → High
Changed in python-apt (Ubuntu):
importance: Undecided → High
status: New → Fix Committed
summary: - Ubuntu Mate 21.04 Software & Updates fails to run
+ Every cycle python-apt breaks until updated for the new distro codename
description: updated
Changed in python-apt (Ubuntu):
status: Fix Committed → Confirmed
tags: added: rls-hh-incoming
Revision history for this message
corrado venturini (corradoventu) wrote :

Same problem on Ubuntu installed from Ubuntu 21.04 "Hirsute Hippo" - Alpha amd64 (20201104)

Revision history for this message
Julian Andres Klode (juliank) wrote :

Dupe of 1727470. FWIW, python-apt 2.1.15 does not hard code codenames anymore, so won't have this issue.

Changed in python-apt (Ubuntu):
status: Confirmed → Invalid
status: Invalid → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.