0

I am facing a login loop problem in Ubuntu 18.04 similar to another login loop problem

I have also changed the .profile file so that:

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

But I also get:

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

...and...

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

The contents of xsession-errors is as follows:

/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
SHawarden
  • 885

1 Answers1

0

I ran the following commands from the terminal and it worked.

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

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

Though the error in ./xsession_errors still exits ,the login loop problem is solved.