debian no module named nvidia

Problem: Linux is not able to load nvidia module

When you are migrating from nouvuea to nvidia. nvidia would have been blacklisted.


$ cat /etc/modprobe.d/nouveau-blacklists-nvidia.conf
blacklist nv
blacklist nvidia
$ sudo rm /etc/modprobe.d/nouveau-blacklists-nvidia.conf

If you have upgraded linux kernel and tried to switch to nvidia driver, it is possible that dkms is not setup properly as mentioned in [1]. Try reinstalling linux headers and nvidia dkms.

$ sudo apt-get install --reinstall linux-headers-amd64
$ sudo apt-get install --reinstall nvidia-legacy-304xx-kernel-dkms



apt-get update only required translations

apt-get update was updating translation for so many languages which I’m not concerned about and found that it can be controlled using apt.conf[1].

  • Added the following line to /etc/apt/apt.conf.d/70debconf
    Acquire::Languages { "environment"; "en"; "ta"; };

  • next immediate apt-get update still got translations for many other languages, I had to clear /var/lib/apt/lists as mentioned in [1] after which apt-get update pulled only the translations mentioned in the conf.

for more information check
man apt.conf