Recently, after upgrading a netbook to 12.04, I ran into a problem where I would try to login, the screen flickers, and it brings me back to the login screen. The guest session can log into the desktop fine, by the way. I was not too concerned, as this has happened before on another upgrade, and I knew that the answer was within reach of a web search.
When I searched the Web, I saw that this was a common problem, and that some of the common fixes were pressing Ctrl-Alt-F1 to get onto console mode, deleting the ~/.Xauthority file, reinstalling Compiz*, trying gdm as default, and some others. I tried all of them that I found, but none of them worked.
Then I saw a post where someone checked his ~/.xsession-errors file. I dropped back to console and examined the file. All it said was
From what I can gather, this explains very well why the other fixes have not worked. In this case, it seems like I don't have enough rights. I don't know how to proceed. Should I delete this .profile, hoping that a restart would provide me with a fresh copy that I could access? Has something else messed up and I need to follow a list of instructions to get those rights back? Will I have to reinstall the system?
/usr/sbin/lightdm-session: 27: .: Can't open /home/mathwizard44/.profile
Thanks in advance for any answers.