web-dev-qa-db-ja.com

コンソールなしでシャットダウンまたは再起動できません

11.04から11.10に更新すると、マシンに有線の行為が表示されます。

シャットダウンGUIメソッド(再起動を含む)はログオフのみを引き起こし、ログイン画面では、シャットダウンまたは再起動オプションは何もしません(不審な場合は、シャットダウンダイアログに再起動が表示されます)。

再起動またはシャットダウンできる唯一の方法は、コンソールSudo shutdown -h nowまたはSudo rebootです。これは私には問題ありませんが、他のユーザーには問題ありません。

これを修正する方法は?

更新

デスクトップからselectshutdownを選択した場合の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
12
jgomo3

Rabbitmqはインストールされていますか?それが私にとっての犯人です。バグチケットを次に示します。 https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/670289

5
Martin Konecny

私も同じ問題を抱えていましたが、私にとっては次の解決策で解決されます。たぶんそれはあなたのシステムにも役立つでしょう。 https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792/comments/24

バグレポートの残りの部分もご覧ください: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792

2
raggar

問題

Linux Mint 12(Ubuntu-11.10)でCinnamonデスクトップを使用すると、同じ問題が発生しました。 「再起動」GUIボタンは、再起動する代わりにログアウトしました。

調査結果

あなたの投稿を見つけましたが、「私のために働いた」別のソリューションに出会いました。 syslogに同じメッセージがありました:

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

私はログインしている2人のユーザーが私のマシンにあることがわかりました:

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

rootはメインtty、別名ctrl + alt + F1に記録されました。覚えていない邪悪な管理タスクを実行する必要があるため、昨日開始しました。

解決

ルートユーザーをtty1からログアウトし、デスクトップctrl + alt + F7に戻り、restartを押しました。

2
m-ric

私は同じ問題(Gentooを使用していたときにも似た問題)を抱えていましたが、これは私のために働きました: https://www.grendelman.net/wp/policykit-adventures/ 。 12.04でテストしましたが、問題はなくなりました。ただし、一時的な修正として使用します。「他の実行中のセッションをチェックせずに誰もがホストを再起動することを許可されている場合、それはそれほど安全ではないということです」私の場合、VTで他のセッションを実行しているとき、またはSSHを介して他の誰かがログインしているときにのみ、このバグが現れました。とにかく、これがあなたのためにそれを修正することを願っています。楽しい :-)

2
pietrek