3

I am stuck in a login loop because of this error.

I've seen a few threads about this matter but none helped.

I do Ctrl+Alt+f2, when I log in it shows me two errors:

-bash: /home/imight/.profile: line 19 unexpected EOF while looking for matching
-bash: /home/imight/.profile: line 22: syntax error: unexpected end of file
Zanna
  • 70,465
imight
  • 31

2 Answers2

2

The message basically says that there is something wrong with the file .profile in your home directory. You will either have to correct this error or to remove the file.

So use a Live CD or USB and boot from that. When the system is up, use "Try Ubuntu" and open the hard drive. You'll find it normally in the sidebar or you can open a terminal and enter ls /media. Your mounted hard drive lives there. Navigate to home/imight. The whole path is /media/SOMETHING/home/imight, where SOMETHING depends on the layout of your drive. The best option is to rename the file .profile to some other name. But you can also open the file and see if you can find the error. Once you've spotted it you might be able to correct it.

After you renamed the file or corrected it you can reboot into your system. Now you'll be able to login.

qbi
  • 19,125
1

Try removing the .profile file and logging in again.

Eliah Kagan
  • 117,780