python3-distupgrade used removed method ConfigParser.readfp

Bug #2059727 reported by Stephan Seitz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

Bug Description

Bug report was not created from the system where I discovered the bug. I discovered the bug in a Noble rescue session.

Noble switched Python system interpreter to Python 3.12 (https://docs.python.org/3/whatsnew/3.12.html#configparser). python3-distupgrade (https://packages.ubuntu.com/noble/python3-distupgrade) uses ConfigParser.readfp in /usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py . This will cause "Repair packages" in Noble rescue system to fail.

Suggested fix is to use ConfigParser.read_file as suggested in Python 3.12 release notes.

Related:
https://bugs.launchpad.net/hplip/+bug/2028001

Below automatically collected info is wrong. I encountered the bug in a Noble 24.04 system while trying to debug the missing libmtdev1t64 in https://packages.ubuntu.com/noble/libinput10 (I removed network-manager while resolving the package conflicts)

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: python3-distupgrade 1:23.10.14
ProcVersionSignature: Ubuntu 6.5.0-26.26-generic 6.5.13
Uname: Linux 6.5.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CrashReports: 640:1000:125:1352000:2024-03-28 15:50:05.644506454 +0100:2024-03-28 15:50:06.644506454 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_libexec_xdg-desktop-portal-kde.1000.crash
CurrentDesktop: KDE
Date: Thu Mar 28 20:39:59 2024
InstallationDate: Installed on 2021-05-16 (1047 days ago)
InstallationMedia: Xubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to mantic on 2024-03-28 (0 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
Stephan Seitz (thahamsta) wrote :
description: updated
summary: - python3-distutils used removed method ConfigParser.readfp
+ python3-distupgrade used removed method ConfigParser.readfp
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.