周凯,个人博客

  • 前端
  • 嵌入式
  • 工具
  • 后端
  • 随笔
个人记录
  1. 首页
  2. ubuntu
  3. 正文

ubuntu 安装、卸载内核

2024年 2月 3日 975点热度 0人点赞 0条评论
  • 查看当前正在使用的内核:

    uname -a
  • 查看系统中已有内核:

    dpkg --get-selections | grep linux-image
  • 安装指定内核

    sudo apt-get install linux-image-5.4.0-40-generic
  • 卸载不需要的内核

    deinstall是卸载后的状态,不要继续卸载,可以通过install来安装。

    sudo apt-get remove linux-image-5.4.0-42-generic
  • 锁定内核版本、禁止自动更新

    锁定内核版本

    sudo apt-mark hold linux-image-5.4.0-42-generic
    sudo apt-mark hold linux-modules-extra-5.4.0-42-generic

    解除锁定

    sudo apt-mark unhold linux-image-5.4.0-42-generic
    sudo apt-mark unhold linux-modules-extra-5.4.0-42-generic
  • 更新grub

    sudo update-grub
  • 重新系统

    reboot

🎯 拓展阅读提示

本文涉及的内容已同步至公众号后台,我会在那里分享更多深度内容和实用技巧

→ 点击关注:一行梦境

公众号二维码
本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2024年 2月 3日

周凯

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2022-现在 周凯,个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

蒙ICP备18004897号