
即使我使用正確的密碼,我也無法登入桌面。當我輸入並按下回車鍵時,螢幕變黑並顯示“檢查電池”之類的內容。
我已經搜索過這個問題,但要么我誤解了一些術語,要么它不起作用。我讀過的一些帖子表明 lightdm 是問題所在。我不明白 lightdm 以某種方式與桌面相關嗎?我已按 ctrl+alt+f1 透過終端登錄,但對從這裡做什麼有點困惑。我是 Ubuntu 的一個相對較新的用戶,所以我擔心我對終端的了解很差。
我不確定我做了什麼導致這個錯誤發生。我很喜歡使用 Ubuntu 而不是 Windows,但這讓我的體驗變得很糟糕。
任何幫助將非常感激。
富有的
我嘗試startx
使用 ctrl+alt+f1 並發生以下情況:
xauth: error in locking authority file /home/richard/.Xauthority
xauth: error in locking authority file /home/richard/.Xauthority
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again.
Please consult the X.org foundation support
at http://wiki.x.org for help
ddxSigGiveUp: closing log
No protocol specified
No protocol specified
xlinit: giving up
xlinit: unable to connect to X server: resource temporarily unavailable
xlimit: server error
xauth: error in locking authority file /home/richard/.Xauthority
我瀏覽過這個網站http://wiki.x.org但我不太明白它與我嘗試登入的關係。如果我很遲鈍,請道歉。
答案1
嘗試這些解決方案:
從您的 tty 中刪除 .Xauthority 文件,也需要刪除 .xsession-errors 文件。
sudo rm .Xauthority
sudo rm .xsession-errors*
檢查主目錄:
ls -l /home
您可能必須使用 chown 將所有權歸還給您的帳戶
sudo chown -R username:group /home/username
答案2
按 crtl+alt+f1 到終端機並輸入
sudo stop lightdm
sudo Xorg -configure
sudo dpkg-reconfigure lightdm
sudo start lightdm
它應該可以解決你的問題。