ubuntu 18.04 登入循環問題

ubuntu 18.04 登入循環問題

我在 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

我從終端機運行了以下命令並且它起作用了。

echo "匯出 PATH="/bin:$PATH"" >> ~/.profile

echo "export PATH="/usr/bin:$PATH"" >> ~/.profile

雖然./xsession_errors中的錯誤仍然存在,但登入循環問題已解決。

相關內容