Project

General

Profile

Bug #2348

Updated by bill-auger 5 months ago

i'm trying to use either gnome-packagekit or apper in a parabola openrc installation , as graphical front-ends of packagekit. (filing them together as i'm guessing the problem is similar)

when trying to perform an action that would require authentication, `gnome-packagekit` doesn't ask for it and is unable to do it, and `apper` does send a notification saying `Failed to obtain authentication`.

from what i have read, it seems to be something related to polkit.

`polkit-elogind` and `elogind-openrc` are installed, and the elogind service is running.

<pre>
$ ps
`ps aux | grep elogind elogind` shows (deleted the `grep` line):
```
root 2133 0.0 0.0 9840 2564 ? S 12:42 0:00 elogind-daemon

$ ps

```

and `ps
aux | grep polkit polkit` results in (deleted the `grep` line):
```
polkitd 2588 0.0 0.6 1834260 23148 ? Sl 12:42 0:00 /usr/lib/polkit-1/polkitd --no-debug
</pre> ```

when running `packagekit` directly from the command line, e.g. `pkcon remove pd` i do get an authorization request prepended with a message like the following when trying to delete a package:

<pre>

```
==== AUTHENTICATING FOR org.freedesktop.packagekit.package-remove ====
</pre> ```

if i don't authenticate and check the processes running, i can see:

<pre>

```
root 1341 0.0 0.1 30640 5136 pts/5 S+ 23:25 0:00 /usr/lib/polkit-1/polkit-agent-helper-1 espiropapa
espiropapa 1367 0.0 0.0 6284 2344 pts/2 S+ 23:25 0:00 grep polkit
polkitd 2588 0.0 0.6 1834260 23148 ? Sl 12:42 0:00 /usr/lib/polkit-1/polkitd --no-debug
</pre> ```

when i authenticate, it works as expected.



the `polkit-agent-helper-1` doesn't appears (or doesn't stay for me to check) when using either gnome-packagekit or apper.

when running apper from the command line, i get these possibly relevant erros when attempting the actions:

<pre>

```
apper.lib: PackageKit::Transaction::StatusUnknown PackageKit::Transaction::RoleRefreshCache
kf5.kwidgetsaddons: Invalid pixmap specified.
apper.lib: errorCode: PackageKit::Transaction::ErrorNotAuthorized "Failed to obtain authentication."
apper.lib: PackageKit::Transaction::ExitFailed PackageKit::Transaction::RoleRefreshCache
</pre> ```

to finish, i'm doing all this using xfce4.

Back