You are not logged in.

#1 2021-08-16 14:11:07

BAR777
Guest

(Solved)Discover error

Hi.
I Installed lastest kde on my new arch setup.
but every time i want to *un*install my apps it says:you have no authorization to execute this operation
i have installed polkit and kde-polkit.
Anyway to fix that?
Edit:I Installed gnome-keyring or something like that and problem fixed!

Last edited by BAR777 (2021-09-26 08:11:17)

#2 2021-08-16 14:31:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: (Solved)Discover error

Which groups is your user in? By default polkit considers only users of the wheel group to be admins and will only allow them to be asked for elevated privileges: https://wiki.archlinux.org/title/Polkit … identities

Offline

#3 2021-08-17 05:19:29

BAR777
Guest

Re: (Solved)Discover error

V1del wrote:

Which groups is your user in? By default polkit considers only users of the wheel group to be admins and will only allow them to be asked for elevated privileges: https://wiki.archlinux.org/title/Polkit … identities

Hi V1del.
My group is wheel.

#4 2021-08-17 05:44:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

Your groups "is" not wheel, please post the output of

id

Online

#5 2021-08-17 08:29:35

BAR777
Guest

Re: (Solved)Discover error

seth wrote:

Your groups "is" not wheel, please post the output of

id

HI @seth
uid=1000(bardia) gid=1000(bardia) groups=1000(bardia),998(wheel)
bardia is my username.
Also a special thanks to you that helping me out in other topics in past.

#6 2021-08-17 09:40:01

BAR777
Guest

Re: (Solved)Discover error

Tip1:
It only says when I want to remove an app.On Install it didnt ask me for password.
Tip2:
Polkit works fine in every other apps(ex*pamac*)

#7 2021-08-17 13:02:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

https://archlinux.org/packages/extra/x86_64/discover/ doesn't ship w/ polkit rules to begin with.
Are you trying to remove a pacman or a flatschpak package?

Online

#8 2021-08-25 11:40:53

BAR777
Guest

Re: (Solved)Discover error

seth wrote:

https://archlinux.org/packages/extra/x86_64/discover/ doesn't ship w/ polkit rules to begin with.
Are you trying to remove a pacman or a flatschpak package?

Any package
ANYTHING.

#9 2021-08-25 12:36:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: (Solved)Discover error

It's packagekit that ships with the relevant rules and it is indeed a default - albeit a questionable one - to allow passwordless installation/upgrades but that doesn't really explain why popping a dialog for removal doesn't work

Offline

#10 2021-09-20 08:04:02

BAR777
Guest

Re: (Solved)Discover error

V1del wrote:

It's packagekit that ships with the relevant rules and it is indeed a default - albeit a questionable one - to allow passwordless installation/upgrades but that doesn't really explain why popping a dialog for removal doesn't work

So @V1del Any solution to fix discover?

#11 2021-09-20 08:17:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

Can you actually "pkexec ls" and receive a password prompt?

Online

#12 2021-09-24 07:08:12

BAR777
Guest

Re: (Solved)Discover error

seth wrote:

Can you actually "pkexec ls" and receive a password prompt?

Yes

#13 2021-09-24 07:51:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

https://forum.kde.org/viewtopic.php?f=2 … 59#p440799
https://askubuntu.com/a/1333981

https://bugs.kde.org/show_bug.cgi?id=398367

but every time i want to *un*install my apps it says:you have no authorization to execute this operation

Do you get a similar dialog for discover? If so: for which user credentials does it ask? Is it root and do you provide the root password?

Online

#14 2021-09-24 14:50:48

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,300

Re: (Solved)Discover error

Offline

#15 2021-09-25 07:42:53

BAR777
Guest

Re: (Solved)Discover error

seth wrote:

https://forum.kde.org/viewtopic.php?f=2 … 59#p440799
https://askubuntu.com/a/1333981

https://bugs.kde.org/show_bug.cgi?id=398367

but every time i want to *un*install my apps it says:you have no authorization to execute this operation

Do you get a similar dialog for discover? If so: for which user credentials does it ask? Is it root and do you provide the root password?

I didnt get any dialog
sus

#16 2021-09-26 08:11:54

BAR777
Guest

Re: (Solved)Discover error

I Installed gnome-keyring or something like that and problem fixed!
Thx guys

#17 2021-09-26 09:55:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: (Solved)Discover error

That can only be necessary if your polkit auth provider is not kde-polkit what's your output for

ps aux | grep polkit

Offline

#18 2021-09-26 12:33:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

Afaiu the patch packagekit by default does't *interactively* ask for the creds (or anything), so if the opened gnome-keyring now offers them that might sidestep the issue.

Online

#19 2021-09-27 06:30:37

BAR777
Guest

Re: (Solved)Discover error

V1del wrote:

That can only be necessary if your polkit auth provider is not kde-polkit what's your output for

ps aux | grep polkit

polkitd     1060  0.0  0.5 2515892 22820 ?       Ssl  09:47   0:00 /usr/lib/polkit-1/polkitd --no-debug
bardia      1067  0.1  2.7 852796 103972 ?       Sl   09:47   0:01 /usr/lib/polkit-kde-authentication-agent-1
bardia     14168  0.0  0.0   6496  2532 pts/2    S<+  10:00   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox polkit

#20 2021-09-27 06:31:21

BAR777
Guest

Re: (Solved)Discover error

seth wrote:

Afaiu the patch packagekit by default does't *interactively* ask for the creds (or anything), so if the opened gnome-keyring now offers them that might sidestep the issue.

Hmm what do u mean?
I am confused.

#21 2021-09-27 06:44:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,443

Re: (Solved)Discover error

The post was a reply to V1del - and it lacks a comma ;-)
(Trying to reason why gnome-keyring might side-step the issue despite polkit-kde-authentication-agent-1 being available)

Online

#22 2021-09-27 06:59:59

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,300

Re: (Solved)Discover error

Fixed in 5.22.5-2

Offline

#23 2021-09-28 06:35:21

BAR777
Guest

Re: (Solved)Discover error

arojas wrote:

Fixed in 5.22.5-2

Thx

Board footer

Powered by FluxBB