[Bug 43306] error message when uninstalling old kernels

Chris Moore dooglus at gmail.com
Tue May 9 01:33:21 UTC 2006


Public bug reported:

Affects: kernel-package (Ubuntu)
       Severity: Minor
       Priority: (none set)
         Status: Unconfirmed


Description:
I just removed a bunch of old kernels from my dapper partition.  Each
one I installed ended up with an error message:

Removing package: linux-image-2.6.15-16-686
Removing package: linux-restricted-modules-2.6.15-16-686
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  linux-image-2.6.15-16-686* linux-restricted-modules-2.6.15-16-686*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 83.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 118326 files and directories currently installed.)
Removing linux-restricted-modules-2.6.15-16-686 ...
Purging configuration files for linux-restricted-modules-2.6.15-16-686 ...
Removing linux-image-2.6.15-16-686 ...
Purging configuration files for linux-image-2.6.15-16-686 ...
Cannot delete /boot/initrd.img-2.6.15-16-686, doesn't exist.

I listed the contents of /boot before and after this removal.  Notice
that /boot/initrd.img-2.6.15-16-686 *did* exists before I uninstalled
the kernel, and didn't afterwards:

[before]
(dapper) chris at chrislap:/boot$ l
total 27579
-rw-r--r-- 1 root root  725960 Feb 20 20:49 System.map-2.6.15-16-686
-rw-r--r-- 1 root root  729426 Apr  4 23:02 System.map-2.6.15-20-686
-rw-r--r-- 1 root root  730275 Apr 21 19:01 System.map-2.6.15-21-686
-rw-r--r-- 1 root root  257915 Feb 20 20:49 abi-2.6.15-16-686
-rw-r--r-- 1 root root  261843 Apr  4 23:02 abi-2.6.15-20-686
-rw-r--r-- 1 root root  262510 Apr 21 19:01 abi-2.6.15-21-686
-rw-r--r-- 1 root root     512 Feb 22 02:27 boot.0300
-rw-r--r-- 1 root root      87 Sep 23  2005 bootmess.txt
-rw-r--r-- 1 root root   69060 Feb 20 17:19 config-2.6.15-16-686
-rw-r--r-- 1 root root   69294 Apr  4 19:30 config-2.6.15-20-686
-rw-r--r-- 1 root root   69555 Apr 21 17:54 config-2.6.15-21-686
-rw-r--r-- 1 root root 6686934 Mar  2 17:23 initrd.img-2.6.15-16-686
-rw-r--r-- 1 root root 6735405 Apr 21 04:19 initrd.img-2.6.15-20-686
-rw-r--r-- 1 root root 6745582 May  6 04:28 initrd.img-2.6.15-21-686
-rw------- 1 root root  239616 May  7 02:02 map
-rw-r--r-- 1 root root   94760 Oct 25  2005 memtest86+.bin
-rw-r--r-- 1 root root 1489764 Feb 20 20:49 vmlinuz-2.6.15-16-686
-rw-r--r-- 1 root root 1504063 Apr  4 23:02 vmlinuz-2.6.15-20-686
-rw-r--r-- 1 root root 1504284 Apr 21 19:01 vmlinuz-2.6.15-21-686

[after]
(dapper) chris at chrislap:/boot$ l
total 18551
-rw-r--r-- 1 root root  729426 Apr  4 23:02 System.map-2.6.15-20-686
-rw-r--r-- 1 root root  730275 Apr 21 19:01 System.map-2.6.15-21-686
-rw-r--r-- 1 root root  261843 Apr  4 23:02 abi-2.6.15-20-686
-rw-r--r-- 1 root root  262510 Apr 21 19:01 abi-2.6.15-21-686
-rw-r--r-- 1 root root     512 Feb 22 02:27 boot.0300
-rw-r--r-- 1 root root      87 Sep 23  2005 bootmess.txt
-rw-r--r-- 1 root root   69294 Apr  4 19:30 config-2.6.15-20-686
-rw-r--r-- 1 root root   69555 Apr 21 17:54 config-2.6.15-21-686
-rw-r--r-- 1 root root 6735405 Apr 21 04:19 initrd.img-2.6.15-20-686
-rw-r--r-- 1 root root 6745582 May  6 04:28 initrd.img-2.6.15-21-686
-rw------- 1 root root  239616 May  7 02:02 map
-rw-r--r-- 1 root root   94760 Oct 25  2005 memtest86+.bin
-rw-r--r-- 1 root root 1504063 Apr  4 23:02 vmlinuz-2.6.15-20-686
-rw-r--r-- 1 root root 1504284 Apr 21 19:01 vmlinuz-2.6.15-21-686

It looks like two different parts of the removal process are trying to
remove the same file.  The first one succeeds, and the 2nd one complains
that the file no longer exists.

I saw the same error message when I deleted 3 other old kernel versions (-15, -17 and -18).

Note: the original reporter indicated the bug was in package 'linux-image'; however, that package was not published in Ubuntu.

-- 
error message when uninstalling old kernels
https://launchpad.net/bugs/43306




More information about the kernel-bugs mailing list