我在 Ubuntu 18.04 中遇到了类似以下的登录循环问题另一个登录循环问题
我还更改了文件.profile
以便:
grep -H PATH ~/.profile
/home/trilok/.profile:PATH=/usr/local/bin:$PATH
但我也得到:
grep -H PATH ~/.bash_profile
~/.bash_profile: No such file or directory
...和...
grep -H PATH ~/.bashsrc
~/.bashsrc: No such file or directory
xsession-errors的内容如下:
/usr/bin/gettext.sh: line 88: gettext command not found
/usr/bin/gettext.sh: line 88: envsubst command not found
/usr/bin/gettext.sh: line 88: envsubst command not found
/usr/lib/lightdm/config-error-dialog.sh: line19: gettext: command not found
/usr/lib/lightdm/config-error-dialog.sh: line20: fold: command not found
/usr/lib/lightdm/config-error-dialog.sh: line28: zenity: command not found
/usr/sbin/lightdm-sesion: line 33: cat: command not found
/usr/sbin/lightdm-sesion: line 34: truncate: command not found
/usr/sbin/lightdm-sesion: line 33: cat: command not found
/usr/sbin/lightdm-sesion: line 34: truncate: command not found
/usr/sbin/lightdm-sesion: line 106: ls: command not found
/usr/sbin/lightdm-sesion: line 117: exec: command not found
答案1
我从终端运行了以下命令并且它起作用了。
回显“导出 PATH=”/bin:$PATH“”>> ~/.profile
回显“导出 PATH=”/usr/bin:$PATH“”>> ~/.profile
虽然./xsession_errors中的错误仍然存在,但是登录循环问题已解决。