Ubuntu V14.04 登录问题?

Ubuntu V14.04 登录问题?

我有 Ubuntu 14.04 操作系统。我现在有登录问题,当我输入密码登录到操作系统桌面时。它会重新加载相同的窗口来输入密码。当我输入错误的密码时,它会显示错误“密码无效,请重试”,但当我输入正确的密码时,它会出现在相同的窗口中输入密码,而不是桌面工作区。当我尝试以访客会话身份登录时,它会再次出现相同的窗口来输入密码。请给我一些建议,让我摆脱这个问题并能够使用我的 Ubuntu 系统。


当我执行 Ctrl+alt+F2 并登录系统时,它显示:-

welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.19.0-33-generic i686) *Documentation: HTTPS://help.Ubuntu.com/
23 package can be updated.
0 updates are security updates. -bash: groups: command not found. Command 'ls' is available is '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found.
Command 'lesspipe' is available in the following places.
*/bin/lesspipe.
*/usr/bin/lesspipe.
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
Lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'.
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found.
Command 'ls' is available in '/bin/ls' 
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found.

答案1

根据评论中的讨论和这个聊天室,你对 进行了更改,/etc/environment这破坏了你的 PATH。因此,你的登录管理器找不到登录所需的可执行文件。要解决此问题,请编辑你的/etc/environment文件,设置正确的$PATH

  1. 点击Ctrl++AltF1从命令行登录。

  2. 运行此命令来编辑文件:

    /usr/bin/sudo /usr/bin/nano /etc/environment

  3. 删除该文件中的所有内容,并将其替换为以下行。确保文件中除了此行之外没有任何内容:

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
    
  4. 保存文件 ( Ctrl+ O) 并退出 ( Ctrl+X

  5. Ctrl使用+返回 GUI 登录管理器F7并尝试再次登录。它应该可以按预期工作。

答案2

您可以在 sted 中尝试这个:

 sudo dkms-reconfigure Xauthority

这样可能会很好用

相关内容