AttributeError: module 'apt_pkg' has no attribute 'rewrite_section'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
High
|
Simon Poirier | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Simon Poirier | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Regression when applying a package profile through landscape on
ubuntu-19.10. Process will stack-trace.
* The issue is caused by removal of some obsolete methods from
python-apt.
* The backported patch replaces old rewrite_section() by
TagSection.
[Test Case]
* On ubuntu 19.10 (eoan) install landscape-client, run landscape-config,
and create a package profile on the account.
* check /var/log/
[Regression Potential]
* The change has already been published for ubuntu 20.04 and is verified.
* Patched callsites are only used by package profiles, which would limit
the effect of regressions.
* One possible regression could be in encoding errors,
as the new methods handle binary files directly instead of receiving
strings. This would imply an issue with python-apt.
[original description]
There has been an API change in focal/eoan for python3-apt >= 1.9, and the package changer now raises exceptions:
AttributeError: module 'apt_pkg' has no attribute 'rewrite_section'
Changed in landscape-client: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in landscape-client: | |
status: | Triaged → In Progress |
assignee: | nobody → Simon Poirier (simpoir) |
description: | updated |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in landscape-client (Ubuntu): | |
milestone: | none → eoan-updates |
Changed in landscape-client (Ubuntu Focal): | |
milestone: | eoan-updates → none |
status: | New → Fix Released |
Changed in landscape-client (Ubuntu Eoan): | |
status: | New → In Progress |
assignee: | nobody → Simon Poirier (simpoir) |
importance: | Undecided → Medium |
tags: | added: sts |
tags: | added: sts-sponsor-slashd |
Sponsored in Eoan
Thanks Simon !