How can I get rid of kernel module version 295.40 when installing cuda 5.0?


I tried to install cuda 5.0 on Linux Mint 13. I did the following:

  1. Add the following lines to the file /etc/modprobe.d/blacklist.conf

    blacklist amd76x_edac
    blacklist vga16fb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv

  2. Remove whatever nvidia drivers are present on your system.

    sudo apt-get remove --purge nvidia*

Shut down the X-server in Linux Mint

sudo service mdm stop

And now run the install script,


The problem is:

The x-server doesn’t work after the installation and restart of the computer. The error message tells me that the nvidia kernel module version is 295.40 and the installed driver version is 304.54.

Indeed, a check reveals, that a nouveau module is still installed (I think that causes the problem):

sudo modprobe -l | grep nouveau


How can I update the kernel module to version 304.54 to run cuda 5.0?