You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.03LTS内核降级至5.15.0-41-generic失败求助

Ubuntu 22.04.03LTS内核降级至5.15.0-41-generic失败求助

Hey Hector, sorry to hear you're stuck trying to downgrade your kernel—let's walk through this step by step to get it sorted out.

Step 1: Install the target kernel packages

First, let's make sure we can grab the 5.15.0-41-generic packages from the repos:

  • Open up your terminal and refresh the package list:
    sudo apt update
    
  • Check if the specific kernel packages are still available:
    apt-cache search linux-image-5.15.0-41-generic linux-headers-5.15.0-41-generic
    
  • If you see the packages listed, install all the required components (image, headers, modules, and extra modules):
    sudo apt install linux-image-5.15.0-41-generic linux-headers-5.15.0-41-generic linux-modules-5.15.0-41-generic linux-modules-extra-5.15.0-41-generic
    
  • If the packages don't show up, enable the Universe repository (it's usually enabled by default on 22.04, but it never hurts to double-check):
    sudo add-apt-repository universe
    sudo apt update
    
    Then try installing the packages again.

Step 2: Set the downgraded kernel as default

Installing the kernel isn't enough—we need to tell GRUB to boot into it by default:

  • First, list all the kernel entries in GRUB to find the exact name of our target kernel:
    grep menuentry /boot/grub/grub.cfg
    
    Look for an entry that looks like Ubuntu, with Linux 5.15.0-41-generic. Note its position (GRUB counts from 0) or copy the full entry text.
  • Edit the GRUB configuration file:
    sudo nano /etc/default/grub
    
    • Find the line GRUB_DEFAULT=0 and change it to either:
      • The index number of your target kernel (e.g., GRUB_DEFAULT=1 if it's the second entry), or
      • The full menu entry text, like:
        GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.15.0-41-generic"
        
    • Also make sure GRUB_TIMEOUT is set to at least 5 so you have time to select a kernel manually if needed:
      GRUB_TIMEOUT=5
      
  • Save the file (press Ctrl+O, then Enter) and exit nano (Ctrl+X), then update GRUB to apply the changes:
    sudo update-grub
    

Step 3: Verify and reboot

  • Reboot your system:
    sudo reboot
    
  • Once it's back up, check which kernel you're running with:
    uname -r
    
    If it outputs 5.15.0-41-generic, you're all set!

If it still isn't working

  • Package not found error: If the 5.15.0-41 packages are missing from the repos, they might have been archived. You can manually download the corresponding .deb files (image, headers, modules, extra modules) from Ubuntu's package archive, then install them with:
    sudo dpkg -i /path/to/downloaded/*.deb
    
  • Still booting into the new kernel: Try rebooting while holding the Shift key to bring up the GRUB menu. Go to "Advanced options for Ubuntu" and select the 5.15.0-41-generic kernel manually. Once booted, re-run the GRUB configuration steps above to make sure the default is set correctly.

备注:内容来源于stack exchange,提问作者Hector Gutierrez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 13:34:52