Problema de loop de login do Ubuntu 18.04

Problema de loop de login do Ubuntu 18.04

Estou enfrentando um problema de loop de login no Ubuntu 18.04 semelhante aoutro problema de loop de login

Eu também alterei o .profilearquivo para que:

grep -H PATH ~/.profile 
/home/trilok/.profile:PATH=/usr/local/bin:$PATH

Mas também recebo:

grep -H PATH ~/.bash_profile 
~/.bash_profile: No such file or directory

...e...

grep -H PATH ~/.bashsrc 
~/.bashsrc: No such file or directory

O conteúdo de xsession-errors é o seguinte:

/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

Responder1

Executei os seguintes comandos no terminal e funcionou.

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

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

Embora o erro em ./xsession_errors ainda exista, o problema do loop de login foi resolvido.

informação relacionada