登录循环 – 无法运行统一 – 不是Xauthority所有权,但可能与显示有关?

所有,我试图让VNC工作,做了很多我现在不记得的变化,当我在重新启动后发现我无法登录到Ubuntu 14.04时。 我相信我认证确定,但返回登录屏幕。 我可以以Guest身份登录并通过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开始。
自动脚本在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.1000.crash)main>进程(2646)被TERM信号杀死
init:upstart-dbus-session-bridge主进程(2697)以状态1终止
init:xsession-init主进程(2705)被TERM信号杀死
init:hud主进程(2715)被TERM信号杀死
init:由TERM信号杀死的unity-panel-service主进程(2753)
init:窗口堆栈桥主进程(2620)被KILL信号杀死

martin @ thrio:〜$ unity –replace
停止:未知工作:统一面板服务
开始:未知工作:团结面板服务
compiz(核心) – 信息:加载插件:核心
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。 重新启动 – 没有变化
搬家dir / 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' ...
Warning: group
lightdm' ...
Warning: group
lightdm' ...
Warning: group
lightdm’没有更多成员。
** userdel:用户lightdm当前由进程2092使用
/ usr / sbin / deluser:`/ usr / sbin / userdel lightdm’返回错误代码8.退出。
dpkg:error handling包lightdm(–purge):
子进程安装后删除脚本返回错误退出状态1
处理man-db的触发器(2.6.7.1-1ubuntu1)……
处理时遇到错误:
lightdm
E:子进程/ usr / bin / dpkg返回错误代码(1)“** martin @ thrio:〜$ sudo apt-get install lightdm

它看起来不像一个干净的删除和重新安装。

“几乎放弃后我看了.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:~$ 

我应该为此搜索获得一些输出吗?

虽然你已经在你的问题中给出了答案,但是写下来作为记录。 键入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和登录工作。

我的.xsession-errors与原始问题中列出的错误类似。 我也尝试了几乎所有@Martin尝试过的东西。

最后对我有用的是来自lightdm链接的答案没有启动 ,这主要涉及停止lightdm,重新配置xserver,启动lightdm然后重启机器。 在此之后,我能够登录到我的原始用户帐户。

仅供参考:我有一台运行Ubuntu 14.04 LTS(使用lightdm)的联想T530机器,我安装了用于Cuda 6.5的nvidia驱动程序。

你有很多破损的包裹。 你必须跟踪包裹。 尝试强制安装,运行此命令将“通常”让您反馈已损坏的包,以便让您知道为什么dpkg子进程[1]正在进行。 您的lightdm数据可能也没有删除,并且lightdm组ID可能仍然存在,您可以通过在/ etc / group上运行cat来检查

 :~$ cat /etc/group :~$ sudo apt-get -f install -y 

您的显示变量也有问题,并且/tmp/.x0-lock键与以前不同,这会让您锁定。 一旦你腐蚀了魔法cookies你的深层绑定。 您最终可能需要卸载ubuntu-desktop以及更多内容。 现在安装GDM和openbox。

 ctl-alt-F6 :~$ sudo apt-get install openbox -y :~$ sudo apt-get install gdm -y 

选择将gdm作为显示管理器并打开窗口管理器的选项。 这可能是解决您问题的最简单方法。

如果你愿意,请回馈反馈!!!