You are not logged in.

#1 2018-08-03 08:41:14

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Action org.freedesktop.packagekit.trigger-offline-update is not regist

There is a recurrent error in my journal:

gnome-shell[722]: No permission to trigger offline updates: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

But I don't have any packagekit installed.
I've searched in this forum and although there are many results showing this error, no one mentions it.
How can I fix it?

Offline

#2 2018-12-03 23:08:31

hoefling
Member
Registered: 2018-12-03
Posts: 1

Re: Action org.freedesktop.packagekit.trigger-offline-update is not regist

Offline

#3 2018-12-04 15:18:37

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: Action org.freedesktop.packagekit.trigger-offline-update is not regist

ok, thanks. I'll try it.
But I think this is a bug because it doesn't should try to start any action for an optional package that it isn't installed.

Offline

#4 2018-12-04 15:55:12

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Action org.freedesktop.packagekit.trigger-offline-update is not regist

Report this at https://gitlab.gnome.org/GNOME/gnome-shell/issues
It was probably not accounted for already since Fedora pre-installs packagekit if I remember correctly.

I just went through the source code

        try {
            this._updatesPermission = Polkit.Permission.new_sync("org.freedesktop.packagekit.trigger-offline-update", null, null);
        } catch(e) {
            log('No permission to trigger offline updates: %s'.format(e.toString()));
        }

It looks like they handle missing packagekit through an exception which is silly in my opinion because missing packagekit is technically common.

Last edited by hussam (2018-12-04 15:59:14)

Offline

#5 2018-12-04 15:59:01

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: Action org.freedesktop.packagekit.trigger-offline-update is not regist

hussam wrote:

Report this at https://gitlab.gnome.org/GNOME/gnome-shell/issues
It was probably not accounted for already since Fedora pre-installs packagekit if I remember correctly.

Someone anticipated me: https://gitlab.gnome.org/GNOME/gnome-shell/issues/369

Offline

#6 2018-12-04 17:01:23

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Action org.freedesktop.packagekit.trigger-offline-update is not regist

Thanks. I applied the patch in merge request 219 to my local build. That's one less warning.

Offline

Board footer

Powered by FluxBB