当前位置: 首页 > news >正文

升级Ubuntu内核的几种方法

注意:

Ubuntu主线内核由 Ubuntu 内核团队提供,用于测试和调试目的。

它们不受支持且不适合生产使用。

仅当它们可以解决当前内核遇到的关键问题时,才应该安装它们。

1、手动下载deb文件升级内核

来源:kernel.ubuntu.com/mainline
linux-image-X.Y.Z-generic-*.deb
linux-modules-X.Y.Z-generic-.deb

$ sudo dpkg --install *.deb
$ sudo reboot

2、用apt升级内核(推荐)

来源:Ubuntu 官方仓库,/etc/apt/sources.list 和 /etc/apt/sources.list.d/中记录的URL
http://cn.archive.ubuntu.com/ubuntu

升级包括内核的整个系统:
$ sudo apt-get update
$ sudo apt-get upgrade

只升级内核:
$ sudo apt-get upgrade linux-image-generic

$ sudo reboot

3、使用第三方工具升级内核

(1)Ukuu
Ubuntu kernel update utility,Gtk GUI和命令行工具,Ukuu19.01版本开始收费
来源:kernel.ubuntu.com
获取最新主线内核并自动安装。

(2)Mainline
Mainline (Ubuntu Mainline Kernel Installer) 是免费版 Ukuu 的开源分支

(3)UKTools
git clone https://github.com/usbkey9/uktools & cd uktools & make
来源:kernel.ubuntu.com/~kernel-ppa/mainline/
获取最新的稳定内核并自动安装

(4)LKU
git clone https://github.com/mtompkins/linux-kernel-utilities.git
update_ubuntu_kernel.sh - download and install a precompiled Ubuntu kernel from kernel.ubuntu.com
compile_linux_kernel.sh - poll www.kernel.org for available kernels and present the user with an xconfig GUI for manually selecting options.
remove_old_kernels.sh   - purge ALL inactive kernels.

4、通过实时补丁服务升级内核(收费)

好处:不需要重启

(1)Canonical 实时补丁服务
从https://auth.livepatch.canonical.com/ 获取一个密钥
$ sudo snap install canonical-livepatch
$ sudo canonical-livepatch enable your-key

(2)KernelCare 实时补丁
从https://cloudlinux.com/kernelcare-free-trial5 获取一个30天免费试用密钥
$ sudo wget -qq -O - https://repo.cloudlinux.com/kernelcare/kernelcare_install.sh | bash
$ sudo /usr/bin/kcarectl --register KEY


 


http://www.mrgr.cn/news/26860.html

相关文章:

  • 项目需求 | MySQL增量备份与恢复的完整操作指南
  • 鸿蒙 父页面调用子组件页面中的方法
  • 网络安全宣传周的时间,举办活动的方式和意义
  • 【C语言】(指针系列3)数组指针+函数指针+typedef+函数数组指针+转移表
  • java 多线程中 一些需要注意的知识点
  • 【第34章】Spring Cloud之SkyWalking分布式日志
  • W外链怎么做微信推广链接?
  • 【C++二分查找】2560. 打家劫舍 IV
  • 音视频直播应用场景探讨之RTMP推流还是GB28181接入?
  • Superset二次开发之服务器环境准备
  • HJ69 矩阵乘法
  • Transformer学习记录(6):Vision Transformer
  • DockerDocker Compose安装(离线+在线)
  • yolov8学习笔记
  • 视频监控平台中的视频处理核心技术揭秘:自动化监控与智能预警成为趋势?
  • solidity-21-call_contract
  • SOLIDWORKS链阵列功能详解—快速设计链条
  • 高性能计算应用优化之代码实现调优(二)
  • 异构仿真:打造更可靠的综合化航空电子软件
  • windows server 下 布置服务器常用技巧