I'm running into what seems to be a simple problem that is driving me crazy.
I've done a clean install of Kubuntu 20.04. Everything is working fine locally on the machine, but my primary use case is running via remote desktop with xrdp. I've done this many times before, and on many machines.
In this case, I am getting the very common popup for org.freedesktop.packagekit.system-sources-refresh, but only running over RDP.
The first thing that I did was to create a 46-allow-update-repo.pkla file in /etc/polkit-1/localauthority/50-local.d with the following contents:
[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes
That had no effect on the behavior.
As a brute force attempt to get around the problem, I created a custom rule in /etc/polkit-1/rules.d/49-allow-rdp-system-refresh.rules with the following content. Note that this was just for troubleshooting; I don't want to run the system this way:
polkit.addRule(function(action, subject) {
{
polkit.log("action=" + action);
polkit.log("subject=" + subject);
return polkit.Result.YES;
}
});
That also had no effect. I also checked the /var/log/auth.log file and did not see the log lines from the rule above. What I do see in the log file, that appears to be associated with this problem, are the following lines:
Jan 13 17:11:24 ***** PackageKit: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Jan 13 17:11:24 ***** polkitd(authority=local): Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.packagekit.system-sources-refresh for system-bus-name::1.77 [/usr/lib/x86_64-linux-gnu/libexec/DiscoverNotifier] (owned by unix-user:wadeh)
Jan 13 17:11:24 ***** PackageKit: uid 1000 failed to obtain auth
When I run locally, and not over RDP, the log looks like this:
Jan 13 17:13:07 ***** PackageKit: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Jan 13 17:13:07 ***** PackageKit: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh
At this point, I am at a bit of a loss. It's as if polkit is not seeing my changes. Note that I reboot the system after each change to one of the files, just to ensure that everything starts up with the changes.
I installed everything clean today, with an ISO that I downloaded from the LTS branch yesterday. The version numbers are as follows:
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.11.0-46-generic
OS Type: 64 bit
The XRDP version is 0.9.12