[SRU] Dialog not opening after selecting "Other" for Ubuntu Software source

Bug #2122357 reported by Gabriel Ilie
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
High
Unassigned
Plucky
Fix Released
High
Unassigned
Questing
Fix Released
High
Unassigned

Bug Description

[Impact]

Users are unable to select alternative mirrors under Software Sources for Kubuntu, Lubuntu, and Ubuntu Studio which use software-properties-qt. As it turns out, this is because DialogMirror.py was never ported to Qt6.

[Test Plan]

Steps to reproduce.

1) Go to "Software Sources"
2) Go to "Ubuntu Software" tab
3) On the "Download from:" field select the option "Other..." in the dropdown.

Expected result: A dialog opens which allows selecting a mirror and mirror is actually selected and used.
Actual result: "Software Sources" tab freezes for ~1 second and the dialog is not opened.

[What problems could occur]

There may be more issues that could occur, such as other fields being incomplete, but this has been well-tested.

[Original Report Information]

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: software-properties-qt 0.111
Uname: Linux 6.16.3-061603-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Mon Sep 8 20:53:22 2025
InstallationDate: Installed on 2025-08-07 (32 days ago)
InstallationMedia: Kubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417)
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Gabriel Ilie (kyzz) wrote :
Revision history for this message
Gabriel Ilie (kyzz) wrote :

Running the app from the terminal yields the following errors when performing the step 3:

sudo software-properties-qt
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 472, in on_combobox_server_changed
    dialogue = DialogMirror(self.userinterface, self.datadir, self.distro, self.custom_mirrors)
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/DialogMirror.py", line 98, in __init__
    self.treeview.sortItems(0, Qt.AscendingOrder)
                               ^^^^^^^^^^^^^^^^^
AttributeError: type object 'Qt' has no attribute 'AscendingOrder'

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
Erich Eickmeyer (eeickmeyer) wrote :

Looks to be a field that was not properly ported to Qt6. I'll look into this when I get a chance (today is not good!).

Changed in software-properties (Ubuntu Plucky):
status: New → Confirmed
importance: Undecided → High
Changed in software-properties (Ubuntu Questing):
importance: Undecided → High
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

My suspicions were correct: we never ported DialogMirror.py to Qt6.

Changed in software-properties (Ubuntu Questing):
status: Confirmed → In Progress
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

I'd have a merge proposal ready, but git upload is being a pain.

description: updated
summary: - Dialog not opening after selecting "Other" for Ubuntu Software source
+ [SRU] Dialog not opening after selecting "Other" for Ubuntu Software
+ source
Changed in software-properties (Ubuntu Plucky):
status: Confirmed → Triaged
Gabriel Ilie (kyzz)
Changed in software-properties (Ubuntu Questing):
status: In Progress → Confirmed
status: Confirmed → In Progress
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

This should add the LP # to the changelog

Rik Mills (rikmills)
Changed in software-properties (Ubuntu Questing):
status: In Progress → Fix Committed
Changed in software-properties (Ubuntu Plucky):
status: Triaged → In Progress
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

And now for Plucky

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

This bug was fixed in the package software-properties - 0.113

---------------
software-properties (0.113) questing; urgency=medium

  * qt/DialogMirror.py: Port to Qt6 (LP: #2122357)

 -- Erich Eickmeyer <email address hidden> Wed, 10 Sep 2025 10:24:02 -0700

Changed in software-properties (Ubuntu Questing):
status: Fix Committed → Fix Released
Revision history for this message
Rik Mills (rikmills) wrote :

Uploaded to plucky SRU queue

Revision history for this message
Robie Basak (racb) wrote :

This was sponsored into Questing, but has somebody tested that it actually works in Questing, please? If not, please could you do that? Also:

> Expected result: A dialog opens which allows selecting a mirror.

Could you also please check that selecting a mirror actually works, ie. that a mirror is selected (presumably in the system apt configuration, such that "apt update" reports using the mirror and succeeds?) once the user has chosen one? Because that's the full user story, rather than just that the dialog appeared, and if it turns out to silently fail for example, then that is possibly worse than not working in a way the user at least can tell it didn't work.

I'll accept into plucky-proposed now though since the upload isn't affected, I want to save you a review iteration cycle, and it seems likely that it'll be fine. I would appreciate Questing and Plucky being tested for the full user story please before releasing this into Plucky though.

Minor comment (not worth a review iteration for): it'd be nice for the changelog to explain what we're fixing from their perspective, eg. "Fix apt mirror selection when using KDE/Qt".

Changed in software-properties (Ubuntu Plucky):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-plucky
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Gabriel, or anyone else affected,

Accepted software-properties into plucky-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.111.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-plucky to verification-done-plucky. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-plucky. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Gabriel Ilie (kyzz) wrote :

Hello @racb.
Tomorrow I should have some time to go over this. I am very new to Linux I hope I will be able to go over the steps and verify.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Robie,

I did the code fixes in Questing ang can tell you it actually does work. It's not compiled code, so I was able to do it on the fly. The changes include that. I was able to confirm that it actually works.

Revision history for this message
Robie Basak (racb) wrote :

Erich, that's useful as a check before uploading, but for SRU purposes we'd like the full user story tested with the final built binary please, and I'm additionally requesting that for Questing because it hasn't had any time to "bake" such that lack of natural bug reports can give us confidence in the full user story.

Therefore, please could you follow the full Test Plan for both Questing and Plucky, having enhanced it as I requested?

description: updated
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Sure, I probably wasn't clear in that I tested it in that regard. Updated test plan accordingly.

Regardless, here I go.

$ apt-cache policy software-properties-qt
software-properties-qt:
  Installed: 0.111
  Candidate: 0.111
  Version table:
     0.111.1 100
        100 http://us.archive.ubuntu.com/ubuntu plucky-proposed/universe amd64 Packages
        100 http://us.archive.ubuntu.com/ubuntu plucky-proposed/universe i386 Packages
 *** 0.111 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu plucky/universe i386 Packages
        100 /var/lib/dpkg/status

Test result: Window does not open, throws error in terminal.

$ apt-cache policy software-properties-qt
software-properties-qt:
  Installed: 0.111.1
  Candidate: 0.111.1
  Version table:
 *** 0.111.1 100
        100 http://us.archive.ubuntu.com/ubuntu plucky-proposed/universe amd64 Packages
        100 http://us.archive.ubuntu.com/ubuntu plucky-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     0.111 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu plucky/universe i386 Packages

Test:

 * Opening "Other..." dialog shows mirror selection.
 * Selecting "Select best server..." Opens a progress window.
 * After some churn, a mirror was selected. In my case, it gave "morrors.ocf.berkeley.edu".
 * Clicking on "Ok" changed the mirror to the above selection.
 * Upon close, was asked if I wanted to reload the software cache. I clicked "Reload" and it began an `apt update` in the background with a progress meter.

$ cat /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://mirrors.ocf.berkeley.edu/ubuntu/
Suites: plucky plucky-updates plucky-backports plucky-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: plucky-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

I'd say this was a success.

tags: added: verification-done verification-done-plucky
removed: verification-needed verification-needed-plucky
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.111.1

---------------
software-properties (0.111.1) plucky; urgency=medium

  * qt: Update DialogMirror.py for Qt6 (LP: #2122357)

 -- Erich Eickmeyer <email address hidden> Thu, 11 Sep 2025 12:00:49 -0700

Changed in software-properties (Ubuntu Plucky):
status: Fix Committed → Fix Released
Revision history for this message
Julian Andres Klode (juliank) wrote : Update Released

The verification of the Stable Release Update for software-properties has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.