software-properties-qt Import Key FIle button does not work

Bug #1970120 reported by Raquel Montanana Grau
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned

Bug Description

Setps to recreate:

1) Open a terminal
2) sudo software-properties-qt
3) Go to Authentication and click on Import Key File

Expect: Opens dialog to import a key file
Actual: Dialog does not open, and the following traceback error appears on the console:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 723, in add_key_clicked
    url = KUrl.fromPath(home)
NameError: name 'KUrl' is not defined. Did you mean: 'url'?

Tags: jammy kubuntu
Revision history for this message
Raquel Montanana Grau (lusciousblue) wrote :

Using kubuntu 22.04
software-properties-qt version 0.99.22

tags: added: kubuntu
Revision history for this message
Jochen (hajoeg) wrote :

I can confirm the bug with some different behaviour:

1) The "Authentication Import key file..." dialog opens, a file can be selected but the key is not importet

2) Startet in a sudo terminal I do not get any messages

3) No other standard key is shown

4) "Other Software Add..." is also not importing sources

tested with:
22.04 Mate
software-properties-gtk 0.99.22
software-properties-gtk 0.99.22.1

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu Jammy):
status: New → Confirmed
Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Light Templar (lighttemplar) wrote :

It doesn't work neither even if you open it from Discover. It just doesn't show you error message.

Revision history for this message
Light Templar (lighttemplar) wrote :

I looked in: this is because of using deprecated KUrl and KFileDialog. Instead there should be QUrl and QFileDialog.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.