ubuntu 22.04 LTS 降級 5.15.0 至 5.13.0

因目前有一台軟路由CPU 為 Intel N5105,主要安裝PVE 7.3

裝有兩台VM  都是ubuntu 22.04 分別擔任 Linbrnms & GrayLog

但是發現一個問題 VM 都會無故當掉沒有反應

目前核心版本5.15.0-56-generic (如下圖)

1

Download the Bash script to change the kernel
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh

ker-1

chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/

ker-2

檢查可用的內核版本進行安裝

ker-3

列出您可以安裝的所有可用內核版本是:

ubuntu-mainline-kernel.sh -r

ker-4

安裝 v5.13.0

sudo ubuntu-mainline-kernel.sh -i v5.13.0

ker-5

安裝完成後,我們可以使用相同的腳本來列出我們系統上可用的內核版本:

sudo ubuntu-mainline-kernel.sh -l

ker-7

grub menu 目前的選項

grep “menuentry ‘Ubuntu” /boot/grub/grub.cfg

會看到 Ubuntu, with Linux 5.13.0-051300-generic => 這個是想要預設開機的核心版本

ker-8

修改 /etc/default/group

sudo nano /etc/default/grub

GRUB_DEFAULT=0

改為

GRUB_DEFAULT=’Advanced options for Ubuntu>Ubuntu, with Linux 5.13.0-051300-generic’

ker-9


修改完成後 執行

sudo update-grub

重開機

 

sudo reboot

登入再次查詢uname –r

確實已經使用5.13.0

ker-10

https://www.how2shout.com/linux/how-to-change-default-kernel-in-ubuntu-22-04-20-04-lts/#6_To_install_any_specific_or_old_version

https://askubuntu.com/questions/1404722/downgrade-kernel-for-ubuntu-22-04-lts

https://askubuntu.com/questions/1404722/downgrade-kernel-for-ubuntu-22-04-lts

https://bugzilla.kernel.org/show_bug.cgi?id=216349

https://bugzilla.kernel.oyrg/

https://forum.proxmox.com/threads/ubuntu-20-04-04-machine-freezes.112507/

https://fygul.blogspot.com/2020/08/ubuntu-20-04-grub2-menu-bug.html

https://2formosa.blogspot.com/2018/02/ubuntu-1604-use-specific-kernel-to-boot.html



本篇瀏覽人數: 4728
分類: ubuntu。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *