没有控制台我无法关闭或重启

从11.04更新到11.10后,我的机器中出现有线操作:

关闭GUI方法(包括重新启动)仅导致注销,并且在登录屏幕中,关闭或重新启动选项会执行任何操作(如果您想知道,重启会出现在关闭对话框中)。

我可以重启或关机的唯一方法是通过控制台sudo shutdown -h nowsudo reboot 。 这对我来说没问题,但对其他用户没有。

如何解决这个问题?

更新

从桌面选择关闭时的syslog输出是:

 AptDaemon: INFO: Quitting due to inactivity AptDaemon: INFO: Quitting was requested CRON[5095]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete) CRON[5094]: (root) MAIL (mailed 1 byte of output; but got status 0x00ff, #012) kernel: [17027.614974] psmouse.c: TouchPad at isa0060/serio4/input0 lost sync at byte 1 kernel: [17027.616510] psmouse.c: TouchPad at isa0060/serio4/input0 lost sync at byte 1 kernel: [17027.618037] psmouse.c: TouchPad at isa0060/serio4/input0 lost sync at byte 1 kernel: [17027.619557] psmouse.c: TouchPad at isa0060/serio4/input0 lost sync at byte 1 kernel: [17027.621046] psmouse.c: TouchPad at isa0060/serio4/input0 lost sync at byte 1 kernel: [17027.621051] psmouse.c: issuing reconnect request acpid: client 1032[0:0] has disconnected acpid: client connected from 1032[0:0] acpid: 1 client rule loaded gnome-session[1836]: WARNING: Unable to stop system: Authorization is required acpid: client 1032[0:0] has disconnected acpid: client connected from 6055[0:0] acpid: 1 client rule loaded rtkit-daemon[1313]: Successfully made thread 6134 of process 6134 (n/a) owned by '119' high priority at nice level -11. rtkit-daemon[1313]: Supervising 4 threads of 2 processes of 2 users. rtkit-daemon[1313]: Successfully made thread 6139 of process 6134 (n/a) owned by '119' RT at priority 5. rtkit-daemon[1313]: Supervising 5 threads of 2 processes of 2 users. rtkit-daemon[1313]: Successfully made thread 6140 of process 6134 (n/a) owned by '119' RT at priority 5. rtkit-daemon[1313]: Supervising 6 threads of 2 processes of 2 users. 

我怀疑行gnome-session[1836]: WARNING: Unable to stop system: Authorization is required与问题有关。

从登录屏幕选择shutdown ,输出与指向的行相同。 这是输出:

 gnome-session[1836]: WARNING: Unable to stop system: Authorization is required acpid: client 1032[0:0] has disconnected acpid: client connected from 6055[0:0] acpid: 1 client rule loaded rtkit-daemon[1313]: Successfully made thread 6134 of process 6134 (n/a) owned by '119' high priority at nice level -11. rtkit-daemon[1313]: Supervising 4 threads of 2 processes of 2 users. rtkit-daemon[1313]: Successfully made thread 6139 of process 6134 (n/a) owned by '119' RT at priority 5. rtkit-daemon[1313]: Supervising 5 threads of 2 processes of 2 users. rtkit-daemon[1313]: Successfully made thread 6140 of process 6134 (n/a) owned by '119' RT at priority 5. rtkit-daemon[1313]: Supervising 6 threads of 2 processes of 2 users. acpid: client 6055[0:0] has disconnected acpid: client connected from 6055[0:0] acpid: 1 client rule loaded 

你有兔子装吗? 那是我的罪魁祸首。 这是它的错误票: https : //bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/670289

我也有同样的问题,但对我来说,它是通过以下解决方案解决的。 也许它也会对你的系统有所帮助。 https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792/comments/24

另请参阅bug报告的其余部分: https : //bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792

我有同样的问题(当我使用Gentoo时也是一个类似的问题)这对我有用 : https : //www.grendelman.net/wp/policykit-adventures/ 。 在12.04测试它,问题消失了。 我会把它用作临时修复,因为有些事情告诉我,当每个人都允许重新启动主机而不检查其他正在运行的会话时,它并不是那么安全。 在我的情况下,当我在VT上运行其他会话时,或者当有其他人通过SSH登录时,这个错误只会表现出来。 无论如何,希望这能为你解决这个问题。 请享用 :-)

问题

我刚刚在使用Cinnamon桌面的Linux Mint 12(又名Ubuntu-11.10)上遇到了同样的问题。 “重新启动”GUI按钮将我注销而不是重新启动。

发现

我找到了你的post,但遇到了一个“为我工作”的不同解决方案。 我的syslog中有相同的消息:

 gnome-session[12937]: WARNING: Unable to restart system: Authorization is required 

我发现我的机器上有两个用户登录

 $ who root tty1 2012-12-28 10:14 evigier pts/0 2012-12-28 10:14 (:0) 

root登录了我的主要tty,又名ctrl + alt + F1 。 我昨天开始了,因为我需要做一些我不记得的邪恶管理任务。

我从tty1注销了我的root用户,回到我的桌面ctrl + alt + F7 ,然后按下restart