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


12

从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

首先,请在“关机”对话框中删除有关重新启动的烦恼。这与您的问题无关。如果困扰您,您可以提出错误。其次,在尝试通过GUI关闭失败后,请查看日志文件(例如/ var / log / messages)。
1

@Jan我做了你建议我的事情。另请注意,/ var / log / messages不再存在;我不知道,但是[1]向我展示了怎么做:使用/ var / log / syslog [1] askubuntu.com/q/51265/10580
jgomo3 2011年

我相信您在日志文件中找到了违规行。希望有人可以帮助您解决问题。
1

Answers:




2

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


2

问题

我刚在带有Cinnamon桌面的Linux Mint 12(aka 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)

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

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

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.