My Ubuntu 12.04 system boots to a text mode login prompt (virtual console #1) since I upgraded the kernel (using Ubuntu's automatic upgrade system). I was using an Nvidia driver that worked well until that update. I had installed it from Nvidia's shell script instead of apt-get.
I have uninstalled this driver. I also tried Ubuntu's nvidia-current package, without success. I have purged it. I also reinstalled the desktop packages using "apt-get install ubuntu-desktop".
Rebooting still boots to text mode. Doing "sudo service lightdm restart" does not go to graphics mode. It just switches to virtual console #7.
As a test, I run
sudo startx from a text mode shell, and it fails with this message:
FATAL: Error inserting nvidia_304 (/lib/modules/3.8.0-34-generic/updates/dkms/nvidia_304.ko): No such device
That .ko file exists and contains 15254672 bytes.
It seems like the system still wants to use the Nvidia driver, even though I uninstalled it.
How can I tell startx to avoid the Nvidia driver completely? Once startx would work, I assume lightdm might work too. Then I could try to reinstall the Nvidia driver.
I have looked at numerous pages on this forum, but everybody seems to have a different variant of this problem.
uname -a reports
3.8.0-34-generic. The PC is an x86_64. The system has the
linux-headers-3.8.0-34-generic package, according to