5

Updated to Kubuntu 22.04 today and i am facing a problem with Software Sources in Discover.

I am able to install and remove programs using discover.

enter image description here

My password is not being accepted. It was working properly in 21.10. Screen Shots are given below.

Initial Password Screen

When I enter the password it gives me this screen enter image description here

Found a way out by using the terminal and a sudo software-properties-kde and it worked. But not working from Discover.

Can someone help in rectifying this error. Thanks in advance.

Regards, Sriram

cipricus
  • 3,102
  • 1
  • 25
  • 70

3 Answers3

7

This should be reported as a bug.

Related to the problem that KDE su is used instead of the KDE Agent.

The problem is with the desktop-launcher file (/usr/share/applications/software-properties-qt.desktop), which contains the line

X-KDE-SubstituteUID=true

Open that in Kate and remove that line or change it to false.

In my case the Software Sources would still not open: it needed a further change of the Exec line, like so:

Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY software-properties-qt

In order to be able to find the Software Sources directly in the Application launchers without passing through Discover we need to change the line NoDisplay=true to false. In Tiled Menu:

enter image description here

cipricus
  • 3,102
  • 1
  • 25
  • 70
  • 1
    Thank you. I have reported it as a bug in both KDE as well as Ubuntu Bugs. – Sriram Rayadurg Apr 27 '22 at 06:40
  • @SriramRayadurg - Please click the v sign under the answer points to mark it as definitive – cipricus Apr 27 '22 at 18:09
  • @SriramRayadurg Could you also add the link to the bug, so we can vote for it? – Bruni Apr 28 '22 at 08:40
  • Thanks for the answer (I happen to have the same problem). Your adjustments do not seem to work for me though (I am trying to access software sources via muon). – Bruni Apr 28 '22 at 08:49
  • @Bruni - Please post a separate question asking about exactly what it doesn't work, link it here for me, and I could help. Software Sources should be accessible as a separate "app launcher" too, as seen in image. – cipricus Apr 28 '22 at 08:54
  • @cipricus Software-sources is accessible as a separate application (even without any adjustment to the .desktop file). However, it is not accessible via muon. I would rather not post a separate question. In fact I was posting a separate question, when I stumbled upon this one and the only difference was that I was using muon instead of discover and had one less screenshot.. – Bruni Apr 28 '22 at 08:59
  • @Bruni - Now I get it. But the Muon problem may be separate and thus worth a question. – cipricus Apr 28 '22 at 09:02
  • @cipricus Indeed, it might. Though I just realized another problem with discover (not seeing sources except snap, flatpak and firmware). Going to post this first. – Bruni Apr 28 '22 at 09:06
  • 1
    @Bruni - What I can notice on my system is that while my Discover triggers `software-properties-qt` and is depending on the settings in the corresponding desktop file, Muon relates to `usr/bin/software-properties-kde` and ignores setting in desktop file from `usr/share/applications`. – cipricus Apr 28 '22 at 09:08
  • good catch. Also I had read somewhere (I know not a good quote) that `usr/bin/software-properties-kde` is deprecated. – Bruni Apr 28 '22 at 09:10
  • @cipricus just in case you have an answer: https://askubuntu.com/questions/1405218/how-to-access-software-sources-repositories-from-discover-in-kde-22-04 – Bruni Apr 28 '22 at 09:17
  • @Bruni - it took me some time to grasp your question :) Oddly, I see "Software Sources" *twice* where you have none listed! – cipricus Apr 28 '22 at 09:32
  • 1
    "> SriramRayadurg, Could you also add the link to the bug, so we can vote for it?" @Bruni, we can see https://bugs.launchpad.net/ubuntu/+source/kdesu/+bug/1965439 and https://bugs.kde.org/show_bug.cgi?id=452532 – Ganton May 05 '22 at 22:27
  • As @cipricus writes above, this fixes the problem with Discover, but doesn't fix the problem with muon. In /usr/bin/software-properties-kde the test is specifically for uid=0, i.e. root, and I am too ignorant to risk changing anything there anything there. I don't understand Bruni's reference to "How to access software sources (repositories) from discover in KDE 22.04?" as it doesn't seem to apply to muon. I am opening a new question for muon as suggested above. – R B Aug 29 '22 at 13:49
  • 1
    This is a great solution, but I had to do the opposite of what is described here: >> In order to be able to find the Software Sources directly in the Application launchers without passing through Discover we need to change the line NoDisplay=false to true. << To access Software Sources directly, I had to change "NoDisplay" from "true" to "false". – R B Aug 29 '22 at 13:51
  • @RB - Oh sorry, that was an error in my post! Obviously, in order to "display" the thing, the "NoDisplay" has to be set to "false"! – cipricus Aug 30 '22 at 06:33
1

To reach that dialog, we can go to the command line and execute sudo -i software-properties-qt.

Additional information:

Ganton
  • 385
  • 2
  • 11
0

In a pinch, from within settings you could go to the driver manager section. It would open the appropriate window you need. "Software Sources" Then you can just pick the tab needed to select your desired input. in the event you don't feel comfortable manipulating configuration files.