
すべて、私は VNC を動作させようとしていて、今では思い出せない多くの変更を加えたのですが、再起動後に Ubuntu 14.04 にログインできないことに気付きました。認証は正常に行われたと思いますが、ログイン画面に戻されます。ゲストとして、また Alt-F1 コンソール経由でログインできます。
エラーを Google で検索し、いろいろ試しましたが、うまくいかず、今は何もわかりません。以下の出力を参照してください。XFCE は正常に読み込まれますが、lightdm を元に戻したいことに注意してください。
ここで何が起こっているのか、アドバイスや説明が本当に必要です。よろしくマーティン
-rwxr-xr-x 1 martin martin 50 Mar 14 22:13 .Xauthority* (念のため、このファイルへのアクセス許可を少し強めに設定しました。)
martin@thrio:~$ cat .xsession-errors
ibus のスクリプトは run_im で開始されました。auto
のスクリプトは run_im で開始されました。default
のスクリプトは run_im で開始されました。
init: gnome-session (Unity) メイン プロセス (2745) がステータス 1 で終了しました
init: 通知された D-Bus バスから切断されました
init: logrotate メイン プロセス (2596) が TERM シグナルによって強制終了され
ました init: update-notifier-crash (/var/crash/_usr_lib_ibus_ibus-ui-gtk3.1000.crash) メイン プロセス > (2645) が TERM シグナルによって強制終了さ
れました init: update-notifier-crash (/var/crash/_usr_lib_unity_unity-panel-service.1000.crash) メイン > プロセス (2646) が TERM シグナルによって強制終了されました
init: upstart-dbus-session-bridge メイン プロセス (2697) がステータス 1 で終了しました
init: xsession-init メイン プロセス (2705) が TERM シグナルによって強制終了されました
init: hud メイン プロセス (2715) が TERM シグナルによって強制終了されました
init: unity-panel-service メイン プロセス (2753) が TERM 信号によって強制終了されました
init: window-stack-bridge メイン プロセス (2620) が KILL 信号によって強制終了されましたmartin@thrio:~$ unity --replace
stop: 不明なジョブ: unity-panel-service
start: 不明なジョブ: unity-panel-service
compiz (core) - 情報: プラグインをロードしています: core
compiz (core) - 情報: プラグインを開始しています: core
MIT-MAGIC-COOKIE-1 キーが無効ですcompiz (core) - 致命的: ディスプレイを開けませんでした:0
compiz (core) - 情報: プラグインを停止しています: core
compiz (core) - 情報: プラグインをアンロードしています: core
ディスプレイ設定に関連している可能性があります。私はもともとVNCを動作させようとしており、デフォルトの暗号化をオフにしようとしていましたが、動作していないようで、私が従おうとしていた指示の一部はディスプレイに関連していました。
/var/log/lightdm/lightdm.log から
[+522.72s] DEBUG: Session pid=2785: Authenticate result for user martin: Success
[+522.72s] DEBUG: Session pid=2785: User martin authorized
[+522.72s] DEBUG: Session pid=2785: Greeter requests session Ubuntu
522.72s] DEBUG: Seat: Stopping greeter; display server will be re-used for user session
[+522.72s] DEBUG: Session pid=2785: Sending SIGTERM
[+522.73s] DEBUG: Session pid=2785: Exited with return value 0
[+522.73s] DEBUG: Seat: Session stopped
[+522.73s] DEBUG: Seat: Greeter stopped, running session
[+522.73s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+522.73s] DEBUG: Session pid=2845: Running command /usr/sbin/lightdm-session gnome-session --session=Ubuntu
[+522.73s] DEBUG: Creating shared data directory /var/lib/lightdm-data/martin
[+522.73s] DEBUG: Session pid=2845: Logging to .xsession-errors
[+522.74s] DEBUG: Activating VT 7
[+522.74s] DEBUG: Activating login1 session c4
[+524.24s] DEBUG: User /org/freedesktop/Accounts/User1000 changed
[+528.25s] DEBUG: Session pid=2845: Exited with return value 0
[+528.25s] DEBUG: Seat: Session stopped
[+528.25s] DEBUG: Seat: Stopping display server, no sessions require it
[+528.25s] DEBUG: Sending signal 15 to process 2778
[+528.36s] DEBUG: Process 2778 exited with return value 0
[+528.36s] DEBUG: DisplayServer x-0: X server stopped
[+528.36s] DEBUG: Releasing VT 7
[+528.36s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+528.36s] DEBUG: Seat: Display server stopped
[+528.36s] DEBUG: Seat: Active display server stopped, starting greeter
[+528.36s] DEBUG: Seat: Creating greeter session
[+528.36s] DEBUG: Seat: Creating display server of type x
[+528.36s] DEBUG: Using VT 7
[+528.36s] DEBUG: Seat: Starting local X display on VT 7
[+528.36s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+528.36s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+528.36s] DEBUG: DisplayServer x-0: Launching X Server
[+528.36s] DEBUG: Launching process 3516: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+528.36s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+528.43s] DEBUG: Got signal 10 from process 3516
[+528.43s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+528.43s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+528.43s] DEBUG: Seat: Display server ready, starting session authentication
[+528.43s] DEBUG: Session pid=3523: Started with service 'lightdm-greeter', username 'lightdm'
[+528.44s] DEBUG: Session pid=3523: Authentication complete with return value 0: Success
[+528.44s] DEBUG: Seat: Session authenticated, running command
[+528.44s] DEBUG: Session pid=3523: Running command /usr/lib/lightdm/lightdm-greeter- session /usr/sbin/unity-greeter
[+528.44s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+528.44s] DEBUG: Session pid=3523: Logging to /var/log/lightdm/x-0-greeter.log
[+528.45s] DEBUG: Activating VT 7
[+528.45s] DEBUG: Activating login1 session c5
[+528.57s] DEBUG: Session pid=3523: Greeter connected version=1.10.4
[+528.69s] DEBUG: Session pid=3523: Greeter start authentication for martin
[+528.69s] DEBUG: Session pid=3583: Started with service 'lightdm', username 'martin'
[+528.70s] DEBUG: Session pid=3583: Got 1 message(s) from PAM
[+528.70s] DEBUG: Session pid=3523: Prompt greeter with 1 message(s)
[+529.73s] DEBUG: User /org/freedesktop/Accounts/User1000 changed
martin@thrio:~$ uname -r
3.13.0-46-generic
martin@thrio:~$ lsmod|grep fglrx
martin@thrio:~$
martin@thrio:/var/log$ lshw -c video
WARNING: you should run this program as super-user.
*-display
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:48 memory:f7400000-f77fffff memory:e0000000-efffffff ioport:f000 (size=64)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
martin@thrio:/var/log$ modinfo
modinfo: ERROR: missing module or filename.
レビュー後の追加情報
「ドライバーをインストールしましたか? 任意のユーザーで TTY (Ctrl+Alt+F1..F6) から接続できますか?」 ドライバーなし - TTYログイン可能
「そこにあるすべてのファイルを /home ディレクトリに移動して (コピーを取るため)、kdm を使用してログインしようとしました (私は Kubuntu を使用しています)。ログイン画面として kdm を選択するには、sudo dpkg-reconfigure lightdm を実行して kdm を選択しました。kdm では、以前のセッションまたはデフォルトのセッションを選択できます。これが正しい方法でした。」
KDM をインストールしました (sudo apt-get install KDM) - インストール中に KDM または lightDM を選択するオプションがあったので、lightDM を選択しました。再起動しました
が、変化はありませんでした。ホーム ディレクトリ /home/martin を /home/martinbak に移動して再起動しましたが、変化はありませんでした。
martin@thrio:~$ sudo dpkg-reconfigure kdm and rebooted - entered KDM shell - error "cannot enter home directory. using /." - still would not log in .
martin@thrio:~$ sudo dpkg-reconfigure lightdm and switched back to lightdm - rebooted - same login loop
martin@thrio:/home$ sudo mv martinbak martin and rebooted.
Chown .Xauthority - これは以前にチェックされており、正しいです
Chown /tmp - これは以前にチェックされており、正しいです
「両方でない場合は、 1.dpkg-reconfigure lightdm
2.アンインストールして再インストールすることをお勧めします。」
dpkg-reconfigure が試行されました
martin@thrio:~$ sudo apt-get purge lightdm
"lightdm (1.10.4-0ubuntu2) を削除しています...
lightdm (1.10.4-0ubuntu2) の設定ファイルを消去しています...
ユーザー lightdm を削除しています。メンバーがもういません。 **userdel: ユーザー lightdm は現在プロセス 2092 /usr/sbin/deluser によって使用されています: `/usr/sbin/userdel lightdm' がエラー コード 8 を返しました。終了しています。dpkg : パッケージ lightdm の処理中にエラーが発生しました (--purge): サブプロセスがインストールされました 削除後のスクリプトがエラー終了ステータス 1 を返しました man-db (2.6.7.1-1ubuntu1) のトリガーを処理しています... 処理中にエラーが発生しました: lightdm E: サブプロセス /usr/bin/dpkg がエラー コード (1) を返しました" ** martin@thrio:~$ sudo apt-get installライト lightdm' ...
Warning: group
きれいに削除して再インストールしたようには見えません。
「あきらめかけた後、.xsession-errors を見て、.profile にタイプミスがあることに気づきました。」
私はこのファイルを編集していませんが、問題があった場合、何を探していたのか分かりません。
`martin@thrio:~$ cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
martin@thrio:~$ `
_sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart_
martin@thrio:~$ mv ~/.Xauthority ~/.Xauthority.bak
martin@thrio:~$ sudo service lightdm restart
[sudo] password for martin:
lightdm stop/waiting
lightdm start/running, process 3032
martin@thrio:~$
ログインループにまだ陥っています
「xubuntu-desktop を再インストールしたら修正されました」
martin@thrio:~$ sudo apt-get purge xubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'xubuntu-desktop' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
martin@thrio:~$
_「次に、 sudo apt-get install gdm と入力します。インストールが完了したら、 sudo dpkg-reconfigure gdm と入力し、プロンプトに従ってログイン マネージャーとして設定します。Ctrl
+ Alt + F7 を押してログイン画面に戻ります。ログイン画面は見た目が変わります。ログインは機能しますか? 機能する場合は、問題は解決です!
うまくいかない場合は、フルスクリーン ターミナルに戻り、sudo dpkg-reconfigure lightdm と入力して、LigthDM を再びログイン マネージャーとして設定します。これで、これがグラフィック ドライバーの問題であることが確実にわかります。"_
sudo apt-get install gdm
再起動するとログインループが発生します。(これはグラフィックドライバに問題があることを示しています。
martin@thrio:~$ lsmod|grep fglrx
martin@thrio:~$
この検索に対して何らかの出力を取得する必要がありますか?
答え1
質問の中で回答をいただいていますが、記録のためにこれを書きます。ctrl + alt + F1
コマンド プロンプトでユーザー名を入力してログインします。
user@dell$ ls -l ~/.ICEauthority
-rw------- root root 3668 May 28 09:28 /home/user/.ICEauthority
user@dell$ sudo chmod 777 ~/.ICEauthority
password:
user@dell$ ls -l ~/.ICEauthority
-rwxrwxrwx root root 3668 May 28 09:28 /home/user/.ICEauthority
ctrl + alt + F7
ログインもできました。
答え2
私の .xsession-errors には、元の質問に記載されているのと同様のエラーがあります。私も、@Martin が試したほぼすべてのことを試しました。
最終的に私にとってうまくいったのはリンクからの答えでしたlightdmが起動しない基本的には、lightdm を停止し、xserver を再設定し、lightdm を起動して、マシンを再起動することになります。その後、元のユーザー アカウントにログインできるようになりました。
参考までに: 私は Ubuntu 14.04 LTS (lightdm を使用) を実行している Lenovo T530 マシンを持っており、Cuda 6.5 を使用するために nvidia ドライバーをインストールしています。
答え3
壊れたパッケージがたくさんあります。パッケージを追跡する必要があります。強制インストールを試してください。このコマンドを実行すると、壊れたパッケージに関するフィードバックが「通常」表示され、dpkgサブプロセス[1]が実行される理由がわかります。lightdmデータも削除されていない可能性があり、lightdmグループIDもまだ存在している可能性があります。/etc/groupでcatを実行してcatチェックしてください。
:~$ cat /etc/group
:~$ sudo apt-get -f install -y
ディスプレイ変数にも問題があり、/tmp/.x0-lock キーが以前と異なるため、ロックアウトされたままになっています。マジック クッキーが破損すると、深刻な問題に陥ります。ubuntu-desktop やその他の多くのものをアンインストールしなければならない可能性があります。とりあえず、GDM と openbox をインストールしてください。
ctl-alt-F6
:~$ sudo apt-get install openbox -y
:~$ sudo apt-get install gdm -y
gdm をディスプレイ マネージャーにし、openbox をウィンドウ マネージャーにするオプションを選択します。これが問題に対する最も簡単な解決策かもしれません。
よろしければフィードバックを返信してください。