码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu换最新内核

时间:2019-12-30 09:20:59      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:shell   enc   重启   boot   date   http   latency   com   最新   

  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换最新内核

标签:shell   enc   重启   boot   date   http   latency   com   最新   

原文地址:https://www.cnblogs.com/Ro0kie/p/12117820.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!