Public bug reported: On Lubuntu 25.04, when I launch “Software & Updates” (software- properties-qt) under PyQt6/Qt6, the mirror-selection dialog immediately crashes with Python AttributeError messages. This prevents me from changing my download mirror in the GUI.
Steps to reproduce: Install Lubuntu 25.04 and ensure software-properties-qt is at version 0.111. Install PyQt6 (e.g. sudo apt install python3-pyqt6). Run sudo software-properties-qt from a terminal. Observe the traceback: pgsql Copy Edit AttributeError: type object 'Qt' has no attribute 'AscendingOrder' followed by similar errors for MatchExactly, WindowModal, BlockingQueuedConnection, etc. Actual behavior: The tool crashes before showing any mirror options, printing a Python traceback about missing Qt enum attributes. Expected behavior: The mirror-selection dialog should open normally, list available download servers, allow me to sort and select one, and then reload the package lists. Environment: Lubuntu 25.04 (AMD64) software-properties-qt 0.111 Python 3.12 PyQt6 / Qt 6.5 Regression: Worked correctly under PyQt5/Qt5 in earlier Ubuntu/Lubuntu releases. Workaround: I manually edited DialogMirror.py to replace old enum references (Qt.AscendingOrder, Qt.MatchExactly, etc.) with the new Qt6 scoped enums (Qt.SortOrder.AscendingOrder, Qt.MatchFlag.MatchExactly, etc.), plus added the missing PyQt6.QtWidgets imports. Please update the Ubuntu package so that software-properties-qt is compatible out of the box with PyQt6/Qt6. ProblemType: Bug DistroRelease: Ubuntu 25.04 Package: software-properties-qt 0.111 [modified: usr/lib/python3/dist-packages/softwareproperties/qt/DialogMirror.py] ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0 Uname: Linux 6.14.0-15-generic x86_64 ApportVersion: 2.32.0-0ubuntu5 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Fri Apr 25 09:11:35 2025 InstallationDate: Installed on 2025-04-25 (0 days ago) InstallationMedia: Lubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417) PackageArchitecture: all SourcePackage: software-properties UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: software-properties (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug plucky ** Patch added: "dialog-mirror-qt6-enums.patch Update DialogMirror.py to use Qt6 scoped enums: - Qt.SortOrder.AscendingOrder - Qt.MatchFlag.MatchExactly | Qt.MatchFlag.MatchRecursive - Qt.WindowModality.WindowModal - Qt.ConnectionType.BlockingQueuedConnection - QAbstractItemView.ScrollHint.PositionAtCenter Also import the required PyQt6.QtWidgets classes." https://bugs.launchpad.net/bugs/2109305/+attachment/5874092/+files/fix-Qt6-enums-in-DialogMirror.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2109305 Title: migrate old Qt.Foo names to Qt.Enum.Foo for PyQt6 compatibility To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2109305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs