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):
Then try installing the packages again.sudo add-apt-repository universe sudo apt update
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:
Look for an entry that looks likegrep menuentry /boot/grub/grub.cfgUbuntu, 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=0and change it to either:- The index number of your target kernel (e.g.,
GRUB_DEFAULT=1if 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"
- The index number of your target kernel (e.g.,
- Also make sure
GRUB_TIMEOUTis set to at least 5 so you have time to select a kernel manually if needed:GRUB_TIMEOUT=5
- Find the line
- Save the file (press
Ctrl+O, thenEnter) 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:
If it outputsuname -r5.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
.debfiles (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
Shiftkey 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
相关产品推荐
相关产品推荐

