Ubuntu

linux-backports-modules-2.6.28-4-generic purge fails

Reported by djr013 on 2009-01-28
144
This bug affects 42 people
Affects Status Importance Assigned to Milestone
initramfs-tools
Undecided
Unassigned
initramfs-tools (Ubuntu)
Undecided
Unassigned
linux-backports-modules-2.6.28 (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: linux-backports-modules-2.6.28-4-generic

This package, including other linux...2.6.28-4 packages had been already removed, but when I tried to purge, it failed with the message (if I can remember from five minutes ago...) "Could not find file/directory '/boot/System.map-2.6.28-4-generic'."

Using: Ubuntu jaunty (development branch), release: 9.04
Expected to purge and forget... ;)
Didn't purge, still have package listed as residual config.

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-removal script returned error exit status 1
Package: linux-backports-modules-2.6.28-4-generic None
SourcePackage: linux-backports-modules-2.6.28
Title: package linux-backports-modules-2.6.28-4-generic None failed to install/upgrade: subprocess post-removal script returned error exit status 1
Uname: Linux 2.6.28-5-generic i686

djr013 (djr013) wrote :

Hi DJR013,

Sorry for the delayed response. From the error messages in your DpkgTerminalLog.txt . Seem related to the fact that you'd likely already removed the linux-image-2.6.28-4-generic package I'm guessing:

Purging configuration files for linux-backports-modules-2.6.28-4-generic ...
FATAL: Could not open '/boot/System.map-2.6.28-4-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.28-4-generic
Cannot find /lib/modules/2.6.28-4-generic
update-initramfs: failed for /boot/initrd.img-2.6.28-4-generic
dpkg: error processing linux-backports-modules-2.6.28-4-generic (--purge):
 subprocess post-removal script returned error exit status 1

Changed in linux-backports-modules-2.6.28 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
djr013 (djr013) wrote :

Yes, exactly...sorry if that was a bit unclear. I removed, then attempted to purge the package. The problem is still present through version 2.6.28-10, the latest.

If I had to take a random guess, I would think the packages' removal scripts are trying to remove that file on both remove and purge, expecting it to be there when the script begins. This shouldn't result in failure. If that removed file is necessary to reconfigure something for purge, should it even be removed when when not purging? If it's not necessary, and already gone, then purge should just be happy it has one less file to remove.

djr013 (djr013) wrote :

Didn't catch this in time for the last message... I just tried purging all my linux-backports packages, plus some other old linux packages. My description appears to be wrong in including the other packages in the bug. However this time it managed to purge some of the latest linux-backports packages after still giving errors on missing files. After four or so unsuccessful purges, a maximum number of failures were reported to apport apparently and the rest continued without complete failure, being removed from the residual config list in Synaptic. Odd...

Sybren Harmsma (harmsma) wrote :

I can confirm this on Ubuntu 9.10.

# dpkg --get-selections | grep purge
linux-backports-modules-2.6.28-14-generic purge
linux-backports-modules-2.6.28-15-generic purge

# aptitude purge linux-backports-modules-2.6.28-14-generic linux-backports-modules-2.6.28-15-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  linux-backports-modules-2.6.28-14-generic{p} linux-backports-modules-2.6.28-15-generic{p}
0 packages upgraded, 0 newly installed, 2 to remove and 23 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 142151 files and directories currently installed.)
Removing linux-backports-modules-2.6.28-14-generic ...
Purging configuration files for linux-backports-modules-2.6.28-14-generic ...
FATAL: Could not open '/boot/System.map-2.6.28-14-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.28-14-generic
Cannot find /lib/modules/2.6.28-14-generic
update-initramfs: failed for /boot/initrd.img-2.6.28-14-generic
dpkg: error processing linux-backports-modules-2.6.28-14-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing linux-backports-modules-2.6.28-15-generic ...
Purging configuration files for linux-backports-modules-2.6.28-15-generic ...
FATAL: Could not open '/boot/System.map-2.6.28-15-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic
Cannot find /lib/modules/2.6.28-15-generic
update-initramfs: failed for /boot/initrd.img-2.6.28-15-generic
dpkg: error processing linux-backports-modules-2.6.28-15-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-backports-modules-2.6.28-14-generic
 linux-backports-modules-2.6.28-15-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

Gary M (garym) on 2010-08-22
tags: added: jaunty karmic lucid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers