PolicyKit1 was not provided by any .service files
In this article I share how to fix the Unable to register authentication agent Authorization error when installing a flatpak application.
When I install the flatpak application, the error that appears is:
** (flatpak install:27692): WARNING **: 00:09:57.214: Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
The remote ‘flathub’, referred to by ‘org.kde.kdenlive’ at location https://dl.flathub.org/repo/ contains additional applications.
Should the remote be kept for future installations? [Y/n]: Y
error: Authorization error: The name org.freedesktop.PolicyKit1 was not provided by any .service files
How to fix this?
The way to fix this is to install “policykit-1” using the command:
sudo apt install policykit-1
Then policykit-1 will be installed:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
kded5 kdenlive-data kinit kio kpackagetool5 libaccounts-glib0
libaccounts-qt5-1 libdbusmenu-qt5-2 libebur128-1 libfam0 libgavl1
libkaccounts2 libkf5archive5 libkf5attica5 libkf5auth-data libkf5authcore5
libkf5bluezqt-data libkf5bluezqt6 libkf5bookmarks-data libkf5bookmarks5
libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5
libkf5config-data libkf5configcore5 libkf5configgui5
libkf5configwidgets-data libkf5configwidgets5 libkf5coreaddons-data
libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-data libkf5dbusaddons5
libkf5declarative-data libkf5declarative5 libkf5doctools5
libkf5filemetadata-data libkf5filemetadata3 libkf5globalaccel-bin
libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
libkf5guiaddons5 libkf5i18n-data libkf5i18n5 libkf5iconthemes-data
libkf5iconthemes5 libkf5itemviews-data libkf5itemviews5
libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5 libkf5kiofilewidgets5
libkf5kiogui5 libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data
libkf5newstuff5 libkf5newstuffcore5 libkf5notifications-data
libkf5notifications5 libkf5notifyconfig-data libkf5notifyconfig5
libkf5package-data libkf5package5 libkf5purpose-bin libkf5purpose5
libkf5quickaddons5 libkf5service-bin libkf5service-data libkf5service5
libkf5solid5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5
libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5 libkf5wallet-bin
libkf5wallet-data libkf5wallet5 libkf5widgetsaddons-data
libkf5widgetsaddons5 libkf5windowsystem-data libkf5windowsystem5
libkf5xmlgui-data libkf5xmlgui5 libkwalletbackend5-5 libmlt++3 libmlt-data
libmlt6 libmovit8 libphonon4qt5-4 libphonon4qt5-data libpolkit-qt5-1-1
libqt5qmlworkerscript5 libqt5quickcontrols2-5 libqt5quicktemplates2-5
libqt5quickwidgets5 libqt5texttospeech5 libqt5waylandclient5 librtaudio6
librttr-core0.9.6 libsignon-qt5-1 libxcb-res0 melt phonon4qt5
phonon4qt5-backend-vlc qml-module-org-kde-bluezqt
qml-module-org-kde-kquickcontrolsaddons qml-module-qt-labs-folderlistmodel
qml-module-qt-labs-settings qml-module-qtgraphicaleffects qml-module-qtqml
qml-module-qtqml-models2 qml-module-qtquick-controls
qml-module-qtquick-controls2 qml-module-qtquick-dialogs
qml-module-qtquick-layouts qml-module-qtquick-privatewidgets
qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2
Use ‘sudo apt autoremove’ to remove them.
Recommended packages:
policykit-1-gnome | polkit-1-auth-agent
The following NEW packages will be installed:
policykit-1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 98.4 kB of archives.
After this operation, 334 kB of additional disk space will be used.
Get:1 http://mirror.poliwangi.ac.id/mxlinux/antix/bullseye bullseye/nosystemd amd64 policykit-1 amd64 0.105-31.1.0nosystemd0 [98.4 kB]
Fetched 98.4 kB in 1s (160 kB/s)
Selecting previously unselected package policykit-1.
(Reading database … 207669 files and directories currently installed.)
Preparing to unpack …/policykit-1_0.105-31.1.0nosystemd0_amd64.deb …
Unpacking policykit-1 (0.105-31.1.0nosystemd0) …
Setting up policykit-1 (0.105-31.1.0nosystemd0) …
Processing triggers for dbus (1.12.20-2.0nosystemd2) …
Processing triggers for man-db (2.9.4-2) …
After that, please re-install the flatpak application. Good luck.
Read more:
> error: Flatpak system operation not allowed for user