gdm/lightdm:无法登录,但 startx 可以运行

gdm/lightdm:无法登录,但 startx 可以运行

我刚刚运行了apt dist-upgrade。我有 ubuntu 14.04。一切顺利,但重启后我无法通过登录屏幕。我尝试了 GDM 和 lightDM,但从startx终端运行有效。


我注意到的唯一奇怪的事情是:

  1. 如果我尝试重新安装视频驱动程序,我会得到:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     xserver-xorg-video-ati : Depends: xorg-video-abi-15
                              Depends: xserver-xorg-core (>= 2:1.14.99.902)
                              Depends: xserver-xorg-video-glamoregl but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    

    但是 libcheese 是最新版本:

    dpkg -l | grep libcheese
    ii  libcheese-gtk23:amd64   3.10.2-0ubuntu2   amd64 
    ii  libcheese7:amd64        3.10.2-0ubuntu2   amd64  
    
  2. uname -a给了我3.19.0-49-generic #55~14.04.1-Ubuntu,而欢迎屏幕显示Ubuntu 14.04.03 LTS。为什么是 3 和 1?

  3. 在启动时,出现以下错误:

     compaudit:105: command not found: getent
     compdump:135: command not found: mv
    

    但我的 PATH 似乎正确:

     /home/shitsu/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    

    文件中存在相同类型的错误.xsession-errors

    /usr/sbin/lightdm-session: line 24: mktemp: command not found
    /usr/sbin/lightdm-session: line 29: : No such file or directory
    /usr/sbin/lightdm-session: line 33: cat: command not found
    /usr/sbin/lightdm-session: line 34: truncate: command not found
    /usr/sbin/lightdm-session: line 29: : No such file or directory
    /usr/sbin/lightdm-session: line 33: cat: command not found
    /usr/sbin/lightdm-session: line 34: truncate: command not found
    /usr/sbin/lightdm-session: line 106: ls: command not found
    /usr/sbin/lightdm-session: line 117: exec: gnome-session: not found
    

    我的/etc/environment文件是:

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
    PATH="/usr/local/texlive/2015/bin/x86_64-linux:$PATH"
    

任何帮助都将不胜感激。

答案1

好吧,我很傻。

问题出在我的/etc/environment文件上。来自此主题,我了解到第二行:

PATH="/usr/local/texlive/2015/bin/x86_64-linux:$PATH"

字面解释为:变量$PATH未扩展(因为它通常在.bashrc文件中)。

使用startx,我打开了我的会话,因此设置的 PATH.zshrc掩盖了问题。

但是我还是没有弄清楚 apt 依赖问题。

相关内容