策略工具包出现问题,导致软件包无法启动:
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rabbitmq-server (3.4.3-2) ...
insserv: warning: script 'K02nxsensor' missing LSB tags and overrides
insserv: warning: script 'K02nxserver' missing LSB tags and overrides
insserv: warning: script 'S99pwrstatd' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (empty) of script `rabbitmq-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `rabbitmq-server' overrides LSB defaults (0 1 6).
insserv: warning: script 'pwrstatd' missing LSB tags and overrides
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'plexmediaserver' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `plexmediaserver'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `plexmediaserver'
insserv: script sshINT: service sshd already provided!
insserv: warning: script 'nxserver' missing LSB tags and overrides
insserv: warning: script 'nxsensor' missing LSB tags and overrides
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to start rabbitmq-server.service: Connection timed out
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing package rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish
我该如何修复这个 polkit gio-error-quark 问题?
甚至一些 systemctl 命令也会出现同样的错误:
# systemctl disable plymouth-quit-wait
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
更新:这是一个已知的错误:https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1447654/
答案1
我还不能回复你的评论,但你试过解决方法在错误线程中提到过吗?
首先安装 policykit-1,然后重新启动,然后安装其他所有内容。