View the currently used kernel
$ uname -r
5.13.0-44-generic
View all kernels installed on the system
dpkg --get-selections | grep linux-headers
或者
dpkg --get-selections | grep linux
sudo dpkg --force-overwrite -i xxx1.deb
sudo apt-get remove --purge linux-image-5.13.0-44-generic
sudo apt-get remove --purge linux-headers-5.13.0-44-generic
Ubuntu turns off automatic kernel updates
sudo apt-mark hold linux-image-5.13.0-44-generic
Restart kernel update
sudo apt-mark hold linux-image-5.13.0-44-generic
Kernel installation
Search for currently existing kernel versions
apt-cache search linux|grep linux-image
Kernel installation
sudo apt-get install linux-image-5.15.0-41-generic
sudo apt-get install linux-headers-5.15.0-41-generic
sudo apt-get install linux-modules-5.15.0-41-generic
Update grub
sudo update-grub
或者
sudo update-grub2
sudo update-grub
cn.archive.ubuntu.com/ubuntu/ubuntu/pool/main/g/glibc/
http://cn.archive.ubuntu.com/ubuntu/ubuntu/pool/main/g/glibc/
sudo dpkg -i xxx1.deb #先使用这个安装
#如果出现依赖错误,再用下面的
sudo dpkg --force-overwrite -i xxx1.deb # 进行强制安装包,会覆盖一些文件