LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   API mismatch: nvidia kernel module (http://www.linuxquestions.org/questions/debian-26/api-mismatch-nvidia-kernel-module-871115/)

Mithrilhall 03-26-2011 07:29 AM

API mismatch: nvidia kernel module
 
I did an update and an upgrade the other day and screwed something up.
Any suggestions on how I can fix this?

Code:

    $ uname -a
    Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux



Code:

    $ startx
    Error: API mismatch: the NVIDIA kernel module has version 195.36.31, but this NVIDIA driver component has version 260.19.44. Please make sure that the kernel module and all NVIDIA driver components have the same version.


corp769 03-26-2011 07:30 AM

How did you apply the update?

And for the time being, you can boot from a previous version of the kernel.

repo 03-26-2011 07:52 AM

Try to reboot

Kind regards

Mithrilhall 03-26-2011 09:09 AM

I did my normal apt-get update and apt-get upgrade.

Reboot has been done multiple times but I'll try again.

the trooper 03-26-2011 10:08 AM

The error looks pretty specific:

Quote:

Please make sure that the kernel module and all NVIDIA driver components have the same version
Remove the installed nvidia module,then reinstall the current driver.

Mithrilhall 03-26-2011 10:40 AM

Not to sound like a complete and utter noob but how do I remove the nvidia module?

the trooper 03-26-2011 10:52 AM

Well,you can do it manually with:

Code:

modprobe -r nvidia
How did you install the driver originally?.

Mithrilhall 03-26-2011 11:05 AM

I believe I installed it the Debian way (http://wiki.debian.org/NvidiaGraphicsDrivers) way back and I think I then tried to update it via nvidia's actual driver.

The odd thing is, it was working fine the other day. Then I did my update/upgrade and rebooted and it didn't work.

I then followed the debian way to install the drivers again and it worked after I issued a startx but since last night it isn't working again.

odiseo77 03-26-2011 11:52 AM

Quote:

Originally Posted by Mithrilhall (Post 4304284)
I believe I installed it the Debian way (http://wiki.debian.org/NvidiaGraphicsDrivers) way back and I think I then tried to update it via nvidia's actual driver.

That's the problem, probably. If you installed it the debian way, and then installed the driver from Nvidia's website, that explain why you have this mismatch. Try the following:

Code:

nvidia-installer --uninstall
And then, attempt to start X again. If it doesn't work, then you probably have to uninstall the nvidia-glx package and reinstall it again the debian way (following the wiki link you posted).

the trooper 03-26-2011 11:56 AM

You can't mix the Debian Nvidia packages and the installer you download from Nvidia themselves.
I would remove all Nvidia packages installed on the system and start from scratch,using one method.
This is why you are getting the error message you posted.

odiseo77 03-26-2011 12:28 PM

Quote:

Originally Posted by the trooper (Post 4304326)
I would remove all Nvidia packages installed on the system and start from scratch,using one method.

Yes, I also think that's the best thing to do (that means removing the nvidia-glx and the nvidia-kernel-* packages as well, besides the one from nvidia's website). :)

markthomas 01-12-2013 05:06 PM

I just fixed it
 
This just happened to me. I'm using Ubuntu 12.04, and had installed the proprietary nvidia driver. Here's what I did:

I did an 'apt-get remove nvidia-*'. This removed all the nvidia drivers. I also noticed it uninstalled 'ubuntu-desktop'. I thought, wait a minute, I want ubuntu-desktop, so then I did an 'apt-get install ubuntu-desktop'. This installed as a dependency nvidia-common. at this point I rebooted, and voila I had graphics again.


All times are GMT -5. The time now is 11:07 AM.