Remediation and permanent kernel fixes for kernel auto-updates

1. Solve the problem of automatically updated kernel

After the server is restarted, the kernel may be automatically updated, which will cause some services of the server to be unable to be used normally after booting.
Check the graphics card status: nvidia-smi will report an error. As a deep learning algorithm engineer, the most unbearable thing is to install it yourself. environment was destroyed.

~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I checked the currently used kernel version and found that it was 147, compared to 146 used before.

1. Check the current kernel version

administrator@administrator-X10DRG:~$ uname -a
Linux administrator-X10DRG 5.4.0-147-generic #164~18.04.1-Ubuntu SMP Tue Apr 4 00:20:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Don't panic, we can change it back through the configuration file. (You don’t need to be operated remotely)

Run the following command to view the installed kernel version on the current system:

dpkg --list | grep linux-image

Guess you like

Origin blog.csdn.net/mao_hui_fei/article/details/130273551