Remove an Old Kernel

Hello,

How would I remove an old kernel that on my computer says it’s no longer installed?

Unable to install module steamos-xpad/20190810 for kernel 4.14.221-1-MANJARO: Missing kernel modules tree.

Please help, thank you!

Hello,

Open up Manjaro Settings Manager > Kernels and you can remove it from there, or check if is installed. Otherwise from Terminal:
sudo mhwd-kernel -r linux414

Is all documented in the Manjaro Kernels - Manjaro wiki …

1 Like

That’s to remove it!

First install another kernel, for example from the terminal:

sudo mhwd-kerneel -i linux54 

Or

sudo mhwd-kernel -i linux510

(5.4 is the current LTS and 5.10 is set to be the next LTS.)

If successful, you can then remove 4.14:

sudo mhwd-kernel -r 414

Hold your thumbs and reboot.

If all went well, then you’re good to go!

2 Likes

I am already running linux 510 which is the odd part about this.

When I ran

sudo mhwd-kernel -r 414

I got

[sudo] password for wired: 
Error: Please enter a valid kernel name.
Currently running: 5.10.15-1-MANJARO (linux510)
The following kernels are installed in your system:
   * linux510
Packages (1) steamos-xpad-dkms-20190810-1

Total Installed Size:  0.06 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                     [################################################] 100%
(1/1) checking package integrity                                                   [################################################] 100%
(1/1) loading package files                                                        [################################################] 100%
(1/1) checking for file conflicts                                                  [################################################] 100%
(1/1) checking available disk space                                                [################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m steamos-xpad -v 20190810 -k 5.10.15-1-MANJARO
==> Unable to remove module steamos-xpad/20190810 for kernel 4.14.221-1-MANJARO: Not found in dkms status output.
:: Processing package changes...
Error! The module/version combo: steamos-xpad-20190810
is not located in the DKMS tree.
error: command failed to execute correctly
(1/1) reinstalling steamos-xpad-dkms                                               [################################################] 100%

Creating symlink /var/lib/dkms/steamos-xpad/20190810/source ->
                 /usr/src/steamos-xpad-20190810

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.10.15-1-MANJARO KVERSION=5.10.15-1-MANJARO...
cleaning build area...
Kernel cleanup unnecessary for this kernel.  Skipping...

DKMS: build completed.

steamos-xpad.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/5.10.15-1-MANJARO/kernel/drivers/input/joystick/

depmod....

DKMS: install completed.
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m steamos-xpad -v 20190810 -k 5.10.15-1-MANJARO
==> depmod 5.10.15-1-MANJARO
==> Unable to install module steamos-xpad/20190810 for kernel 4.14.221-1-MANJARO: Missing kernel modules tree.
sudo mhwd-kernel -r linux414

?

[wired@BigBertha ~]$ sudo mhwd-kernel -r linux414
[sudo] password for wired: 
Error: Kernel not installed.
Currently running: 5.10.15-1-MANJARO (linux510)
The following kernels are installed in your system:
   * linux510

It doesn’t show up as being installed.

Hi @Squitwert ,
Please, take a look at this forum post in order to see whether is useful for you.
How to remove a "ghost-kernel"? - #7 by stephane

Hope it help, regards,

1 Like

Hey thanks that was!

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