linux-purge is not able to purge when there is no meta-kernel installed on Astra Linux Special Edition 1.7.5.16 or 1.8.0.14

Bug #2067152 reported by Andrey Solopko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-purge
In Progress
Undecided
Unassigned

Bug Description

$ sudo linux-purge --list --keep=2
[linux-purge] WARNING: Using whiptail, if needed, because dialog is not
installed.
[linux-purge] ERROR: There are no meta-kernels so can not decide which kernels
to keep.

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

Is this Astra Linux somehow associated with Ubuntu Linux? Could you provide the debugging information produced with the --debug option as an attachment?

Revision history for this message
Andrey Solopko (avsolopko) wrote :

I am attaching the file "linux-purge.debug_BTP" obtained by the command "sudo linux-purge --list --keep=2 --debug"

Revision history for this message
Andrey Solopko (avsolopko) wrote :

How the "sudo linux-purge -c" command works.

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

Can you attach/paste the output of

dpkg-query -W -f '${Depends}\n${Pre-Depends}\n' linux-image-5.10-generic linux-image-5.10-hardened linux-image-latest-generic

Revision history for this message
Andrey Solopko (avsolopko) wrote :

$ dpkg-query -W -f '${Depends}\n${Pre-Depends}\n' linux-image-5.10-generic linux-image-5.10-hardened linux-image-latest-generic
linux-headers-5.10-generic, linux-astra-modules-5.10.190-1-generic

linux-headers-5.10-hardened, linux-astra-modules-5.10.190-1-hardened

linux-headers-latest-generic, linux-astra-modules-6.1.50-1-generic

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

I was expecting to also see packages linux-image-5.10.190-1-generic, linux-image-5.10.190-1-hardened and linux-image-6.1.50-1-generic, listed by the command. I wonder how your system gets kernel updates, if no meta-package depends on the latest kernel.

What is the output of

apt-cache rdepends --important linux-image-5.10.190-1-generic, linux-image-5.10.190-1-hardened and linux-image-6.1.50-1-generic

and

apt-cache rdepends --important --installed linux-image-5.10.190-1-generic, linux-image-5.10.190-1-hardened and linux-image-6.1.50-1-generic

Revision history for this message
Andrey Solopko (avsolopko) wrote :

$ apt-cache rdepends --important linux-image-5.10.190-1-generic, linux-image-5.10.190-1-hardened and linux-image-6.1.50-1-generic
linux-image-5.10.190-1-hardened
Reverse Depends:
  drbd-5.10.190-1-hardened
  trnet-5.10.190-1-hardened
  linux-astra-modules-5.10.190-1-hardened
  iptables-astralabel-5.10.190-1-hardened
  zfs-5.10.190-1-hardened
  vhci-vmware-5.10.190-1-hardened
  igb-5.10.190-1-hardened
  i40e-5.10.190-1-hardened
  firmware-t8s-5.10.190-1-hardened
  drbd-5.10.190-1-hardened
  trnet-5.10.190-1-hardened
  linux-astra-modules-5.10.190-1-hardened
  iptables-astralabel-5.10.190-1-hardened
  zfs-5.10.190-1-hardened
  vhci-vmware-5.10.190-1-hardened
  igb-5.10.190-1-hardened
  i40e-5.10.190-1-hardened
  firmware-t8s-5.10.190-1-hardened
linux-image-6.1.50-1-generic
Reverse Depends:
  drbd-6.1.50-1-generic
  linux-astra-modules-6.1.50-1-generic
  iptables-astralabel-6.1.50-1-generic
  zfs-6.1.50-1-generic
  vhci-vmware-6.1.50-1-generic
  lkrg-6.1.50-1-generic
  igb-6.1.50-1-generic
  i40e-6.1.50-1-generic
  firmware-t8s-6.1.50-1-generic
  drbd-6.1.50-1-generic
  linux-astra-modules-6.1.50-1-generic
  iptables-astralabel-6.1.50-1-generic
  zfs-6.1.50-1-generic
  vhci-vmware-6.1.50-1-generic
  lkrg-6.1.50-1-generic
  igb-6.1.50-1-generic
  i40e-6.1.50-1-generic
  firmware-t8s-6.1.50-1-generic

Revision history for this message
Andrey Solopko (avsolopko) wrote :

$ apt-cache rdepends --important --installed linux-image-5.10.190-1-generic, linux-image-5.10.190-1-hardened and linux-image-6.1.50-1-generic
linux-image-5.10.190-1-hardened
Reverse Depends:
  linux-astra-modules-5.10.190-1-hardened
  linux-astra-modules-5.10.190-1-hardened
linux-image-6.1.50-1-generic
Reverse Depends:
  linux-astra-modules-6.1.50-1-generic
  linux-astra-modules-6.1.50-1-generic

Revision history for this message
Andrey Solopko (avsolopko) wrote :

I reinstalled the Linux kernel especially for you. Now like this:
0 AstraLinux GNU/Linux, with Linux 6.1.50-1-generic
1 AstraLinux GNU/Linux, with Linux 6.1.50-1-generic (recovery mode)
2 AstraLinux GNU/Linux, with Linux 5.15.0-83-generic
3 AstraLinux GNU/Linux, with Linux 5.15.0-83-generic (recovery mode)
4 AstraLinux GNU/Linux, with Linux 5.10.190-1-generic
5 AstraLinux GNU/Linux, with Linux 5.10.190-1-generic (recovery mode)
6 AstraLinux GNU/Linux, with Linux 5.4.0-162-generic
7 AstraLinux GNU/Linux, with Linux 5.4.0-162-generic (recovery mode)
8 UEFI Firmware Settings

Everything is working fine.

Revision history for this message
Andrey Solopko (avsolopko) wrote :

$ sudo linux-purge --list --keep=2
[linux-purge] WARNING: Using whiptail, if needed, because dialog is not
installed.
[linux-purge] ERROR: There are no meta-kernels so can not decide which kernels
to keep.

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

linux-purge was designed to purge kernels of Ubuntu Linux and possibly its derivatives. Astra Linux is not a derivative of Ubuntu Linux and seems to have different dependency structure and naming policy for kernel related packages, so I find it hard to support two incompatible systems.

Could you give the output of

apt-cache rdepends --important --installed --recurse linux-image-6.1.50-1-generic

for example?

Revision history for this message
Andrey Solopko (avsolopko) wrote :

$ apt-cache rdepends --important --installed --recurse linux-image-6.1.50-1-generic
linux-image-6.1.50-1-generic
Reverse Depends:
  linux-astra-modules-6.1.50-1-generic
  linux-astra-modules-6.1.50-1-generic
linux-astra-modules-6.1.50-1-generic
Reverse Depends:
  linux-latest-generic
  linux-image-latest-generic
linux-latest-generic
Reverse Depends:
linux-image-latest-generic
Reverse Depends:
  linux-latest-generic

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

I'll examine, if I can make linux-purge a bit more general to cover this case and to make it more future-proof for Ubuntu Linux.

Changed in linux-purge:
status: New → In Progress
Revision history for this message
Jarno Suni (jarnos) wrote :

Can you tell why linux-image-latest-generic doesn't depend directly on linux-image-6.1.50-1-generic, but via linux-astra-modules-6.1.50-1-generic?

Revision history for this message
Andrey Solopko (avsolopko) wrote :
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.