NVIDIA Driver Not Detected After Upgrade Kernel
This guide can be used if the NVIDIA driver is not detected after upgrading the kernel.
Before the kernel update, the Nvidia driver was successfully installed using the file NVIDIA-Linux-x86_64-550.54.14-grid.run
. When running the nvidia-smi
command, it can be seen that the driver is still detected on your computer system.

However, after the kernel update, the attempt to reinstall using NVIDIA-Linux-x86_64-550.54.14-grid.run
failed.


So in this case it can be seen that the NVIDIA driver is not detected. You need to do several steps to solve the NVIDIA Driver not detected problem.
Uninstall Driver NVIDIA
In the first step, you can remove the previously installed NVIDIA packages by running the following commands. These commands are used to remove all packages related to NVIDIA from the system.
sudo apt-get remove nvidia*
These commands are used to remove all library packages related to Nvidia from the system.
sudo apt-get remove libnvidia*
These commands are used to clean the system of packages that are no longer needed after removing the Nvidia packages.
sudo apt-get autoremove
These commands are used to display a list of all Nvidia-related packages that are still installed on the system. This helps ensure that all Nvidia packages have been removed or to identify any packages that may still be remaining.
dpkg -l | grep nvidia
This command is used to remove the specific package "libnvidia-compute-550:amd64" from the system. It is used to ensure that a particular version of the Nvidia library is removed, typically to resolve conflicts or compatibility issues.
sudo apt-get remove libnvidia-compute-550:amd64
Reinstall Driver NVIDIA
The second step is to reinstall the NVIDIA driver on your computer by running the following commands.
sudo ./NVIDIA-Linux-x86_64-550.54.14-grid.run
Restart Service
The third step is to restart the services that are being used.
sudo systemctl restart nvidia-gridd.service
sudo systemctl status nvidia-gridd.service
nvidia-smi
Prevention
To prevent this problem from occurring again in the future, the update kernel needs to be retained.
1. Check the Current Kernel Version
Run the following command in the terminal to check the active kernel version.
uname -r
Example output
2. View Installed Kernels
To see all the kernels installed on your system, use this command.
dpkg --list | grep linux-image
Example Output
3. Hold Kernel Updates
Hold kernel upgrade using the following command, adjusting the version to the installed kernel, execute the following commands.
sudo apt-mark hold linux-image-5.15.0-56-generic
sudo apt-mark hold linux-image-virtual
Last updated