ubuntu换最新内核

Posted ro0kie

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu换最新内核相关的知识,希望对你有一定的参考价值。

  1. 去https://www.kernel.org查看最新稳定内核版本

  2. 打开https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.6/ (假设此时最新版是5.4.6)

    Build for amd64 succeeded (see BUILD.LOG.amd64):
    linux-headers-5.4.6-050406_5.4.6-050406.201912211140_all.deb
    linux-headers-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
    linux-headers-5.4.6-050406-lowlatency_5.4.6-050406.201912211140_amd64.deb
    linux-image-unsigned-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
    linux-image-unsigned-5.4.6-050406-lowlatency_5.4.6-050406.201912211140_amd64.deb
    linux-modules-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
    linux-modules-5.4.6-050406-lowlatency_5.4.6-050406.201912211140_amd64.deb
  3. wget下载包名里没有lowlatency的deb包 , sudo dpkg -i ***.deb 依次安装 :

    linux-headers-5.4.6-050406_5.4.6-050406.201912211140_all.deb
    linux-headers-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
    linux-modules-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
    linux-image-unsigned-5.4.6-050406-generic_5.4.6-050406.201912211140_amd64.deb
  4. 查看已安装内核

    dpkg -l|grep linux-image | awk '{print $2}'
  5. 删除旧内核

    apt purge -y 
  6. 更新grub 然后重启

    update-grub
    reboot
  7. 检查一下是否更换成功

    uname -r

以上是关于ubuntu换最新内核的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 升级内核到最新版本

ubuntu下怎么编译linux内核

Ubuntu 16.04 LTS安装Docker最新版

如何编译一个内核

求助,ubuntu16.04 总有一个CPU内核占用100

ubuntu怎么用audacity