1. Problem description
1. Problem
In the "Additional Drivers" of "Software and Updates", the graphics card driver was updated. After restarting, not only nvidia-smi did not respond, but the wifi icon disappeared.
2. Possible reasons
When upgrading the graphics card, the kernel is upgraded, but the kernel-related packages are missing.
2. Solve the problem of not being able to connect to the Internet
First, open the command line in the system that is not connected to the Internet, and check the kernel version: uname -a
you can see that the current kernel version that is not connected to the Internet is 5.4.0-154
Restart and enter the boot menu, select the ubuntu advanced option, and find the next version 5.4.0-154
below 5.4.0-152
, which should be is the previous version.
After entering this version, I found that it is indeed possible to connect to the Internet, so I typed in the command line, and I dpkg --get-selecitons | grep linux
can see that the following packages are 5.4.0-152
available, but 5.4.0-154
not:
linux-headers-5.4.0-152 install
linux-headers-5.4.0-152-generic install
linux-modules-extra-5.4.0-152-generic install
Because I 5.4.0-152
can connect to the Internet in the kernel of , I directly download 5.4.0-154
the corresponding package:
sudo apt-get install linux-headers-5.4.0-154
sudo apt-get install linux-headers-5.4.0-154-generic
sudo apt-get install linux-modules-extra-5.4.0-154-generic
After completing the above steps, restart, enter 5.4.0-154
the kernel (directly select ubuntu), and you can connect to the Internet!
※There is a problem with the installation of the graphics card driver. Later, it will be normal after reinstalling it in the "Additional Drivers" in the "Software and Updates". Please pay attention to choosing a proprietary driver.
Reference link: After installing the graphics card driver on Linux Ubuntu 18.04, the problem of being unable to access the Internet is solved