Thanks Yorik and Philip. Finally it worked. First I tried to uninstall nvidia drivers as Philip said by executing the installer with the option --uninstall. After this I reeboted my machine and the desktop had some weird behavior such as not top bar (minimize, maximize and so on) on the windows or alt+tab didn't worked. So I had to reinstall the nvidia drivers to recover my dekstop.
After read Yorik post I tried by first uninstalling libgl1-mesa-dri and libgl1-mesa-glx. Then I uninstalled nvidia drivers using the installer and rebooted my machine. I started again and stopped the gnome dekstop using an non graphical environment (CTRL + ALT + F1) with sudo service gdm stop. So, installed libgl1-mesa-dri and libgl1-mesa-glx with sudo apt.get install libgl1-mesa-dri libgl1-mesa-glx, rebooted again and it worked!! Now I can start Stellarium :-) Thanks in advance. By the way, I had no idea of the libgl1-mesa* existence ;-). -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to nvidia-graphics-drivers in ubuntu. https://bugs.launchpad.net/bugs/643895 Title: nvidia propietary driver fails to load X with geforce 310M _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp