PolicyKit 守护进程已与总线断开连接。在超级用户帐户上未使用 sudo 启动服务时出错

PolicyKit 守护进程已与总线断开连接。在超级用户帐户上未使用 sudo 启动服务时出错

希望这是一个快速修复,但每当我尝试在我的计算机上启动服务时,总是出现一致的错误。

无论是 ssh、rdp 还是 apache2,每当我尝试使用基本命令启动服务时,service ssh start我的终端都会出现一条错误消息,内容如下:

PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
Failed to start ssh.service: Message recipient disconnected from message bus without replying
See system logs and 'systemctl status ssh.service' for details.

sudo运行前面带有a 的命令似乎可以解决此问题ssh,并且它似乎一开始对我机器上的其他服务“有效”。但是,当我尝试连接到我的网络服务器或远程桌面服务时,我根本无法连接到它们。

重新启动后,我也收到系统程序问题提示,但没有告诉我有关错误的任何信息。

我对 Ubuntu 还很陌生,所以我不确定是什么原因导致了这个问题。如果有人能给我建议,我将不胜感激。

这些是 syslog 文件给我的错误日志:每次我尝试在没有 sudo 命令的情况下启动服务时都会出现这些错误。

Jun 3 17:12:26 xxxspermmonkey420xxx kernel: [ 1402.059083] polkitd[5560]: segfault at 8 ip 00007f6c77c88e36 sp 00007ffc95a7a5a0 error 4 in libpolkit-backend-1.so.0.0.0[7f6c77c79000+18000]
Jun 3 17:12:26 xxxspermmonkey420xxx systemd[1]: polkitd.service: Main process exited, code=dumped, status=11/SEGV
Jun 3 17:12:26 xxxspermmonkey420xxx gnome-session[4459]: PolicyKit daemon disconnected from the bus.
Jun 3 17:12:26 xxxspermmonkey420xxx gnome-session[4459]: We are no longer a registered authentication agent.
Jun 3 17:12:26 xxxspermmonkey420xxx systemd[1]: polkitd.service: Unit entered failed state.
Jun 3 17:12:26 xxxspermmonkey420xxx systemd[1]: polkitd.service: Failed with result 'core-dump'.
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4188] error requesting auth for org.freedesktop.NetworkManager.reload: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4189] error requesting auth for org.freedesktop.NetworkManager.settings.modify.hos tname: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4190] error requesting auth for org.freedesktop.NetworkManager.settings.modify.own : Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4191] error requesting auth for org.freedesktop.NetworkManager.settings.modify.sys tem: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4191] error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4192] error requesting auth for org.freedesktop.NetworkManager.wifi.share.protecte d: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4193] error requesting auth for org.freedesktop.NetworkManager.network-control: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4194] error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4194] error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4196] error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4196] error requesting auth for org.freedesktop.NetworkManager.sleep-wake: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx dbus[1056]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
Jun 3 17:12:26 xxxspermmonkey420xxx NetworkManager[1083]: <warn> [1528060346.4197] error requesting auth for org.freedesktop.NetworkManager.enable-disable-network: Authorization check failed: Message recipient disconnected from message bus without replying
Jun 3 17:12:26 xxxspermmonkey420xxx systemd[1]: Starting Authenticate and Authorize Users to Run Privileged Tasks...
Jun 3 17:12:26 xxxspermmonkey420xxx polkitd[5609]: started daemon version 0.105 using authority implementation `local' version `0.105'
Jun 3 17:12:26 xxxspermmonkey420xxx dbus[1056]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jun 3 17:12:26 xxxspermmonkey420xxx systemd[1]: Started Authenticate and Authorize Users to Run Privileged Tasks.
Jun 3 17:12:26 xxxspermmonkey420xxx gnome-session[4459]: PolicyKit daemon reconnected to bus.
Jun 3 17:12:26 xxxspermmonkey420xxx gnome-session[4459]: Attempting to re-register as an authentication agent.
Jun 3 17:12:26 xxxspermmonkey420xxx gnome-session[4459]: We are now a registered authentication agent.

相关内容