Ubuntu18.04手动升级内核

2021/11/7 7:13:38

本文主要是介绍Ubuntu18.04手动升级内核,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

提要

公司配发新电脑,硬件无法在Ubuntu18.04下驱动,升级Ubuntu20.04无法兼容部分开发环境,希望手动升级内核增加新硬件支持。

方法

查了一圈,主流方法推荐UKUU进行升级,需要添加ppa源等操作,个人觉得比较麻烦。
偶然发现了可以使用deb包的方法升级内核,决定尝试。
首先登陆The Linux Kernel Archives查询得到最新内核稳定版本 Latest Release 5.15
随后访问Ubuntu Kernel网站获取最新内核deb文件
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15/
平台选择amd64内核种类分为generic与low-latency官方区别如下

The Low-Latency Kernel included in Ubuntu Studio (and available in the Ubuntu repositories) does not allow such malicious code from locking-out a user from their machine. It does contain other optimizations, such as Preempt-RT being enabled in the kernel configuration, to achieve the lowest possible latency for audio and other applications, while keeping the user interface usable. Latency as low as 0.1 millisecond can and has been achieved using this kernel.

因此不涉及音频处理的普通用户选择通用版即可,对应四个下载文件如下:

  amd64/linux-headers-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb
  amd64/linux-headers-5.15.0-051500_5.15.0-051500.202110312130_all.deb
  amd64/linux-image-unsigned-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb
  amd64/linux-modules-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb

下载完成后使用sudo dpkg -i linux*.deb进行安装,重启后硬件驱动生效。

参考

The Linux Kernel Archives
UbuntuStudio/RealTimeKernel - Community Help Wiki



这篇关于Ubuntu18.04手动升级内核的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程