一、查看当前系统版本及内核信息
root@ubuntu:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty root@ubuntu:~# uname -a Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux root@ubuntu:~# uname -r 3.13.0-32-generic
二、升级内核方法
1. 到http://kernel.ubuntu.com/~kernel-ppa/mainline/选择合适的内核安装包 2. X86硬件架构64位操作系统应选择AMD64 3. 下载3个内核deb安装文件 #Ubuntu内核网站里每个版本的内核有很多安装包,在此我们选择必须的3个安装包即可。 wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.1/linux-headers-4.13.1-041301_4.13.1-041301.201709100232_all.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.1/linux-headers-4.13.1-041301-generic_4.13.1-041301.201709100232_amd64.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.1/linux-image-4.13.1-041301-generic_4.13.1-041301.201709100232_amd64.deb 4. 安装deb包 sudo dpkg -i *.deb
三、更新grub,重启验证
root@ubuntu:~# update-grub root@ubuntu:~# reboot root@ubuntu:~# uname -sr #Ubuntu内核已经升级为Linux 4.13.1-041301-generic版本 Linux 4.13.1-041301-generic
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/119817.html