November 19, 2013
How to, Kali Linux, Linux
This is a small guide on How to fix GDBus Error org freedesktop PolicyKit1 Error Failed : An authentication agent already exists for the given subject error in Kali, LMDE or Debian Linux.
How to fix GDBus Error org freedesktop PolicyKit1 Error Failed
Background:
I use gdm3+XFCE on my box (amd64, Kali Linux). When I start my XFCE session, I have been getting this error message
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject
Even starting a new XFCE session will not help. So far, it looks that this error message has no consequences, but it is annoying. I found a way to fix this, sharing for interested readers.
Screenshots were taken from Kali Linux
root@kali:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux Kali Linux 1.0 Release: Kali Linux 1.0 Codename: n/a root@kali:~#
I am using XFCE desktop/window manager.
To fix this go to Application Menu > Settings > Session and Startup >
Now un-check LXPolkit from Application Autostart tab. Click on Close.
That’s it, you won’t see that error message again.
Conclusion
GDBus Error org freedesktop PolicyKit1 Error Failed is a common issue in many Linux Operating systems which is not just limited to Kali Linux or Debian Linux.
- GDbus Error org openobex Error Failed: Unable to request session problem
- Problem installing .deb files on Wheezy
- gnome-shell:oh no something has gone wrong error
- Bug 657006 – GDBus Error org freedesktop PolicyKit1 Error Failed: An authentication agent already exists for the given subject
- Raspberry Pi error
- GDBus Error org freedesktop PolicyKit1 Error Failed An authentication agent already exists for the given subject
- GDBus Error org openobex Error Failed Unable to request session
- Error GDBus Error org freedesktop DBus Error Spawn ExecFailed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success
- MATE-Desktop for fedora
- Bug#687844: debian-policy: GDBus Error org freedesktop PolicyKit1 Error Failed:
- Installing Nessus in Kali Linux
- I am kali linx user i hv some problm when i install any type of software app in my kali linux this error show GDBus Error org gtk GDBus Un?
- GDBus Error org gtk GDBus UnmappedGError Quark._pk_5ftransaction_5ferror.Code4: SimulateInstallFiles not supported by backend
- Debian Bug report logs – #703016 policykit-1-gnome: polkit-gnome-authentication-agent-1 fails to start
- Small problem with the version of Mate ..
I cannot say if my fix will apply to every situation, but it seems to work for me and my friends.
Thanks for reading. Please share.
Check Also
Cracking password in Kali Linux using John the Ripper
John the Ripper is a free password cracking software tool. Initially developed for the Unix …
Hi!
Just installed a fresh copy of Archlinux. Xorg has been configured with the nouveau driver and is running fine with openbox and i3.
I installed gnome including every package from the gnome and gnome-extra groups.
I’m starting gnome using the following in my .xinitc (copied from skeleton)
Upon startup, I am immediately greeted by a Oh no! Something has gone wrong. message.
Here’s the full stdout/stderr output from gnome-session:
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
GNOME_KEYRING_CONTROL=/home/MYUSER/.cache/keyring-Pzuvga
GNOME_KEYRING_PID=6917
GNOME_KEYRING_CONTROL=/home/MYUSER/.cache/keyring-Pzuvga
GNOME_KEYRING_CONTROL=/home/MYUSER/.cache/keyring-Pzuvga
GPG_AGENT_INFO=/home/MYUSER/.cache/keyring-Pzuvga/gpg:0:1
GNOME_KEYRING_CONTROL=/home/MYUSER/.cache/keyring-Pzuvga
GPG_AGENT_INFO=/home/MYUSER/.cache/keyring-Pzuvga/gpg:0:1
SSH_AUTH_SOCK=/home/MYUSER/.cache/keyring-Pzuvga/ssh
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
(gnome-settings-daemon:6908): power-plugin-WARNING **: Unable to inhibit suspend: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.0" (uid=0 pid=327 comm="/usr/lib/systemd/systemd-logind ") interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)" requested_reply="0" destination="org.freedesktop.PolicyKit1" (uid=102 pid=6154 comm="/usr/lib/polkit-1/polkitd --no-debug ")
(gnome-settings-daemon:6908): power-plugin-WARNING **: Unable to inhibit lid switch: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.0" (uid=0 pid=327 comm="/usr/lib/systemd/systemd-logind ") interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)" requested_reply="0" destination="org.freedesktop.PolicyKit1" (uid=102 pid=6154 comm="/usr/lib/polkit-1/polkitd --no-debug ")
(gnome-settings-daemon:6908): media-keys-plugin-WARNING **: Unable to inhibit keypresses: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.0" (uid=0 pid=327 comm="/usr/lib/systemd/systemd-logind ") interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)" requested_reply="0" destination="org.freedesktop.PolicyKit1" (uid=102 pid=6154 comm="/usr/lib/polkit-1/polkitd --no-debug ")
(gnome-settings-daemon:6908): color-plugin-WARNING **: failed to create device: GDBus.Error:org.freedesktop.ColorManager.Failed: failed to obtain org.freedesktop.color-manager.create-device auth
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Initializing tracker-store...
Initializing tracker-miner-fs...
Tracker-Message: Setting up monitor for changes to config file:'/home/MYUSER/.config/tracker/tracker-store.cfg'
Tracker-Message: Setting up monitor for changes to config file:'/home/MYUSER/.config/tracker/tracker-store.cfg'
Starting log:
File:'/home/MYUSER/.local/share/tracker/tracker-store.log'
Tracker-Message: Setting up monitor for changes to config file:'/home/MYUSER/.config/tracker/tracker-miner-fs.cfg'
Starting log:
File:'/home/MYUSER/.local/share/tracker/tracker-miner-fs.log'
Failed to play sound: File or data not found
** (nm-applet:6963): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
** Message: applet now removed from the notification area
** (nm-applet:6963): WARNING **: fetch_connections_done: error fetching connections: (32) Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details..
** (nm-applet:6963): WARNING **: Failed to register as an agent: (32) Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
JS LOG: Error: Requiring IBus, version none: Typelib file for namespace 'IBus' (any version) not found
Window manager warning: Log level 16: Could not initialize NMClient /org/freedesktop/NetworkManager: Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
Window manager warning: Log level 16: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
JS ERROR: !!! Exception was: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
JS ERROR: !!! message = '"GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs."'
JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/components/polkitAgent.js"'
JS ERROR: !!! lineNumber = '329'
JS ERROR: !!! stack = '"0 anonymous()@/usr/share/gnome-shell/js/ui/components/polkitAgent.js:329
1 wrapper()@/usr/share/gjs-1.0/lang.js:204
2 anonymous("name" = ""polkitAgent"")@/usr/share/gnome-shell/js/ui/components/__init__.js:56
3 wrapper(""polkitAgent"")@/usr/share/gjs-1.0/lang.js:204
4 anonymous("name" = ""polkitAgent"", 1, [object Array])@/usr/share/gnome-shell/js/ui/components/__init__.js:22
5 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:21
6 wrapper()@/usr/share/gjs-1.0/lang.js:204
7 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:13
8 wrapper()@/usr/share/gjs-1.0/lang.js:204
9 anonymous()@/usr/share/gjs-1.0/lang.js:145
10 anonymous()@/usr/share/gjs-1.0/lang.js:239
11 start()@/usr/share/gnome-shell/js/ui/main.js:150
12 <TOP LEVEL>@<main>:1
"'
Window manager warning: Log level 32: Execution of main.js threw exception: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
JS LOG: Error: Requiring IBus, version none: Typelib file for namespace 'IBus' (any version) not found
** (gnome-screensaver:7041): WARNING **: screensaver already running in this session
Window manager warning: Log level 16: Could not initialize NMClient /org/freedesktop/NetworkManager: Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
Window manager warning: Log level 16: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
JS ERROR: !!! Exception was: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
JS ERROR: !!! message = '"GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs."'
JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/components/polkitAgent.js"'
JS ERROR: !!! lineNumber = '329'
JS ERROR: !!! stack = '"0 anonymous()@/usr/share/gnome-shell/js/ui/components/polkitAgent.js:329
1 wrapper()@/usr/share/gjs-1.0/lang.js:204
2 anonymous("name" = ""polkitAgent"")@/usr/share/gnome-shell/js/ui/components/__init__.js:56
3 wrapper(""polkitAgent"")@/usr/share/gjs-1.0/lang.js:204
4 anonymous("name" = ""polkitAgent"", 1, [object Array])@/usr/share/gnome-shell/js/ui/components/__init__.js:22
5 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:21
6 wrapper()@/usr/share/gjs-1.0/lang.js:204
7 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:13
8 wrapper()@/usr/share/gjs-1.0/lang.js:204
9 anonymous()@/usr/share/gjs-1.0/lang.js:145
10 anonymous()@/usr/share/gjs-1.0/lang.js:239
11 start()@/usr/share/gnome-shell/js/ui/main.js:150
12 <TOP LEVEL>@<main>:1
"'
Window manager warning: Log level 32: Execution of main.js threw exception: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
gnome-session[6852]: WARNING: App 'gnome-shell.desktop' respawning too quickly
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
(gnome-settings-daemon:6908): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' failed
gnome-session[6852]: CRITICAL: gsm_manager_set_phase: assertion `GSM_IS_MANAGER (manager)' failed
gnome-session[6852]: Gtk-CRITICAL: gtk_main_quit: assertion `main_loops != NULL' failed
Received signal:1->'Hangup'
Received signal:1->'Hangup'
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Received signal:15->'Terminated'
(tracker-miner-fs:6959): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed
(tracker-miner-fs:6959): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Received signal:15->'Terminated'
(tracker-miner-fs:6959): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed
OK
OK
I googled some of the warnings and errors from that log and couldn’t find anything relevant. Some post led me to check my dbus service and here’s what systemctl has to say:
]$ systemctl status dbus-org
dbus-org.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
Not sure where to go from there. This is a very fresh Arch install.
Any ideas?
Thanks!
Last edited by Cron0 (2013-01-18 03:53:01)
# |
|
Темы: 292 Сообщения: 1960 Участник с: 20 ноября 2013 |
Вот полный текст сообщения
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subjec Когда закрываю вроде всё работает нормально.После перезагрузки опять появляется.Никаких программ не устанавливал и не удалял.Никаких флешек или чего другого не подключал. Linux Forever! |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
Легко гуглится, например это, где приведена также ссылка на багтрекер редхата. Если не поможет, погугли еще — имеются и другие решения. Ошибки не исчезают с опытом — они просто умнеют |
Vadim |
# |
Темы: 292 Сообщения: 1960 Участник с: 20 ноября 2013 |
Разобрался,получился с двух мест пытался запустится lxpolkit ,из /etc/xdg/autostart и из ~/.config/openbox/autostart ,сюда я сам написал автостарт lxpolkit и забыл,и получался конфликт. Из ~/.config/openbox/autostart убрал строчку lxpolkit и весь вопрос исчерпан, Почему до последнего обновления не было конфликта не знаю. Linux Forever! |
Zzz |
# |
Темы: 0 Сообщения: 16 Участник с: 08 декабря 2021 |
вапчхе беда GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exist for the given subject
|
vs220 |
# |
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
Zzz некропостинг не очень приветствуется. И уточните где именно прописан запуск полкит агента и собственно зачем? |
Zzz |
# (отредактировано 12 месяцев назад) |
Темы: 0 Сообщения: 16 Участник с: 08 декабря 2021 |
аа, я чёт… |
vs220 |
# |
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
Уберите его от туда, он из /etc/xdg/autostart/xfce-polkit.desktop и так запускается |
Zzz |
# (отредактировано 12 месяцев назад) |
Темы: 0 Сообщения: 16 Участник с: 08 декабря 2021 |
тогда неичего на рабочем столе не отображается |
vadik |
# |
Темы: 55 Сообщения: 5410 Участник с: 17 августа 2009 |
Вопросы решены. Тему закрываю и напоминаю, некропостинг — зло! |
View previous topic :: View next topic | |||||||||||||
Author | Message | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
account n00b Joined: 02 Sep 2009 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
asturm Developer Joined: 05 Apr 2007 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
account n00b Joined: 02 Sep 2009 |
|
||||||||||||
Back to top |
|
||||||||||||
asturm Developer Joined: 05 Apr 2007 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
pietinger Moderator Joined: 17 Oct 2006 |
|
||||||||||||
Back to top |
|
||||||||||||
asturm Developer Joined: 05 Apr 2007 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
asturm Developer Joined: 05 Apr 2007 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
Spanik l33t Joined: 12 Dec 2003 |
|
||||||||||||
Back to top |
|
||||||||||||
|
You cannot post new topics in this forum |
I’ve had this problem for some weeks and I’m unable to fix it. I would be grateful if someone can come up with a solution. Running XFCE on Debian testing/sid; I’m unable to run any task that requires policykit (eg. mounting disks from the file manager, creating partitions from gnome-disks
, running programs with pkexec
, etc).
I can see from the process list that /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
is not running (which it should, since it is marked for autostart in /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
, I can verify in my desktop autostart settings and in the .desktop
itself that it is supposed to be running.)
Running /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
manually during my desktop session also fails with the following error.
$ /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
** (polkit-gnome-authentication-agent-1:28852): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: User of caller and user of subject differs.
The error I get when using pkexec
:
$ pkexec gnome-disks
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/gnome-disks' as the super user
Authenticating as: ,,, (user)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
Error I get when trying to mount drives in Thunar
Not authorized to perform operation.
Error I get when trying to perform operations on partitions in my disk utility:
Not authorized to perform operation (udisks-error-quark, 4)
So… what is the next step? What should I look into? I’d report a bug but have no idea if 1. it’s actually a software bug and not a configuration error (my config is mostly vanilla debian, pretty sure I didn’t touch policykit) 2. against what package to report it.
The desktop session is started through lightdm and xfce4-session.
Bug 994961
— User of caller and user of subject differs
Summary:
User of caller and user of subject differs
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|