Thanks for your replies, I'm juggling some other problems at the minute so will look at this more again in the morning. Here's what I've found so far - although I started writing this response before the last couple of suggestions...
I've been doing some testing...
the test system is up to date with everything installed by apt-get update && apt-get upgrade (at the point I took the snapshot)
the output at this point is:
Code:
The following packages have been kept back:
landscape-common linux-generic-pae linux-headers-generic-pae
linux-image-generic-pae
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uname -r gives
2.6.32-39-generic-pae
I'm not sure why this is, as other servers have updated to 2.6.32-40 using only apt-get update and apt-get upgrade
if I run:
Code:
apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1) --assume-yes
first thing it does is install headers for 2.6.32-40
Code:
The following NEW packages will be installed
linux-headers-2.6.32-40 linux-headers-2.6.32-40-generic-pae
The following packages will be upgraded:
linux-headers-generic-pae
1 upgraded, 2 newly installed, 38 to remove and 3 not upgraded.
Need to get 10.7MB of archives.
After this operation, 2,218MB disk space will be freed.
it then runs through the loop removing headers for old versions, the final few lines of output are:
Code:
Setting up linux-headers-2.6.32-40 (2.6.32-40.87) ...
Setting up linux-headers-2.6.32-40-generic-pae (2.6.32-40.87) ...
Setting up linux-headers-generic-pae (2.6.32.40.47) ...
however when I cd /boot and ls the output is:
Code:
abi-2.6.32-39-generic-pae memtest86+.bin
config-2.6.32-39-generic-pae System.map-2.6.32-39-generic-pae
grub vmcoreinfo-2.6.32-39-generic-pae
initrd.img-2.6.32-39-generic-pae vmlinuz-2.6.32-39-generic-pae
lost+found
I'm only getting left with 1 kernel version's entries in /boot - any ideas what's going on?
I've even done this multiple times and kept reverting back to the snapshot just to try to rule out any mistakes I could have made, but I've got the same result each time.
I'll try the safeupgrade and let you know what happens then.
Thanks for the help so far
Bookmarks