"Authentication required to refresh system repositories" message when connect to my RPi4 with remote desktop #2112
-
I recently installed raspberry pi os with desktop directly on my SSD and connect it to my raspberry pi 4. It seems like someone had the same issue here #2000, but it doesn't seems like we have any solution yet. I have also tried to add a new username and remove "pi", but this pop out window will always stick with the user "pi" as its identity even though I logged in with other username (AND it doesn't let me remove "pi" either). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Just tried this on a FrankenPi with LXDE. The issue seems to be that the packagekit service is asking for authentication for the check when you log in. On my system,
The You can query the response PolicyKit will provide with this command:- $ pkaction --action-id org.freedesktop.packagekit.system-sources-refresh --verbose org.freedesktop.packagekit.system-sources-refresh: description: Refresh system repositories message: Authentication is required to refresh the system repositories vendor: The PackageKit Project vendor_url: http://www.packagekit.org/ icon: package-x-generic implicit any: auth_admin implicit inactive: auth_admin implicit active: yes The important lines are these:-
This is a pretty standard configuration. Actions which affect an entire system may be allowed on the console, but prohibited for remote users without additional safeguards. You can override the system-defined actions if you like. The way this is done depends on your version of PolicyKit:-
Your system is Debian-based, so uses
This is a relatively simple approach. If you wanted to prevent the prompt for all xrdp users, you could use a group other than Your second point about the new user comes down to the Incidentally, a solution to the same issue for a |
Beta Was this translation helpful? Give feedback.
-
After adding We can close this case if you agree too. |
Beta Was this translation helpful? Give feedback.
Just tried this on a FrankenPi with LXDE.
The issue seems to be that the packagekit service is asking for authentication for the check when you log in.
On my system,
sudo journalctl -u packagekit
shows this message after logging in over xrdp:-The
org.freedesktop.packagekit.system-sources-refresh
string is a PolicyKit action ID. PolicyKit is the system component which decides whether to authorize the action or not.You can query the response PolicyKit will provide with this command:-