ubuntu 12.04登录返回登录

这不是一个解决问题,我在上网本,多年来一直工作正常,我没有nvidia图形,客户用户可以很好地使用现有的图形,并添加一个新的用户已经与现有的图形工作得很好。

我已经尝试了解决方案中除了一个答案之外的所有答案(创建新用户并复制所有内容,解决方法)。

12.04安装在我的戴尔笔记本上。 自从2010年中期开始运行之前的LTS ubuntu之前,它已经运行了很长时间,在12.04之前。 一切都很好。

昨天无法从欢迎屏幕登录,lightdm。 接受登录名/密码,但大约一秒后返回登录界面。

我可以登录一个客人会议就好了,一切正常,团结运作良好,没有图形问题,一切都好。 当使用ctrl / alt / F1进入提示并登录到CLI也很好时,请查看encryptfs主目录中的所有文件,因此密码正常。

因为在新帐户和访客会话上一切正常,我认为Xorg.conf没有问题。

我删除了.Xauthority,没有快乐。

我的主文件夹具有正确的权限drwxr-xr-x并由我拥有。

壁纸由我拥有,但所有人都可读。

我的硬盘虽然很满,仍然有超过5GB的可用df -h

我试过sudo dpkg –configure -a; 和sudo apt-get update; 我不想从12.04升级。

我没有nvidia,所以我不打算尝试他们的司机。 现有的驱动程序在新帐户上运行正常。

我不想按密码重置程序,因为密码不是问题,在tty上工作正常,当我尝试gui登录时没有出现无效密码消息。

我怀疑gdm有些不妥之处,也许是我自己登录时的权限问题。 这是:0-greeter.log

gnome-session[2146]: WARNING: Failed to start app: Unable to start application: Failed to execute child process "/usr/lib/at-spi/at-spi-registryd" (No such file or directory) (gnome-settings-daemon:2152): color-plugin-WARNING **: failed to create directory on startup: Error creating directory: Permission denied gnome-session[2146]: WARNING: Failed to start app: Unable to start application: Failed to execute child process "gnome-power-manager" (No such file or directory) (gnome-settings-daemon:2152): color-plugin-WARNING **: failed to create profile from EDID data: Error creating directory: Permission denied (gnome-settings-daemon:2152): color-plugin-WARNING **: failed to create profile from EDID data: Error creating directory: Permission denied gdm-simple-greeter[2177]: Gtk-WARNING: Overriding tab label for notebook gdm-simple-greeter[2177]: Gtk-WARNING: Overriding tab label for notebook gdm-simple-greeter[2177]: Gtk-WARNING: Overriding tab label for notebook gdm-simple-greeter[2177]: Gtk-WARNING: Overriding tab label for notebook gdm-simple-greeter[2177]: Gtk-WARNING: Overriding tab label for notebook gdm-simple-greeter[2177]: Gtk-WARNING: /build/buildd/gtk+3.0-3.4.2/./gtk/gtkwidget.c:7117: widget not within a GtkWindow gdm-simple-greeter[2177]: Gtk-CRITICAL: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed gdm-simple-greeter[2177]: Gtk-CRITICAL: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed gdm-simple-greeter[2177]: Gtk-WARNING: gtk_widget_size_allocate(): attempt to allocate widget with width -47 and height -47 Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1000007 (Login Wind) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. gdm-simple-greeter[2177]: Gtk-CRITICAL: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed gdm-simple-greeter[2177]: Gtk-CRITICAL: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed gdm-simple-greeter[2177]: Gtk-WARNING: gtk_widget_size_allocate(): attempt to allocate widget with width -47 and height -47 gdm-simple-greeter[2177]: CRITICAL: get_column_number: assertion `i < gtk_tree_view_get_n_columns (treeview)' failed gdm-simple-greeter[2177]: CRITICAL: get_column_number: assertion `i < gtk_tree_view_get_n_columns (treeview)' failed Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1000007 (Login Wind) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1000007 (Login Wind) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1000007 (Login Wind) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1000007 (Login Wind) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: CurrentTime used to choose focus window; focus window may not be correct. Window manager warning: Got a request to focus the no_focus_window with a timestamp of 0. This shouldn't happen! ** (gnome-settings-daemon:2152): WARNING **: Name taken or bus went away - shutting down g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting. gdm-simple-greeter[2177]: Gdk-WARNING: gdm-simple-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. (gnome-settings-daemon:2152): libappindicator-WARNING **: Unable to send signal for NewStatus: The connection is closed (gnome-settings-daemon:2152): Gdk-WARNING **: gnome-settings-daemon: Fatal IO error 0 (Success) on X server :0. 

这是lightdm.log的一个部分

 [+11.23s] DEBUG: Started session 1830 with service 'lightdm', username 'chris' [+11.25s] DEBUG: Session 1830 got 1 message(s) from PAM [+11.25s] DEBUG: Prompt greeter with 1 message(s) [+13.58s] DEBUG: Continue authentication [+18.58s] DEBUG: Session 1830 authentication complete with return value 0: Success [+18.58s] DEBUG: Authenticate result for user chris: Success [+18.62s] DEBUG: User chris authorized [+18.64s] DEBUG: Greeter requests session ubuntu-2d [+18.64s] DEBUG: Using session ubuntu-2d [+18.64s] DEBUG: Stopping greeter [+18.64s] DEBUG: Session 1168: Sending SIGTERM [+18.77s] DEBUG: Session 1168 exited with return value 0 [+18.77s] DEBUG: Greeter quit [+18.82s] DEBUG: Dropping privileges to uid 1000 [+18.82s] DEBUG: Restoring privileges [+18.89s] DEBUG: Dropping privileges to uid 1000 [+18.89s] DEBUG: Writing /home/chris/.dmrc [+18.89s] DEBUG: Restoring privileges [+18.98s] DEBUG: Starting session ubuntu-2d as user chris [+18.98s] DEBUG: Session 1830 running command /usr/sbin/lightdm-session gnome-session --session=ubuntu-2d [+19.12s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0 [+19.12s] DEBUG: Greeter closed communication channel [+22.35s] DEBUG: Session 1830 exited with return value 0 [+22.35s] DEBUG: User session quit [+22.35s] DEBUG: Stopping display 

19世纪左右的位置让我感兴趣,一个Ubuntu-2d会话开始然后迅速变化退出。

这是/var/log/lightgm/x-0-greeter.log

 Activating service name='org.a11y.atspi.Registry' [+0.00s] DEBUG: unity-greeter.vala:895: Starting unity-greeter 0.2.9 UID=118 LANG=en_GB.UTF-8 [+0.00s] DEBUG: unity-greeter.vala:898: Setting cursor [+0.00s] DEBUG: unity-greeter.vala:902: Creating background surface [+0.00s] DEBUG: unity-greeter.vala:905: Loading command line options [+0.00s] DEBUG: unity-greeter.vala:933: Setting GTK+ settings Successfully activated service 'org.a11y.atspi.Registry' ** (at-spi2-registryd:1979): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files ** (at-spi2-registryd:1979): WARNING **: Unable to register client with session manager [+0.16s] DEBUG: unity-greeter.vala:956: Creating Unity Greeter [+0.16s] DEBUG: Connecting to display manager... [+0.16s] DEBUG: Wrote 17 bytes to daemon [+0.16s] DEBUG: Read 8 bytes from daemon [+0.16s] DEBUG: Read 120 bytes from daemon [+0.16s] DEBUG: Connected version=1.2.3 default-session=ubuntu show-manual-login=false hide-users=false has-guest-account=true [+0.45s] DEBUG: menubar.vala:318: LANG=en_GB.UTF-8 LANGUAGE=(null) [+0.49s] CRITICAL: g_error_free: assertion `error != NULL' failed [+0.51s] DEBUG: get entries [+0.51s] DEBUG: menubar.vala:511: Adding indicator object 0x84d41ec at position 0 [+0.53s] DEBUG: Evaluating bitmask for '%H:%M' [+0.53s] DEBUG: Checking against 1 possible times [+0.57s] DEBUG: Guessing max time width: 36 [+0.57s] DEBUG: get entries [+0.57s] DEBUG: menubar.vala:511: Adding indicator object 0x853101c at position 1 [+0.58s] WARNING: IndicatorObject class does not have an accessible description. [+0.62s] WARNING: IndicatorObject class does not have an accessible description. [+0.62s] DEBUG: get entries [+0.62s] DEBUG: get entries [+0.62s] DEBUG: menubar.vala:511: Adding indicator object 0x844cd2c at position 2 [+0.62s] DEBUG: menubar.vala:335: LANG=en_GB.UTF-8 LANGUAGE=(null) [+0.66s] DEBUG: Loaded session /usr/share/xsessions/ubuntu-2d.desktop (Ubuntu 2D, This session logs you into Ubuntu 2D Mode) [+0.66s] DEBUG: Ignoring session /usr/share/xsessions/gnome-shell.desktop [+0.66s] DEBUG: Loaded session /usr/share/xsessions/xterm.desktop (Recovery Console, Failsafe session with only xterm) [+0.66s] DEBUG: Loaded session /usr/share/xsessions/ubuntu.desktop (Ubuntu, This session logs you into Ubuntu) [+0.66s] DEBUG: Ignoring session /usr/share/xsessions/gnome.desktop [+0.66s] DEBUG: Loaded session /usr/share/xsessions/xsession.desktop (User Defined Session, Custom ~/.xsession script) [+0.66s] DEBUG: session-chooser.vala:42: Adding session xterm (Recovery Console) [+0.67s] DEBUG: session-chooser.vala:42: Adding session ubuntu (Ubuntu) [+0.67s] DEBUG: session-chooser.vala:42: Adding session ubuntu-2d (Ubuntu 2D) [+0.67s] DEBUG: session-chooser.vala:42: Adding session xsession (User Defined Session) [+1.38s] DEBUG: Setting keyboard layout to 'gb' [+1.49s] DEBUG: main-window.vala:98: Screen is 800x600 pixels [+1.49s] DEBUG: main-window.vala:104: Monitor 0 is 800x600 pixels at 0,0 [+1.49s] DEBUG: main-window.vala:104: Monitor 1 is 800x600 pixels at 0,0 [+1.51s] DEBUG: Loading users from org.freedesktop.Accounts [+1.51s] DEBUG: Loading user /org/freedesktop/Accounts/User1000 [+1.57s] DEBUG: Loading user /org/freedesktop/Accounts/User1001 [+1.65s] DEBUG: Loading sessions from org.freedesktop.DisplayManager [+1.65s] DEBUG: unity-greeter.vala:332: Adding/updating user chris (chris) [+1.65s] DEBUG: unity-greeter.vala:332: Adding/updating user guest (guest) [+1.65s] DEBUG: unity-greeter.vala:189: Adding guest account entry [+1.70s] DEBUG: Starting authentication for user chris... [+1.70s] DEBUG: Wrote 21 bytes to daemon [+1.70s] DEBUG: unity-greeter.vala:959: Showing greeter [+1.70s] DEBUG: unity-greeter.vala:357: Showing main window [+1.71s] DEBUG: New style for time label [+1.72s] DEBUG: Evaluating bitmask for '%H:%M' [+1.72s] DEBUG: Checking against 1 possible times [+1.72s] DEBUG: Guessing max time width: 36 [+1.77s] DEBUG: background.vala:315: Regenerating backgrounds [+1.77s] DEBUG: background.vala:67: Making background /usr/share/backgrounds/warty-final-ubuntu.png at 800x600 [+1.78s] DEBUG: New style for time label [+1.78s] DEBUG: Evaluating bitmask for '%H:%M' [+1.78s] DEBUG: Checking against 1 possible times [+1.78s] DEBUG: Guessing max time width: 36 [+1.79s] DEBUG: unity-greeter.vala:972: Starting main loop [+1.79s] DEBUG: Read 8 bytes from daemon [+1.79s] DEBUG: Read 35 bytes from daemon [+1.79s] DEBUG: Prompt user with 1 message(s) [+2.04s] DEBUG: background.vala:67: Making background /home/chris/Pictures/steelEnds.JPG at 800x600 [+2.04s] DEBUG: background.vala:144: Error loading background: Failed to open file '/home/chris/Pictures/steelEnds.JPG': Permission denied [+2.07s] DEBUG: Num devices: '2' [+2.07s] DEBUG: get_primary_device: got data from object /org/freedesktop/UPower/devices/line_power_ACAD [+2.07s] DEBUG: get_primary_device: got data from object /org/freedesktop/UPower/devices/battery_BAT1 [+2.07s] DEBUG: put_primary_device: got data from object /org/freedesktop/UPower/devices/battery_BAT1 [+2.07s] DEBUG: set_accessible_desc: setting accessible description to 'Battery (charged)' [+2.07s] DEBUG: Num devices: '2' [+2.07s] DEBUG: menu_add_device: got data from object /org/freedesktop/UPower/devices/line_power_ACAD [+2.07s] DEBUG: menu_add_device: got data from object /org/freedesktop/UPower/devices/battery_BAT1 [+2.08s] DEBUG: icon_policy is: 0 (present==0, charge==1, never==2) [+2.08s] DEBUG: count_batteries found 1 batteries (0 are charging/discharging) [+2.08s] DEBUG: should_be_visible: yes [+2.08s] DEBUG: refresh_entry_accessible_desc: setting entry 0x844ccd4 accessible description to 'Battery (charged)' [+2.08s] DEBUG: get entries [+2.08s] DEBUG: get entries [+2.08s] DEBUG: get entries [+2.08s] DEBUG: menubar.vala:511: Adding indicator object 0x844ccd4 at position 2 [+2.09s] WARNING: Getting layout failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `com.canonical.dbusmenu' on object at path /com/canonical/indicator/users/menu [+2.16s] DEBUG: Setting keyboard layout to 'gb' [+2.33s] DEBUG: notify visible signal received [+2.33s] CRITICAL: ido_calendar_menu_item_set_date: assertion `IDO_IS_CALENDAR_MENU_ITEM(menuitem)' failed [+2.35s] DEBUG: New calendar item [+2.37s] DEBUG: indicator-sound: new_volume_slider_widget [+2.39s] DEBUG: indicator-sound: new_voip_slider_widget [+2.50s] DEBUG: unity-greeter.vala:315: starting system-ready sound [+2.60s] DEBUG: background.vala:116: Render of background /home/chris/Pictures/steelEnds.JPG complete [+2.60s] CRITICAL: background_loader_create_pattern: assertion `image != NULL' failed [+2.62s] DEBUG: background.vala:116: Render of background /usr/share/backgrounds/warty-final-ubuntu.png complete 

谢谢nerof61尝试过sudo chown -R chris:chris / home / chris

一些错误

 chown: changing ownership of '/home/chris/.cache/compizconfig-1/staticswitcher.pb ': Input/output error chown: changing ownership of '/home/chris/compiz-1/session/10d1c......... ': Input/output error 

登录仍然有相同的问题,没有变化。

查看这两个文件,它们都拥有chris:chris,长度为0个字节,两个都是在机器上次正常工作的两天前最后修改过的。 我会想一想,也许我应该重新安装compiz。

我一直在考虑X的问题。检查/hoe/chris/.xsession-errors,对我没什么帮助,希望有人可以指出我正确的方法?

 openConnection: connect: No such file or directory cannot connect to br1tty at: 0 /home/chris/gnupg/gpg-agent-info-chris-laptop: Syntax error. '(' unexpected 

我会发现它会增加更多。

我试过从tty添加一个用户john。 一旦完成,我然后重新启动并尝试登录,即使与约翰完全相同的问题,密码接受然后几乎立即踢回登录屏幕。 我仍然可以使用访客会话,但没有ctrl / alt / F1的问题

后来。 我注意到新用户john的主目录由root拥有。 使用sudo chown john:john john我改变了主目录的所有权。 现在我可以像约翰一样正常登录,以便取得一些进展。

我真的很挣钱,任何帮助表示赞赏。

登录到TTY(我建议TTY1,它是CTRL + ALT + F1 )并输入:

 sudo chown -R YOURUSERNAME:YOURUSERNAME /home/YOURUSERNAME/ 

显然,你需要用你的用户名替换YOURUSERNAME

然后,返回登录屏幕并登录。

希望这可以帮助!!!