purge-old-kernels does not purge all desired linux header packages

Bug #1532153 reported by Jarno Suni on 2016-01-08
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

The script may purge some of these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+-.*$
but not these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+$

Related branches

Jarno Suni (jarnos) on 2016-02-10
description: updated
Jarno Suni (jarnos) wrote :

Also there may be plenty of related versioned packages that become obsolete without the kernel packages.

Changed in byobu:
importance: Undecided → Low
status: New → In Progress
Changed in bikeshed:
status: New → Invalid
Changed in byobu:
status: In Progress → Fix Committed
Dustin Kirkland  (kirkland) wrote :

bzr commit -m '* usr/bin/purge-old-kernels: LP: #1532153
  - run autoremove afterwards, to clean up anything else' --fixes 'lp:1532153'
Committing to: /srv/media/src/byobu/byobu/
modified debian/changelog
modified usr/bin/purge-old-kernels
Committed revision 2513.

affects: bikeshed → ubuntu
no longer affects: ubuntu
Edmund Laugasson (ed-lau) wrote :

Since which byobu version the mentioned bug has been fixed?

Jarno Suni (jarnos) wrote :

The fix has not been released. Besides, the fix by running `apt autoremove --purge` may purge more kernels than what is intended by the caller using purge-old-kernels.

By the way, there is another script handling the job. I will publish it once I get paid decently.

description: updated
Jarno Suni (jarnos) wrote :

Actually I get the money only after I have published the script and it has been accepted by backers.

Dustin Kirkland  (kirkland) wrote :

purge-old-kernels has been deprecated, in favor of "apt autoremove". If you have problems, please file bugs against apt.

Changed in byobu:
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers