How do I remove the kernel that I don’t want to use?

I’m running Manjaro Gnome and I want to use the 5.4.67-1 LTS kernel and not the 5.8.11-1 kernel.

I tried removing the 5.8.11 kernel and the terminal returned:

sudo pacman -Rsn linux58
[sudo] password for sifu:
checking dependencies…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux58 breaks dependency ‘linux58’ required by linux-latest

How do I remove the kernel that I don’t want to use and make it so that Manjaro will boot into kernel 5.4.67 LTS?

manjaro offers to add many kernels ,
and to select one with Grub

so add version 5.4

sudo mhwd-kernel -i linux54

then reboot press Esc or Shift for Grub
and select in advanced , version kernel
if boot succeed , it will be taken next boot ( line with * )

stay always with 2 version kernels

1 Like

Here’s what worked for me:

ms7845 ~]$ sudo pacman -R linux58
checking dependencies...

Packages (1) linux58-5.8.11-1

Total Removed Size:  149.25 MiB

:: Do you want to remove these packages? [Y/n] Y
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
(1/1) removing linux58                             [######################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating Grub-Bootmenu
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.4-x86_64.img
Found initrd fallback image: /boot/initramfs-5.4-x86_64-fallback.img
Found Debian GNU/Linux 9 (stretch) on /dev/sda1
Found LMDE 4 Debbie (4) on /dev/sdb1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

Kernel 5.4 was already installed so removing linux58 fixed the problem.

Here’s another link that helped me understand what to do.

https://wiki.manjaro.org/index.php/Manjaro_Kernels

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.