python3-distro-info on xenial breaks ubuntu-security-status

Bug #1878284 reported by David Coronel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Committed
Medium
Brian Murray

Bug Description

Installing python3-distro-info on Ubuntu 16.04 breaks the ubuntu-security-status script.

The script runs before I install python3-distro-info:

ubuntu@ip-172-31-14-142:~$ ./ubuntu-security-status --universe
473 packages installed on Ubuntu 16.04 LTS, of which:
  2 packages are from universe/multiverse
ansible python-selinux

Packages from universe (and multiverse) are provided from the official
Ubuntu archive and subject to patching via ESM.

Run 'apt-cache show ansible' to learn more about that specifc package.

But if I install python3-distro-info, it breaks:

ubuntu@ip-172-31-14-142:~$ sudo apt install python3-distro-info
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python3-distro-info
0 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
Need to get 8,072 B of archives.
After this operation, 48.1 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-distro-info all 0.14ubuntu0.1 [8,072 B]
Fetched 8,072 B in 0s (360 kB/s)
Selecting previously unselected package python3-distro-info.
(Reading database ... 53590 in and directories currently installed.)
Preparing to unpack .../python3-distro-info_0.14ubuntu0.1_all.deb ...
Unpacking python3-distro-info (0.14ubuntu0.1) ...
Setting up python3-distro-info (0.14ubuntu0.1) ...

ubuntu@ip-172-31-14-142:~$ ./ubuntu-security-status --universe
Traceback (most recent call last):
  File "./ubuntu-security-status", line 224, in <module>
    for r in di._releases if r.series == codename][0]
AttributeError: 'UbuntuDistroInfo' object has no attribute '_releases'

Christian Reis (kiko)
affects: update-manager (Ubuntu) → update-manager-core (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :

update-manager-core is a binary package provided by the source package ubuntu-manager in all supported releases of Ubuntu.

affects: update-manager-core (Ubuntu) → update-manager (Ubuntu)
Changed in update-manager (Ubuntu):
status: New → Fix Committed
assignee: nobody → Brian Murray (brian-murray)
importance: Undecided → Medium
tags: added: id-5ec2d02e1edc1e7ba8d882e8
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.