-
Notifications
You must be signed in to change notification settings - Fork 411
PolicyKit files are missing
Tset Noitamotua edited this page Aug 12, 2019
·
3 revisions
PolicyKit is used to authorize requests from a client such as fwupdmgr
to the daemon, fwupd
. It allows running the client as a user session.
This error will come up when PolicyKit files are not installed into the proper location for the daemon to use. The two important files are:
$PREFIX/share/polkit-1/actions/org.freedesktop.fwupd.policy
$PREFIX/share/polkit-1/rules.d/org.freedesktop.fwupd.rules
This happens notably from two situations:
A "hand" install that the files were not manually copied over.
- By default fwupd will install into the
/usr/local
. - PolicyKit by default doesn't look in the
/usr/local
for policies.
When both the snap and another packaged source (such as Debian/Ubuntu .deb
) are installed if the other packaged source is removed, it will remove files that are shared with the snap.
Manually copy the files to your correct $PREFIX
that PolicyKit looks for on your system.
On most systems this will be /usr
cp /usr/local/share/polkit-1/actions/org.freedesktop.fwupd.policy /usr/share/polkit-1/actions/org.freedesktop.fwupd.policy
cp /usr/local/share/polkit-1/rules.d/org.freedesktop.fwupd.rules /usr/share/polkit-1/rules.d/org.freedesktop.fwupd.rules
- Reinstall the package you want to use.
sudo snap remove fwupd
sudo snap install fwupd --classic