总而言之,我试图使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开始。
初始化:gnome-session(Unity)主进程(2745)以状态1终止
初始化:与通知的D-Bus总线断开连接
初始化:logrotate主进程(2596)被TERM信号杀死
初始化:update-notifier-crash(/ var / crash /_usr_lib_ibus_ibus-ui-gtk3.1000.crash)主进程>(2645)被TERM信号
初始化终止:update-notifier-crash(/var/crash/_usr_lib_unity_unity-unity-panel-service.1000.crash)main>进程(2646)被TERM信号
初始化杀死:upstart-dbus-session-bridge主进程(2697)终止,状态为1
初始化:被TERM信号杀死的xsession-init主进程(2705)
初始化:被TERM信号杀死的hud主进程(2715)
初始化:被TERM信号杀死的unity-panel-service主进程(2753)
初始化:窗口堆栈桥主进程(2620)被KILL信号杀死martin @ thrio:〜$ unity --replace
stop:未知作业:unity-panel-service
开始:未知作业: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'没有成员。
** userdel:进程2092当前正在使用用户lightdm
/ usr / sbin / deluser:`/ usr / sbin / userdel lightdm'返回了错误代码8。退出
。dpkg:错误处理软件包lightdm(--purge ):
安装的子
进程删除后的脚本返回错误退出状态1 处理man-db的触发器(2.6.7.1-1ubuntu1)...
处理时遇到错误:
lightdmlightdm' ...
Warning: group
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:~$
我应该为此搜索得到一些输出吗?