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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM