LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2011, 07:29 AM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Rep: Reputation: 30
Question 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.
 
Old 03-26-2011, 07:30 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
How did you apply the update?

And for the time being, you can boot from a previous version of the kernel.
 
Old 03-26-2011, 07:52 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Try to reboot

Kind regards
 
Old 03-26-2011, 09:09 AM   #4
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Original Poster
Rep: Reputation: 30
I did my normal apt-get update and apt-get upgrade.

Reboot has been done multiple times but I'll try again.
 
Old 03-26-2011, 10:08 AM   #5
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
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.
 
Old 03-26-2011, 10:40 AM   #6
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Original Poster
Rep: Reputation: 30
Not to sound like a complete and utter noob but how do I remove the nvidia module?
 
Old 03-26-2011, 10:52 AM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Well,you can do it manually with:

Code:
modprobe -r nvidia
How did you install the driver originally?.
 
Old 03-26-2011, 11:05 AM   #8
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Original Poster
Rep: Reputation: 30
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.
 
Old 03-26-2011, 11:52 AM   #9
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 952

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
Originally Posted by Mithrilhall View Post
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).
 
Old 03-26-2011, 11:56 AM   #10
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-26-2011, 12:28 PM   #11
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 952

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
Originally Posted by the trooper View Post
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).
 
Old 01-12-2013, 05:06 PM   #12
markthomas
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply

Tags
nvidia, startx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
API mismatch: nvidia konildi Linux - Newbie 3 11-27-2010 01:43 PM
nvidia driver - API MISMATCH (!) enekt Linux - Software 3 03-16-2007 07:42 PM
nvidia driver: error api mismatch BackwardsDown Linux - Hardware 1 11-06-2006 12:24 PM
nvidia driver 8762 kernel module mismatch x module openfun Ubuntu 5 06-27-2006 10:02 PM
NVIDIA version mismatch between kernel module and x windows s|k Linux - Hardware 6 03-05-2006 01:37 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration