In my case I have a GeForce 6150SE so I really need this 304.131 and can't higher version like 340.xx.
For people needing to downgrade, this is one (among others) correct way to do so with Ubuntu 16.04:
- first create a file named /etc/apt/preferences.d/local-nvidia-quirks with the following content:
Explanation: block this specifique update because of OpenGL problem with 304.132
Package: nvidia-304
Pin: version 304.132-0ubuntu0.16.04.2
Pin-Priority: -10
Explanation: block this specifique update because of OpenGL problem with 304.132
Package: nvidia-opencl-icd-304
Pin: version 304.132-0ubuntu0.16.04.2
Pin-Priority: -10
- then reinstall the working old packages (they are still available in the repository):
- finally, reboot your computer (because it also affects the initrd boot image)
The previous way only blocks the currently known not working version, without blocking future updates.
If you want a way to stay at the known working version without further updates, here is the content you should use for your /etc/apt/preferences.d/local-nvidia-quirks:
Explanation: do not use any other version than this one, ever (priority 1001 will ensure that)
Package: nvidia-304
Pin: version 304.131-0ubuntu3
Pin-Priority: 1001
Explanation: do not use any other version than this one, ever (priority 1001 will ensure that)
Package: nvidia-opencl-icd-304
Pin: version 304.131-0ubuntu3
Pin-Priority: 1001
In my case I have a GeForce 6150SE so I really need this 304.131 and can't higher version like 340.xx.
For people needing to downgrade, this is one (among others) correct way to do so with Ubuntu 16.04:
- first create a file named /etc/apt/ preferences. d/local- nvidia- quirks with the following content:
Explanation: block this specifique update because of OpenGL problem with 304.132 0ubuntu0. 16.04.2
Package: nvidia-304
Pin: version 304.132-
Pin-Priority: -10
Explanation: block this specifique update because of OpenGL problem with 304.132 opencl- icd-304 0ubuntu0. 16.04.2
Package: nvidia-
Pin: version 304.132-
Pin-Priority: -10
- then reinstall the working old packages (they are still available in the repository):
sudo apt install nvidia- 304=304. 131-0ubuntu3 nvidia- opencl- icd-304= 304.131- 0ubuntu3
- finally, reboot your computer (because it also affects the initrd boot image)
The previous way only blocks the currently known not working version, without blocking future updates.
If you want a way to stay at the known working version without further updates, here is the content you should use for your /etc/apt/ preferences. d/local- nvidia- quirks:
Explanation: do not use any other version than this one, ever (priority 1001 will ensure that)
Package: nvidia-304
Pin: version 304.131-0ubuntu3
Pin-Priority: 1001
Explanation: do not use any other version than this one, ever (priority 1001 will ensure that) opencl- icd-304
Package: nvidia-
Pin: version 304.131-0ubuntu3
Pin-Priority: 1001