Article 51ZTV how can I fix my .profile file when I login

how can I fix my .profile file when I login

by
drawa54
from LinuxQuestions.org on (#51ZTV)
I cannot login.

The last thing I did was to add a line of code to my .profile file.

On booting up I get the following message when I try to login, "Your session only lasted less than 10 seconds....Try logging in with one of the failsafe sessions to see if you can fix this problem."
I tried this and:

dpkg - Repair packages - none broken
grub - updated bootloader successfully
Then pressed resume but got very dark grey screen...waited for 5 minutes then forced shutdown.
On booting again the same problem. Not able to login.

The issue is with a laptop which is not the one I'm using now.
The laptop I'm asking help for is running Linux Mint 18.x The HD has about 100 GB of free space. There is no other OS installed. All packages are up to date.latest?d=yIl2AUoC8zA latest?i=PeHweoYPiQA:yyaDn5mFT-I:F7zBnMy latest?i=PeHweoYPiQA:yyaDn5mFT-I:V_sGLiP latest?d=qj6IDK7rITs latest?i=PeHweoYPiQA:yyaDn5mFT-I:gIN9vFwPeHweoYPiQA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments