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

Bug #1532153 reported by Jarno Suni
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu
Won't Fix
Low
Unassigned

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)
description: updated
Revision history for this message
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
Revision history for this message
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.

Mathew Hodson (mhodson)
affects: bikeshed → ubuntu
no longer affects: ubuntu
Revision history for this message
Edmund Laugasson (ed-lau) wrote :

Since which byobu version the mentioned bug has been fixed?

Revision history for this message
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.
https://www.bountysource.com/issues/38300038-feature-request-the-command-should-work-like-this

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

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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