gnome-software does not install updates with non-local LDAP users #531

Open
opened 2026-10-09 14:53:10 +00:00 by area7 · 13 comments

Since Fedora 44 only users in the local wheel group can install updates at all.

When using the Reboot/Shutdown and marking the Install Updates nothing happens.
The systems restarts twice and does not install any updates.

When using the Restart & Update button in Gnome-Software a authentication window pops up asking for an Administrator ( local root) password. Not even the sudo right provided by FreeIPA/sssd is working correct.

When the user is a local user and in the wheel group there is no authentication asked at all.

And of course I don't want to give random students the local root passwords.

This worked till Fedora 43

Is there any solution?

Since Fedora 44 only users in the local wheel group can install updates at all. When using the Reboot/Shutdown and marking the Install Updates nothing happens. The systems restarts twice and does not install any updates. When using the Restart & Update button in Gnome-Software a authentication window pops up asking for an Administrator ( local root) password. Not even the sudo right provided by FreeIPA/sssd is working correct. When the user is a local user and in the wheel group there is no authentication asked at all. And of course I don't want to give random students the local root passwords. This worked till Fedora 43 Is there any solution?
Owner

CC @mcrha

CC @mcrha
Owner
[Discourse discussion](https://discussion.fedoraproject.org/t/update-not-possible-via-the-gnome-reboot-shutdown-dialog-box/201479/)

Hi, that's a limitation of the dnf5daemon-server. The gnome-software cannot do anything about it. Feel free to report a bug/feature-request against them.

Did it really work with PackageKit (in f43) with a user without the wheel group? If so I'd say it's a bug on the PackageKit side, allowing installing updates to a random user. The dnf5 folks are more strict on this.

Hi, that's a limitation of the dnf5daemon-server. The gnome-software cannot do anything about it. Feel free to report a bug/feature-request against them. Did it really work with PackageKit (in f43) with a user without the wheel group? If so I'd say it's a bug on the PackageKit side, allowing installing updates to a random user. The dnf5 folks are more strict on this.
Author

Hi, yes it worked since f20 up to f43.

Why should it have been a bug?

Users without wheel shutdown/restart and select "install updates" the computer and believe they install the current updates and security fixes, but nothing happens. This can happen for weeks till they realize there are always the same updates not been installed and call for an admin for support.

Users with sudo rights provides by LDAP/FreeIPA have the same problem.

Every logged in user should be able to install necessary updates. But not to call dnf commands on the terminal.

Hi, yes it worked since f20 up to f43. Why should it have been a bug? Users without wheel shutdown/restart and select "install updates" the computer and believe they install the current updates and security fixes, but nothing happens. This can happen for weeks till they realize there are always the same updates not been installed and call for an admin for support. Users with sudo rights provides by LDAP/FreeIPA have the same problem. Every logged in user should be able to install necessary updates. But not to call dnf commands on the terminal.
Owner

Please treat this as a product requirement: unprivileged users must be allowed to install updates, same as in previous versions of Fedora.

Please treat this as a product requirement: unprivileged users must be allowed to install updates, same as in previous versions of Fedora.
Author

After digging in dnf5 and stuff.
I think it is similar to this: https://github.com/rpm-software-management/dnf5/issues/2693

I have the Packages in: /var/lib/dnf/offline/packages/
/usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml status = "download-complete"

And then nothing happens on shutdown or restart

After digging in dnf5 and stuff. I think it is similar to this: https://github.com/rpm-software-management/dnf5/issues/2693 I have the Packages in: /var/lib/dnf/offline/packages/ /usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml status = "download-complete" And then nothing happens on shutdown or restart

I do not think it's the 2693, it asked for the needed functionality months ago.

You still need the dnf5 folks to decide, they are doing the updates. The gnome-software only reads from there and asks for the updates, but the dnf5 decides whether the polkit prompt should be shown or not, and whether to do the update or not. The gnome-software cannot help here at all.

The LDAP users might be blocked by the corresponding polkit rule, I guess, but I have close to no experience with polkit, thus hard to tell. See their polkit file here: https://github.com/rpm-software-management/dnf5/tree/main/dnf5daemon-server/polkit

I do not think it's the 2693, it asked for the needed functionality months ago. You still need the dnf5 folks to decide, they are doing the updates. The gnome-software only reads from there and asks for the updates, but the dnf5 decides whether the polkit prompt should be shown or not, and whether to do the update or not. The gnome-software cannot help here at all. The LDAP users might be blocked by the corresponding polkit rule, I guess, but I have close to no experience with polkit, thus hard to tell. See their polkit file here: https://github.com/rpm-software-management/dnf5/tree/main/dnf5daemon-server/polkit
Owner

There are multiple problems here:

  • Product requirement: by default, local non-wheel users, including LDAP users, should be able to install updates. Hopefully the dnf behavior can be fixed.
  • Software bug: the user experience should not be broken even if the configuration is different than what is expected; GNOME or GNOME Software ought to display a permission prompt or an error notification rather than silently failing to do the right thing
There are multiple problems here: * Product requirement: by default, local non-wheel users, including LDAP users, should be able to install updates. Hopefully the dnf behavior can be fixed. * Software bug: the user experience should not be broken even if the configuration is different than what is expected; GNOME or GNOME Software ought to display a permission prompt or an error notification rather than silently failing to do the right thing

The dnf5 writes something to the journal, I believe. Until they add a D-Bus API to get the information (the error), there's nothing to be done on the gnome-software side. I repeat it here like for the 3rd time: report against the dnf5, once they fix it, the gnome-software will either work without any change or it can be extended (to use a possible new API). Until then, there's nothing to be done on the gnome-software side.

It's no difference with PackageKit, it also asks the polkit prompts on its own, deciding itself when it'll ask and when not. The same if the PackageKit does not have needed API the consumer cannot do anything about it (there had been added several API-s to the PackageKit to satisfy gnome-software needs in the past).

The dnf5 writes something to the journal, I believe. Until they add a D-Bus API to get the information (the error), there's nothing to be done on the gnome-software side. I repeat it here like for the 3rd time: report against the dnf5, once they fix it, the gnome-software will either work without any change or it can be extended (to use a possible new API). Until then, there's nothing to be done on the gnome-software side. It's no difference with PackageKit, it also asks the polkit prompts on its own, deciding itself when it'll ask and when not. The same if the PackageKit does not have needed API the consumer cannot do anything about it (there had been added several API-s to the PackageKit to satisfy gnome-software needs in the past).
Owner

(Discussed in today's WS WG meeting.)

@area7, can you please report a bug against dnf5 about this?

(Discussed in today's WS WG meeting.) @area7, can you please report a bug against dnf5 about this?
Author
I created an issue on GitHub https://github.com/rpm-software-management/dnf5/issues/2986

Thanks. I see they already have an issue for it... I completely forgot it exists, I'm sorry, I'd point you to it instead of asking you to fill a new issue otherwise. For a good thing, they seem to bumped the priority on the existing issue, hopefully helping them to look on it sooner.

Thanks. I see they already have an issue for it... I completely forgot it exists, I'm sorry, I'd point you to it instead of asking you to fill a new issue otherwise. For a good thing, they seem to bumped the priority on the existing issue, hopefully helping them to look on it sooner.
Author

With Fedora 45 release coming up end of October, can this be resolved till than? Or till Fedora 43 EOL?

This is still blocking us from updating our Fedora 43 clients.

With Fedora 45 release coming up end of October, can this be resolved till than? Or till Fedora 43 EOL? This is still blocking us from updating our Fedora 43 clients.
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
workstation/tickets#531
No description provided.