
所有,我試圖讓 VNC 工作,做了很多我現在不記得的更改,當我發現重新啟動後我無法登入 Ubuntu 14.04 時。我相信我的身份驗證正常,但返回登入畫面。我可以透過 Alt-F1 主控台以訪客身分登入。
我用谷歌搜尋了錯誤並嘗試了很多方法,但沒有成功,現在一無所知。請參閱下面的輸出。請注意,XFCE 確實載入正常,但我想取回我的 lightdm。
我確實需要一些關於這裡發生的事情的建議和解釋。問候馬丁
-rwxr-xr-x 1 martin martin 50 Mar 14 22:13 .Xauthority* (我為這個文件授予權限有點過頭了 - 以防萬一。)
martin@thrio:~$ cat .xsession-errors ibus
腳本在 run_im 啟動。
自動腳本在 run_im 處啟動。
預設腳本從 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.100. > 進程(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
compiz (核心) - 訊息: 啟動插件:核心
無效的 MIT-MAGIC-COOKIE-1 keycompiz(核心) - 致命:無法開啟顯示:0
compiz(核心) - 訊息:正在停止插件:核心
compiz(核心) - 訊息:正在卸載插件:核心
它可能與顯示設定有關:我最初試圖讓 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 '沒有更多成員 。 ) ): 子程序安裝的刪除後腳本回傳錯誤退出狀態 1 正在處理 man-db (2.6.7.1-1ubuntu1) 的觸發器 ... 處理時遇到錯誤: lightdm E: 子程序/usr/bin/dpkg回傳錯誤代碼 (1)" ** martin@thrio:~$ sudo apt-get install lightdm 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 以將 LightDM 設定為再次登入管理員。現在您知道這肯定是您的圖形驅動程式的問題。
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 /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 成為您的視窗管理器。這可能是解決您的問題的最簡單的方法。
如果您願意的話,請寫回回饋?