linux-purge is not able to purge when there is no meta-kernel installed

Bug #2015310 reported by satmandu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-purge
Fix Released
Undecided
Unassigned

Bug Description

sudo linux-purge -c
[linux-purge] ERROR: Aborting due to an unknown error (1)

There is no output from:
sudo linux-purge -l

sudo linux-purge -f
[linux-purge] NOTE: Fixing possible broken packages...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[linux-purge] NOTE: Fixing finished successfully.
HINT: You may run the command again without --fix option to possibly purge more
versioned kernel packages.
[linux-purge] NOTE: If you find this software useful, please donate. You can
find the details at the Launchpad page: <https://launchpad.net/linux-purge>

(This doesn't fix anything though.)

I have attached a log from running linux-purge -d

Revision history for this message
satmandu (satadru-umich) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :

Could you attach a log when you run with -c option so that you reproduce the unknown error?
I.e. please run "sudo linux-purge -c -d" and try to reproduce the error. You might even try with -s (so you do not have to run as superuser).

Revision history for this message
satmandu (satadru-umich) wrote :

log attached from running:

linux-purge -d -s -c
[linux-purge] NOTE: The debug information is saved in
/dev/shm/linux-purge.debug_rYD
[linux-purge] ERROR: Aborting due to an unknown error (1).

Revision history for this message
Jarno Suni (jarnos) wrote :

It seems that linux-purge is not able to find a meta-kernel in your system. ("linux-purge --info" would warn about it.) Have you installed all kernels manually? Kernel packages such as "linux-image-6.2.9" are not part of standard Ubuntu Lunar system so I think they do not have reserve depencencies. You could test is by "apt rdepends linux-image-6.2.9" (with the latest kernel). Currently linux-purge expects that you have at least one meta kernel installed. Is it intentional, that you don't have any meta kernels installed?

Revision history for this message
satmandu (satadru-umich) wrote :

Yes, the lack of installed meta-kernels is intentional, as I test custom-built openzfs versions against my own built mainline kernels. This lets me avoid accidentally having an ubuntu kernel built with an older version of zfs built into it.

(This also occurs on arm64 ubuntu builds, where I also don't have ubuntu meta-kernels installed, since on those builds I test raspberry pi foundation kernels I turn into debian packages.)

Is there a recommended way to work around this?

Revision history for this message
Jarno Suni (jarnos) wrote :

Currently no by linux-purge. I will try to modify linux-purge so that it could operate even when there are no meta-kernels installed, except with -k option.

summary: - linux-purge aborting due to an unknown error
+ linux-purge is not able to purge when there is no meta-kernel installed
Changed in linux-purge:
status: New → In Progress
Revision history for this message
Jarno Suni (jarnos) wrote :

Well, as for a workaround, if you install a meta-kernel, like linux-generic or equivalent, linux-purge will work as such.

Revision history for this message
Jarno Suni (jarnos) wrote :

Please update to the latest version. Can you confirm that it fixes the issue?

Revision history for this message
satmandu (satadru-umich) wrote :

Thanks! I can confirm that the new version resolves the issue on my x86_64 and arm64 systems!

Jarno Suni (jarnos)
Changed in linux-purge:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.