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

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

从 11.04 更新至 11.10 后,我的机器上出现了有线行为:

关机 GUI 方法(包括重新启动)只会导致注销,并且在登录屏幕中,关机和重新启动选项都不起作用(如果您想知道,重新启动会出现在关机对话框中)。

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

如何解决这个问题?

更新

选择时系统日志输出关闭从我的桌面是:

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

答案1

您是否安装了 rabbitmq?对我来说,这就是罪魁祸首。这是它的 bug ticket: https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/670289

答案2

我也遇到了同样的问题,但对我来说,以下解决方案解决了这个问题。也许它也对您的系统有帮助。 https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792/comments/24

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

答案3

我遇到了同样的问题(当我使用 Gentoo 时也遇到了类似的问题),并且这对我有用:https://www.grendelman.net/wp/policykit-adventures/。在 12.04 上测试后问题消失。不过我会将其用作临时修复,因为有些东西告诉我,当每个人都被允许重新启动主机而不检查其他正在运行的会话时,这并不安全。就我而言,这个错误仅在我在 VT 上运行其他会话或有其他人通过 SSH 登录时才会出现。无论如何,希望这能为您解决问题。尽情享受 :-)

答案4

问题

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

发现

我找到了您的帖子,但找到了另一种“对我有用”的解决方案。我的系统日志中出现了同样的消息:

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)

已登录到我的主 tty,又名ctrl + alt + F1。我昨天启动了它,因为我需要执行一些我不记得的邪恶管理任务。

解决方案

我退出了我的 root 用户身份tty1,回到我的桌面ctrl + alt + F7,然后按下restart

相关内容