桌面登录失败,终端工作

我有一个新设置的12.04 LTS个人电脑系统(120 GB SSD,1 TB HDD,16 GiB RAM); 几天后,我再也无法登录到图形桌面了:闪存的窗口很短,很快消失( 编辑:见下文 ),我再次面对登录界面。 我相信modprobevbox有一些东西,但我读不够快……

我可以登录终端( Ctrl + Alt + F1 )。 将我的主目录中的所有内容都输给我是没有帮助的: my-group ,就像这里建议的一样。

这是我在/var/log可以找到的,为日期和时间的grepping(我在之后插入了换行符;保留了实时值):

auth.log:

  22:43:01  lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "tobias"  22:43:08  lightdm: pam_unix(lightdm:session): session closed for user lightdm  22:43:08  lightdm: pam_unix(lightdm:session): session opened for user tobias by (uid=0)  22:43:08  lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0  22:43:08  lightdm: pam_unix(lightdm:session): session closed for user tobias  22:43:09  lightdm: pam_unix(lightdm:session): session opened for user lightdm by (uid=0)  22:43:09  lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0  22:43:10  lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "tobias"  22:43:10  dbus[756]: [system] Rejected send message, 2 matched rules; type="method_call", sender="1:43" (uid=104 pid=1639 comm="/usr/lib/indicator-datetime/indicator-datetime-ser") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.15" (uid=0 pid=1005 comm="/usr/sbin/console-kit-daemon --no-daemon ") 

kern.log:

  22:43:00  kernel: [ 16.084525] eth0: no IPv6 routers present 

系统日志:

  22:43:00  kernel: [ 16.084525] eth0: no IPv6 routers present  22:43:01  ntpdate[1492]: adjust time server 91.189.94.4 offset -0.162831 sec  22:43:08  acpid: client 969[0:0] has disconnected  22:43:08  acpid: client connected from 1553[0:0]  22:43:08  acpid: 1 client rule loaded 

我安装了Virtualbox和Truecrypt,但我想不出他们可能阻止图形登录的原因。

我糊涂了:

  • 关于requirement "user ingroup nopasswdlogin" not met是什么? 我使用密码登录,登录终端时密码正常!
  • 我可以以某种方式读取错误输出,例如通过延迟它,将其重定向到文件,或让系统提示我按键吗?
  • 可能有任何最近的更新导致我的问题? 我应该安装挂起的更新吗? 怎么 ,顺便说一句,没有访问图形用户界面?

我有一些关于Linux shell的工作知识,但我是Ubuntu的新手。 任何帮助,将不胜感激。

编辑:昨天sudo shutdown now后( sudo shutdown now ),我在屏幕上发现了以下文字,这似乎是之前提到的“闪烁”文字(格式化;有一些愚蠢的领先空白):

 Could not write bytes: broken pipe speech-dispatcher disabled; edit /etc/default/speed-dispatcher * Starting VirtualBox kernel modules * modprobe vboxdrv failed. Please use 'dmesg' to find out why saned disabled; edit /etc/default/saned * Checking battery state... [ OK ] 

手动复制后,按几秒钟按钮关闭机器。

可能是虚拟机(4.2已安装)导致问题。 我今天晚些时候会添加一些日志文件提取(MET)。

编辑 ,记录:我尝试了以下内容,来自/ a / 133754/103086 :

  • sudo apg-get install gdm (出现提示时,选择GDM
  • 重新启动; 登录也因GDM而失败
  • sudo dpkg-reconfigure lightdm ,重启; 登录将无法正常工作
  • 我的~/.Xauthority文件为空; 删除它并重新启动并没有改变任何东西

此外:

  • 卸载virtualbox( sudo apt-get remove virtualbox-4.2 ),重新启动

编辑 :我将选定/过滤的日志文件的zip存档上传到http://www.tobias-herp.de/en/errors/ubuntu-gui-lockout 。 最近保持apt-get upgrade ,但不幸的是问题仍然存在。

删除〜/ .Xauthority对我有用

我有同样的问题。 原来我的问题是~/.Xauthority以root身份更新,从那时起只有root才能读取它。 它阻止我从用户名启动任何X会话。 我不得不sudo rm ./.Xauthority ,之后它运作良好。

我终于放弃并重新安装了系统。 这不是问题,因为系统非常新鲜,而且大多数个人数据尚未迁移到它。 我无法确定问题不是由非标准包引起的,所以……

所以我重新开始,我采取预防措施,以便下次更好。 安装完成后,我更新了系统,安装了一些关键的软件包,并密切关注配置:

 sudo bash apt-get upgrade apt-get install ssh mercurial vim cd /etc/ vim mercurial/hgrc hg init . hg add * hg commit 

因此,每当出现新问题时,我都应该有更好的机会知道可能出现的问题。

在我的情况下,这是由错误的~/.dmrc引起的,如此处所述。 这可以通过~/.xsession-errors检测到,我遇到以下错误:

x-terminal-emulator:致命IO错误:客户端杀死konsole(1598)Konsole :: SessionManager :: ~SessionManager:Konsole SessionManager被破坏,会话仍然活着

我将一个export PATH=$PATH:/home//SomeFolder/etc/profile的末尾后发生了类似的问题。 登录终端后,删除该线路并重新启动,我可以正常登录,问题似乎已经消失。

文档:

  • 我在登录屏幕前在屏幕上看到以下闪烁文本:

     Could not write bytes: broken pipe * Starting VirtualBox kernel modules saned disabled; edit /etc/default/saned 
  • Ubuntu 12.04 LTS,64位,Intel Core i5,6GB。
  • 我安装了VirtualBox 4.2.18,但似乎工作正常。
  • 我使用GRUB双启动Windows 8。

现在使用lightdm +任何非统一的欢迎进入这个。 如果我在/etc/lightdm/lightdm.conf中将greeter设置为unity-greeter,它似乎有效。 不知道为什么。

编辑:编辑。 我刚刚接受更新的东西必定会引起这种情况,现在即使是统一的欢迎也不起作用。

在我的情况下,我在.xprofile中添加了一些命令,导致登录后立即返回登录屏幕。 我发现的错误是一样的。 从〜/ .profile中移除所有非必要的东西,〜/。xprofile应该使情况恢复正常。

对我来说,这发生在.profile文件中存在一些无效的路径条目时。 当我删除它,它完美地工作。 检查.xsession-error文件以查看它报告的错误

在Ubuntu 14.04.02 LTS上有同样的错误。 我打开了日志文件/var/log/lightdm/lightdm.log并看到消息,例如...not enough disk space for .Xauthroity... 然后我发现磁盘上的空间确实为零。 所以我删除了一些文件,bug消失了。