查看当前内核
uname -sr
下载内核 http://kernel.ubuntu.com/~kernel-ppa/mainline/
以下是v4.9.75的修复方式,为什么安装4.9.75呢,因为4.9.75是Intel修复Meltdown和Spectre两大漏洞之前最后的补丁,修复这两大漏洞将带来巨大的性能损失。
64位系统:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-headers-4.9.75-040975_4.9.75-040975.201801051530_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-headers-4.9.75-040975-generic_4.9.75-040975.201801051530_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-image-4.9.75-040975-generic_4.9.75-040975.201801051530_amd64.deb
32位系统:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-headers-4.9.75-040975_4.9.75-040975.201801051530_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-headers-4.9.75-040975-generic_4.9.75-040975.201801051530_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.75/linux-image-4.9.75-040975-generic_4.9.75-040975.201801051530_i386.deb
安装
sudo dpkg -i *.deb
安装完成后重启
reboot
如果遇到问题,用此命令修复损坏的依赖关系
apt-get -f install
以下是 4.15 x64的补丁地址
“`
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-headers-4.15.0-041500_4.15.0-041500.201801282230_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-headers-4.15.0-041500-generic_4.15.0-041500.201801282230_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-image-4.15.0-041500-generic_4.15.0-041500.201801282230_amd64.deb