Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ubuntu 12.04 32bit Ubuntu stopped loading in gui mode just gives me a terminal mode.

It use to work fine as normal but for some time it stopped loading in gui mode but will just load in like a terminal which keeps blinking and does nothing.(dont even ask me for username and password.)

If I go in previous kernel modes then i can get into a terminal based shell which will ask me for my: - user login - password

I was able to log in in this terminal mode and after that I will type "startx" will start the x server and everything will work as normal from there.

But now even Xserver stopped working. on typing "startx" it gives me:

xauth: error in locking authority file /home/myusername/.Xauthority

xauth: error in locking authority file /home/myusername/.Xauthority

/etc/x11/xinit/xserverrc: 3: exec: usr/bin/X: not found

xinit: giving up

xinit: unable to connect to Xserver: No such file or directory

xinit: server error

xauth: error in locking authority file /home/username/.Xauthority

I have tried

sudo apt-get install update

or even reintalling nvidia drivers by:

sudo apt-get install --reinstall nvidia-current

or purging the current kernel and going back to previous one but no luck still stuck in terminal mode with "startx" not working

how can fix it? I don't want to format my pc as its too much pain to set it up all again.

Thank you for help in advance.

share|improve this question
    
try sudo rm /home/myusername/.Xauthority then lightdm or (gdm if you are using gnome) –  virtualxtc Feb 8 at 1:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.