You are not logged in.

#1 2023-05-08 21:19:24

Perro
Member
Registered: 2023-05-02
Posts: 8

[SOLVED] Authentication is required to refresh the system repositories

I tried out xrdp and nomachine, and I got this message when starting Discover in KDE (I didn't before I installed these). Now I've uninstalled both of them, but I keep getting this message.
mO8tAJJ.png
Is there any way to remove this?

Solution: Not much of a fix, but I just stopped using Discover for package management...

Last edited by Perro (2023-05-09 02:10:31)

Offline

#2 2023-05-08 21:28:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,977

Re: [SOLVED] Authentication is required to refresh the system repositories

Remove what? Discover requires system privileges to use polkit to update system packages, so this message seems completely normal. If you don't wan to use discover for pacman packages (which I'd reccommend since the integration here is simply not as good nor stable on Arch) you can remove packagekit-qt5

Offline

#3 2023-05-08 21:51:26

Perro
Member
Registered: 2023-05-02
Posts: 8

Re: [SOLVED] Authentication is required to refresh the system repositories

Sorry, english is not my native language.

Before installing these remote access packages, Discover didn't request for this password when I opened it. I would like to go back to that behaviour.

I use Discover to browse apps like an app store, and ease the installation of flatpaks and system updates. I use pacman and AUR (makepkg) for everything else.

Offline

#4 2023-05-08 22:01:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,977

Re: [SOLVED] Authentication is required to refresh the system repositories

Looking at the packagekit polkit policies they require a proper session so your logind session is likely broken. How exactly are you starting plasma/your session? Outputs of

printenv DBUS_SESSION_BUS_ADDRESS
loginctl session-status

Offline

#5 2023-05-08 22:17:53

Perro
Member
Registered: 2023-05-02
Posts: 8

Re: [SOLVED] Authentication is required to refresh the system repositories

$ printenv DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
$ loginctl session-status
2 - perro (1000)
           Since: Mon 2023-05-08 17:10:41 -04; 1h 6min ago
          Leader: 859 (sddm-helper)
            Seat: seat0; vc1
         Display: :0
         Service: sddm; type x11; class user
         Desktop: KDE
           State: active
            Unit: session-2.scope
                  ├─859 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth354ed1ff-9e75-4b79-9a74-3b9bd9245244 --id 1 --start /usr/bin/startplasma-x11 --user perro
                  ├─875 /usr/bin/kwalletd5 --pam-login 6 8
                  └─876 /usr/bin/startplasma-x11

May 08 17:10:42 archdog systemd[1]: Started Session 2 of User perro.
May 08 17:10:42 archdog sddm-helper[876]: Adding cookie to "/home/perro/.Xauthority"

Offline

#6 2023-05-09 01:14:57

Perro
Member
Registered: 2023-05-02
Posts: 8

Re: [SOLVED] Authentication is required to refresh the system repositories

I just deleted packagekit-qt5 hmm Problem deleted fixed

Refresh and upgrade:

pacman -Syu

Query orphan packages

pacman -Qtd

Query foreign (AUR) packages

pacman -Qm

Last edited by Perro (2023-05-09 02:08:55)

Offline

#7 2023-07-16 18:15:18

rjahanbakhshi
Member
Registered: 2020-11-26
Posts: 12

Re: [SOLVED] Authentication is required to refresh the system repositories

It is a problem with nomachine uninstaller script. It doesn't clean up properly. You need to manually remove the following file after uninstalling nomachine and it will be okay.


sudo rm /usr/share/polkit-1/rules.d/55-org.nomachine.rules

Offline

Board footer

Powered by FluxBB