What happens when the /boot partition is full?

Asked by tearsforhari

Hi. I think because the auto-update is on, old kernels and their dependencies continuously fill up the /boot partition. Can someone tell me if this is an issue? That is, will it affect cron jobs or any other processes on a virtual machine?

I just figured out how to manually purge them using the command prompt. But it seems to be a design flaw in Ubuntu, no?

How to correctly turn off auto-updates at the command prompt?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

When the /boot partition fills you cannot install more kernels. The old kernels are kept to allow users to boot to older kernels if a new one causes an issue. I agree it's annoying and users having to manually remove lots of ancient kernels is stupid.

You could report a bug, maybe the postinst script could uninstall all but the last 3 kernels (as an option in settings)

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

What Ubuntu release are you running?
Since 14.04 the old kernels are marked as 'no more required', such that they can be easily removed with the command

sudo apt-get --purge autoremove

And back to your original question:

The only effect of a full /boot partition is that new kernels can no more be installed. Everything else (cron, etc.) should happen outside the /boot partition and should not be affected (as long as there is enough free space on the root partition / )

I would not recommend to disable updates, because bug fixes are delivered via that mechanism. Think back a few weeks to shellshock, heartbleed, ...

What is the output of the terminal commands

uname -a
lsb_release -crid
dpkg -l | egrep ' linux-[hi]'
df -h
df -i

This should provide some information about your system and might help in giving more answers.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ubuntu Tweak can do it for you. I know guys with a cron job to do the job.

Revision history for this message
tearsforhari (tearsforhari) said :
#4

Manfred, here are the outputs:
> uname -a
Linux MachineName 3.5.0-45-generic #68~precise1-Ubuntu SMP Wed Dec 4 16:18:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

>lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

>dpkg -l | egrep ' linux-[hi]'ii linux-headers-3.5.0-39 3.5.0-39.60~precise1 Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-39-generic 3.5.0-39.60~precise1 Linux kernel headers for version 3.5.0 on 64 bit x86 SMP
ii linux-headers-3.5.0-45 3.5.0-45.68~precise1 Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-45-generic 3.5.0-45.68~precise1 Linux kernel headers for version 3.5.0 on 64 bit x86 SMP
ii linux-headers-3.5.0-46 3.5.0-46.70~precise1 Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-46-generic 3.5.0-46.70~precise1 Linux kernel headers for version 3.5.0 on 64 bit x86 SMP
ii linux-headers-3.5.0-47 3.5.0-47.71~precise1 Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-47-generic 3.5.0-47.71~precise1 Linux kernel headers for version 3.5.0 on 64 bit x86 SMP
ii linux-headers-3.5.0-54 3.5.0-54.81~precise1 Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-54-generic 3.5.0-54.81~precise1 Linux kernel headers for version 3.5.0 on 64 bit x86 SMP
ii linux-headers-generic-lts-quantal 3.5.0.54.59 Generic Linux kernel headers
ii linux-image-3.5.0-45-generic 3.5.0-45.68~precise1 Linux kernel image for version 3.5.0 on 64 bit x86 SMP

>df -h
/dev/mapper/MachineName 21G 12G 7.7G 61% /
udev 989M 4.0K 989M 1% /dev
tmpfs 200M 768K 199M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 999M 0 999M 0% /run/shm
/dev/sdb1 74G 795M 70G 2% /mnt/2ndHDD
/dev/sda1 228M 29M 187M 14% /boot

> df -I
/dev/mapper/MachineName 1362720 250855 1111865 19% /
udev 253136 454 252682 1% /dev
tmpfs 255538 398 255140 1% /run
none 255538 5 255533 1% /run/lock
none 255538 1 255537 1% /run/shm
/dev/sdb1 4915200 3691 4911509 1% /mnt/2ndHDD
/dev/sda1 124496 232 124264 1% /boot

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Ok, thanks for the output.

You are running Ubuntu 12.04, so the command about just running 'sudo apt-get autoremove' will not work for your system. You have to use different mechanisms for cleaning up obsolete kernel packages.

Your /dev/sda1 partition that is the /boot directory has 228 MB size. This enables you to have about five or six kernel packages installed at the same time. It is a common practice to delete all except the two or three newest ones whenever the package updater has installed a new one.

What puzzles me a bit is the fact that I see only one kernel package on your system, which is already one and a half years old. So apparently you currently do not get updates and bug fixes on the kernel image package.

My recommendations:
Install linux-generic-lts-quantal to make sure that you get updates and bug fixes for the kernel image package.
Install ubuntu-tweak from the tualatrix ppa and once a month start ubuntu-tweak and use the janitor function to remove obsolete kernel packages.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

I do not have a server and I do not use auto-updates, so I do not have any experience with that.
I update my systems manually.

General answers:

The command "dpkg -l" lists the status of packages on your system. There are different status codes shown in the first column. The most common ones are ii and rc.

ii tells that the package is successfully installed
rc indicates that the packages was installed, has successfully been removed, and just configuration files are left.

If a kernel package has been uninstalled because it has been made obsolete by later versions, then you will never need its configuration files again, and you might clean them up.

All configuration files left over from uninstalled packages can be removed with the command

dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo dpkg --purge

If you do this on that second system, then re-running "dpkg -l | egrep ' linux-[hi]'" should show only the Linux-image packages installed with versions 3.2.0-60.91, 3.2.0-82.119 and 3.2.0-83.120. This is acceptable. You might think of purging also the 3.2.0-60 version if you are sure that your system has already been rebooted into a newer kernel.

You can avoid that the configuration files are left behind, if you use different parameters or add certain options to the uninstallation command ("sudo apt-get purge packagename" instead of "sudo apt-get remove packagename" or "sudo apt-get remove --purge packagename"; similar for dpkg).

My general advice for all systems (desktops and servers, no difference whether automatic updates are installed or not):

Regularly do housekeeping (frequency should be between once a week and once a month):
issue "sudo apt-get update && sudo apt-get dist-upgrade" to install all available updates (unless they are already installed by automatic updates)
issue the "dpkg -l | egrep ' linux-[hi]'" command to check for the number and versions of installed kernel packages (both headers and image)
use uname -a to verify the version number of the running kernel
if you are not running the newest kernel version, reboot the system (of course you have to choose a suitable moment, not to disturb normal server operations)
when the newest kernel is working without problems purge old kernel image and kernel header packages, leaving only those with the highest two (eventually three) version numbers installed.

Revision history for this message
tearsforhari (tearsforhari) said :
#8

Thanks Manfred Hampl, that solved my question.

Revision history for this message
tearsforhari (tearsforhari) said :
#9

Sorry Manfred, I always have problems removing kernels when the /boot is full. I have tried apt-get purge and apt-get remove --purge to manually remove old kernels, but I run into problems. Also, I now understand ii and rc, but what is IF? Below, I did the following so far:

>dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo dpkg --purge
(fine; it removed a lot of rc)

>uname -a
Linux MachineName 3.2.0-74-generic #109-Ubuntu SMP Tue Dec 9 16:45:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

>lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

>dpkg -l | egrep ' linux-[hi]'
ii linux-headers-3.2.0-70 3.2.0-70.105 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-70-generic 3.2.0-70.105 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-72 3.2.0-72.107 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-72-generic 3.2.0-72.107 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-74 3.2.0-74.109 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-74-generic 3.2.0-74.109 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-75 3.2.0-75.110 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-75-generic 3.2.0-75.110 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-76 3.2.0-76.111 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-76-generic 3.2.0-76.111 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-77 3.2.0-77.114 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-77-generic 3.2.0-77.114 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-79 3.2.0-79.115 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-79-generic 3.2.0-79.115 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-80 3.2.0-80.116 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-80-generic 3.2.0-80.116 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-82 3.2.0-82.119 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-82-generic 3.2.0-82.119 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-server 3.2.0.82.96 Linux kernel headers on Server Equipment.
ii linux-image-3.2.0-29-generic 3.2.0-29.46 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-63-generic 3.2.0-63.95 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-70-generic 3.2.0-70.105 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-72-generic 3.2.0-72.107 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-74-generic 3.2.0-74.109 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-75-generic 3.2.0-75.110 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-76-generic 3.2.0-76.111 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-77-generic 3.2.0-77.114 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-79-generic 3.2.0-79.115 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-80-generic 3.2.0-80.116 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-82-generic 3.2.0-82.119 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU linux-image-server 3.2.0.80.94 Linux kernel image on Server Equipment.

>df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/MachineName 48G 6.3G 40G 14% /
udev 486M 12K 486M 1% /dev
tmpfs 99M 292K 99M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 495M 0 495M 0% /run/shm
/dev/sda1 228M 225M 0 100% /boot

>df -I
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/MachineName 3194880 281461 2913419 9% /
udev 124323 436 123887 1% /dev
tmpfs 126590 339 126251 1% /run
none 126590 4 126586 1% /run/lock
none 126590 1 126589 1% /run/shm
/dev/sda1 124496 279 124217 1% /boot

>apt-get purge linux-image-3.2.0-29-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-server : Depends: linux-headers-server (= 3.2.0.80.94) but 3.2.0.82.96 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

>apt-get remove --purge linux-image-3.2.0-29-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-server : Depends: linux-headers-server (= 3.2.0.80.94) but 3.2.0.82.96 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

>apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-70-generic linux-image-3.2.0-76-generic linux-headers-3.2.0-70 linux-headers-3.2.0-72 linux-headers-3.2.0-75 linux-headers-3.2.0-76
  linux-headers-3.2.0-77 linux-headers-3.2.0-76-generic linux-image-3.2.0-77-generic linux-image-3.2.0-72-generic linux-headers-3.2.0-77-generic
  linux-image-3.2.0-75-generic linux-headers-3.2.0-72-generic linux-image-3.2.0-70-generic linux-headers-3.2.0-75-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-3.2.0-84 linux-headers-3.2.0-84-generic linux-headers-server linux-image-3.2.0-84-generic linux-image-server linux-server
Suggested packages:
  fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools
The following NEW packages will be installed:
  linux-headers-3.2.0-84 linux-headers-3.2.0-84-generic linux-image-3.2.0-84-generic
The following packages will be upgraded:
  linux-headers-server linux-image-server linux-server
3 upgraded, 3 newly installed, 0 to remove and 34 not upgraded.
4 not fully installed or removed.
Need to get 51.5 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-84 all 3.2.0-84.121 [11.7 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-84-generic amd64 3.2.0-84.121 [977 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-server amd64 3.2.0.84.98 [1,734 B]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-server amd64 3.2.0.84.98 [2,386 B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-3.2.0-84-generic amd64 3.2.0-84.121 [38.8 MB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-server amd64 3.2.0.84.98 [2,390 B]
Fetched 51.5 MB in 1min 4s (799 kB/s)
Selecting previously unselected package linux-headers-3.2.0-84.
(Reading database ... 268323 files and directories currently installed.)
Unpacking linux-headers-3.2.0-84 (from .../linux-headers-3.2.0-84_3.2.0-84.121_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-84-generic.
Unpacking linux-headers-3.2.0-84-generic (from .../linux-headers-3.2.0-84-generic_3.2.0-84.121_amd64.deb) ...
Preparing to replace linux-headers-server 3.2.0.82.96 (using .../linux-headers-server_3.2.0.84.98_amd64.deb) ...
Unpacking replacement linux-headers-server ...
Selecting previously unselected package linux-image-3.2.0-84-generic.
Unpacking linux-image-3.2.0-84-generic (from .../linux-image-3.2.0-84-generic_3.2.0-84.121_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-84-generic_3.2.0-84.121_amd64.deb (--unpack):
 failed in write on buffer copy for backend dpkg-deb during `./boot/vmlinuz-3.2.0-84-generic': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.2.0-84-generic_3.2.0-84.121_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

iF has a meaning of "should be installed, but failed"

Your /boot partition again is full. You have nine different versions of the kernel installed, and tried adding two more.
Your boot partition has space only for maximum nine of them.

Try

sudo dpkg --purge ii linux-image-3.2.0-29-generic linux-image-3.2.0-63-generic linux-image-3.2.0-70-generic linux-image-3.2.0-72-generic linux-image-3.2.0-74-generic
sudo apt-get -f install

and report the outcome.

Revision history for this message
tearsforhari (tearsforhari) said :
#11

Almost:

>sudo dpkg --purge ii linux-image-3.2.0-29-generic linux-image-3.2.0-63-generic linux-image-3.2.0-70-generic linux-image-3.2.0-72-generic linux-image-3.2.0-74-generic
(fine)
>sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-70-generic linux-image-3.2.0-76-generic linux-headers-3.2.0-70 linux-headers-3.2.0-72 linux-headers-3.2.0-75 linux-headers-3.2.0-76
  linux-headers-3.2.0-77 linux-headers-3.2.0-76-generic linux-image-3.2.0-77-generic linux-headers-3.2.0-77-generic linux-image-3.2.0-75-generic
  linux-headers-3.2.0-72-generic linux-headers-3.2.0-75-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.2.0-84-generic linux-image-server linux-server
Suggested packages:
  fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools
The following NEW packages will be installed:
  linux-image-3.2.0-84-generic
The following packages will be upgraded:
  linux-image-server linux-server
2 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
7 not fully installed or removed.
Need to get 0 B/38.8 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 269676 files and directories currently installed.)
Unpacking linux-image-3.2.0-84-generic (from .../linux-image-3.2.0-84-generic_3.2.0-84.121_amd64.deb) ...
Done.
Setting up linux-image-3.2.0-80-generic (3.2.0-80.116) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-80-generic /boot/vmlinuz-3.2.0-80-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-80-generic /boot/vmlinuz-3.2.0-80-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-80-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-80-generic /boot/vmlinuz-3.2.0-80-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-80-generic /boot/vmlinuz-3.2.0-80-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found linux image: /boot/vmlinuz-3.2.0-77-generic
Found initrd image: /boot/initrd.img-3.2.0-77-generic
Found linux image: /boot/vmlinuz-3.2.0-76-generic
Found initrd image: /boot/initrd.img-3.2.0-76-generic
Found linux image: /boot/vmlinuz-3.2.0-75-generic
Found initrd image: /boot/initrd.img-3.2.0-75-generic
Found memtest86+ image: /memtest86+.bin
done
Setting up linux-image-3.2.0-82-generic (3.2.0-82.119) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-82-generic /boot/vmlinuz-3.2.0-82-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-82-generic /boot/vmlinuz-3.2.0-82-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-82-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-82-generic /boot/vmlinuz-3.2.0-82-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-82-generic /boot/vmlinuz-3.2.0-82-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found linux image: /boot/vmlinuz-3.2.0-77-generic
Found initrd image: /boot/initrd.img-3.2.0-77-generic
Found linux image: /boot/vmlinuz-3.2.0-76-generic
Found initrd image: /boot/initrd.img-3.2.0-76-generic
Found linux image: /boot/vmlinuz-3.2.0-75-generic
Found initrd image: /boot/initrd.img-3.2.0-75-generic
Found memtest86+ image: /memtest86+.bin
done
Setting up linux-headers-3.2.0-84 (3.2.0-84.121) ...
Setting up linux-headers-3.2.0-84-generic (3.2.0-84.121) ...
Setting up linux-image-3.2.0-84-generic (3.2.0-84.121) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-84-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-84-generic /boot/vmlinuz-3.2.0-84-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found initrd image: /boot/initrd.img-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found linux image: /boot/vmlinuz-3.2.0-77-generic
Found initrd image: /boot/initrd.img-3.2.0-77-generic
Found linux image: /boot/vmlinuz-3.2.0-76-generic
Found initrd image: /boot/initrd.img-3.2.0-76-generic
Found linux image: /boot/vmlinuz-3.2.0-75-generic
Found initrd image: /boot/initrd.img-3.2.0-75-generic
Found memtest86+ image: /memtest86+.bin
done
Setting up linux-image-server (3.2.0.80.94) ...
Setting up linux-headers-server (3.2.0.84.98) ...
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

>df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/MachineName 48G 5.9G 40G 13% /
udev 486M 12K 486M 1% /dev
tmpfs 99M 292K 99M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 495M 0 495M 0% /run/shm
/dev/sda1 228M 163M 53M 76% /boot

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Did you try Ubuntu Tweak to clean up the old kernels?

Revision history for this message
tearsforhari (tearsforhari) said :
#13

actionparsnip: not yet. I plan to try it. Maybe I can eventually make that into a cron job. But when at the point where the /boot is completely full, not even the simple manual purging commands work. We should get the system properly working again before trying that. I think we made headway above and are almost there, though.

Correct me if I am wrong with my logic: but the auto-update is a cron job (i.e. test -x etc...). When the /boot is full, the cron job errors. Am I right that any other cron job will also fail?

Revision history for this message
tearsforhari (tearsforhari) said :
#14

One more thing, we just deleted the following kernel above that the system is currently using...?
>uname -r
linux-image-3.2.0-74-generic

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Oops. If uname shows that you are running the linux-image-3.2.0-74-generic, and we have deleted that, this is not good.
The update-grub shows that there are now several newer kernel version installed, and I am rather confident that rebooting will select another one and will be able to boot again.

cron jobs are independent of each other. So one failing job should not influence the other ones.

Is this a server without xorg environment? Then you cannot use Ubuntu-tweak.

Try

sudo apt-get update
sudo apt-get install -f
sudo dpkg --audit
sudo apt-get dist-upgrade

and copy/paste all output into this question document as done before.

Revision history for this message
tearsforhari (tearsforhari) said :
#16

>sudo apt-get update
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Get:3 http://security.ubuntu.com precise-security Release [54.3 kB]
Hit http://us.archive.ubuntu.com precise Release
Get:4 http://us.archive.ubuntu.com precise-updates Release [196 kB]
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Get:5 http://security.ubuntu.com precise-security/main Sources [129 kB]
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://ppa.launchpad.net precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Get:6 http://security.ubuntu.com precise-security/restricted Sources [3,759 B]
Get:7 http://security.ubuntu.com precise-security/universe Sources [41.8 kB]
Get:8 http://security.ubuntu.com precise-security/multiverse Sources [2,198 B]
Get:9 http://security.ubuntu.com precise-security/main amd64 Packages [514 kB]
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:10 http://us.archive.ubuntu.com precise-updates/main Sources [489 kB]
Get:11 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,981 B]
Get:12 http://us.archive.ubuntu.com precise-updates/universe Sources [119 kB]
Get:13 http://security.ubuntu.com precise-security/restricted amd64 Packages [8,943 B]
Get:14 http://security.ubuntu.com precise-security/universe amd64 Packages [121 kB]
Get:15 http://us.archive.ubuntu.com precise-updates/multiverse Sources [9,726 B]
Get:16 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [895 kB]
Get:17 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,699 B]
Get:18 http://security.ubuntu.com precise-security/main i386 Packages [553 kB]
Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [8,939 B]
Get:20 http://security.ubuntu.com precise-security/universe i386 Packages [129 kB]
Get:21 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,865 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:22 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [13.6 kB]
Get:23 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [265 kB]
Hit http://security.ubuntu.com precise-security/universe Translation-en
Get:24 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [16.5 kB]
Get:25 http://us.archive.ubuntu.com precise-updates/main i386 Packages [949 kB]
Get:26 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.6 kB]
Get:27 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [275 kB]
Get:28 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [16.7 kB]
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 4,838 kB in 14s (323 kB/s)
Reading package lists... Done

> sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-70-generic linux-image-3.2.0-76-generic linux-headers-3.2.0-70 linux-headers-3.2.0-72
  linux-headers-3.2.0-75 linux-headers-3.2.0-76 linux-headers-3.2.0-77 linux-headers-3.2.0-79 linux-image-3.2.0-79-generic
  linux-headers-3.2.0-76-generic linux-headers-3.2.0-79-generic linux-image-3.2.0-77-generic linux-headers-3.2.0-77-generic
  linux-image-3.2.0-75-generic linux-headers-3.2.0-72-generic linux-headers-3.2.0-75-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-server
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.80.94); however:
  Version of linux-image-server on system is 3.2.0.84.98.
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

>sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-server Complete Linux kernel on Server Equipment.

> sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-server : Depends: linux-image-server (= 3.2.0.80.94) but 3.2.0.84.98 is installed
                Depends: linux-headers-server (= 3.2.0.80.94) but 3.2.0.84.98 is installed
E: Unmet dependencies. Try using -f.

Revision history for this message
tearsforhari (tearsforhari) said :
#17

Tried the following command too, but it also errors on Linux-server

>sudo apt-get dist-upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  python-configobj
The following packages will be upgraded:
  apt apt-transport-https apt-utils curl dosfstools landscape-common libapt-inst1.4 libapt-pkg4.12 libc-bin libc6 libcurl3
  libcurl3-gnutls libmysqlclient18 libpython2.7 libssl1.0.0 libtasn1-3 libudev0 linux-server mountall multiarch-support
  mysql-client mysql-client-5.6 mysql-common mysql-server mysql-server-5.6 mysql-server-core-5.6 openssl ppp procps python-apt
  python-apt-common python2.7 python2.7-minimal udev update-manager-core
35 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 27.6 MB/27.6 MB of archives.
After this operation, 1,660 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-common all 5.6.22+dfsg-1+deb.sury.org~precise+1 [90.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.12 [1,179 kB]
Get:3 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main libmysqlclient18 amd64 5.6.22+dfsg-1+deb.sury.org~precise+1 [729 kB]
Get:4 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-server all 5.6.22+dfsg-1+deb.sury.org~precise+1 [88.6 kB]
Get:5 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-server-5.6 amd64 5.6.22+dfsg-1+deb.sury.org~precise+1 [2,277 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.12 [4,652 kB]
Get:7 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-client all 5.6.22+dfsg-1+deb.sury.org~precise+1 [88.5 kB]
Get:8 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-client-5.6 amd64 5.6.22+dfsg-1+deb.sury.org~precise+1 [2,130 kB]
Get:9 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu/ precise/main mysql-server-core-5.6 amd64 5.6.22+dfsg-1+deb.sury.org~precise+1 [4,242 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-pkg4.12 amd64 0.8.16~exp12ubuntu10.23 [935 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apt amd64 0.8.16~exp12ubuntu10.23 [1,097 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd64 1.0.1-4ubuntu5.27 [1,052 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-inst1.4 amd64 0.8.16~exp12ubuntu10.23 [102 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libudev0 amd64 175-0ubuntu9.9 [27.9 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main procps amd64 1:3.2.8-11ubuntu6.4 [233 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main udev amd64 175-0ubuntu9.9 [319 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mountall amd64 2.36.4ubuntu0.1 [67.5 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3-gnutls amd64 7.22.0-3ubuntu4.14 [227 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3 amd64 2.10-1ubuntu1.4 [43.6 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3 amd64 7.22.0-3ubuntu4.14 [236 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main multiarch-support amd64 2.15-0ubuntu10.12 [4,482 B]
Get:22 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpython2.7 amd64 2.7.3-0ubuntu3.6 [1,188 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64 2.7.3-0ubuntu3.6 [2,677 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal amd64 2.7.3-0ubuntu3.6 [1,741 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apt-utils amd64 0.8.16~exp12ubuntu10.23 [189 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apt-transport-https amd64 0.8.16~exp12ubuntu10.23 [16.3 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main dosfstools amd64 3.0.12-1ubuntu1.2 [76.0 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main openssl amd64 1.0.1-4ubuntu5.27 [524 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ppp amd64 2.4.5-5ubuntu1.2 [362 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-apt-common all 0.8.3ubuntu7.3 [21.4 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-apt amd64 0.8.3ubuntu7.3 [187 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main update-manager-core amd64 1:0.156.14.19 [186 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22.0-3ubuntu4.14 [138 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu/ precise/main python-configobj all 4.7.2+ds-3build1 [233 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main landscape-common amd64 14.12-0ubuntu0.12.04 [212 kB]
Fetched 27.6 MB in 34s (794 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace libc-bin 2.15-0ubuntu10.11 (using .../libc-bin_2.15-0ubuntu10.12_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.15-0ubuntu10.12) ...
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10.11 (using .../libc6_2.15-0ubuntu10.12_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.12) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace libapt-pkg4.12 0.8.16~exp12ubuntu10.22 (using .../libapt-pkg4.12_0.8.16~exp12ubuntu10.23_amd64.deb) ...
Unpacking replacement libapt-pkg4.12 ...
Setting up libapt-pkg4.12 (0.8.16~exp12ubuntu10.23) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace apt 0.8.16~exp12ubuntu10.22 (using .../apt_0.8.16~exp12ubuntu10.23_amd64.deb) ...
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.8.16~exp12ubuntu10.23) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.25 (using .../libssl1.0.0_1.0.1-4ubuntu5.27_amd64.deb) ...
Unpacking replacement libssl1.0.0 ...
Setting up libssl1.0.0 (1.0.1-4ubuntu5.27) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 273820 files and directories currently installed.)
Preparing to replace libapt-inst1.4 0.8.16~exp12ubuntu10.22 (using .../libapt-inst1.4_0.8.16~exp12ubuntu10.23_amd64.deb) ...
Unpacking replacement libapt-inst1.4 ...
Preparing to replace libudev0 175-0ubuntu9.8 (using .../libudev0_175-0ubuntu9.9_amd64.deb) ...
Unpacking replacement libudev0 ...
Preparing to replace procps 1:3.2.8-11ubuntu6.3 (using .../procps_1%3a3.2.8-11ubuntu6.4_amd64.deb) ...
Unpacking replacement procps ...
Preparing to replace udev 175-0ubuntu9.8 (using .../udev_175-0ubuntu9.9_amd64.deb) ...
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
Unpacking replacement udev ...
Preparing to replace mountall 2.36.4 (using .../mountall_2.36.4ubuntu0.1_amd64.deb) ...
Unpacking replacement mountall ...
Preparing to replace libcurl3-gnutls 7.22.0-3ubuntu4.12 (using .../libcurl3-gnutls_7.22.0-3ubuntu4.14_amd64.deb) ...
Unpacking replacement libcurl3-gnutls ...
Preparing to replace libtasn1-3 2.10-1ubuntu1.3 (using .../libtasn1-3_2.10-1ubuntu1.4_amd64.deb) ...
Unpacking replacement libtasn1-3 ...
Preparing to replace libcurl3 7.22.0-3ubuntu4.12 (using .../libcurl3_7.22.0-3ubuntu4.14_amd64.deb) ...
Unpacking replacement libcurl3 ...
Preparing to replace mysql-common 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-common_5.6.22+dfsg-1+deb.sury.org~precise+1_all.deb) ...
Unpacking replacement mysql-common ...
Preparing to replace libmysqlclient18 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../libmysqlclient18_5.6.22+dfsg-1+deb.sury.org~precise+1_amd64.deb) ...
Unpacking replacement libmysqlclient18 ...
Preparing to replace mysql-server 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-server_5.6.22+dfsg-1+deb.sury.org~precise+1_all.deb) ...
Unpacking replacement mysql-server ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up mysql-common (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
(Reading database ... 273821 files and directories currently installed.)
Preparing to replace mysql-server-5.6 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-server-5.6_5.6.22+dfsg-1+deb.sury.org~precise+1_amd64.deb) ...
 * Stopping MySQL database server mysqld [ OK ]
 * Stopping MySQL database server mysqld [ OK ]
Unpacking replacement mysql-server-5.6 ...
Preparing to replace mysql-client 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-client_5.6.22+dfsg-1+deb.sury.org~precise+1_all.deb) ...
Unpacking replacement mysql-client ...
Preparing to replace mysql-client-5.6 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-client-5.6_5.6.22+dfsg-1+deb.sury.org~precise+1_amd64.deb) ...
Unpacking replacement mysql-client-5.6 ...
Preparing to replace mysql-server-core-5.6 5.6.21+dfsg-1+deb.sury.org~precise+1 (using .../mysql-server-core-5.6_5.6.22+dfsg-1+deb.sury.org~precise+1_amd64.deb) ...
Unpacking replacement mysql-server-core-5.6 ...
Preparing to replace multiarch-support 2.15-0ubuntu10.11 (using .../multiarch-support_2.15-0ubuntu10.12_amd64.deb) ...
Unpacking replacement multiarch-support ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up multiarch-support (2.15-0ubuntu10.12) ...
(Reading database ... 273821 files and directories currently installed.)
Preparing to replace libpython2.7 2.7.3-0ubuntu3.5 (using .../libpython2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement libpython2.7 ...
Preparing to replace python2.7 2.7.3-0ubuntu3.5 (using .../python2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3.5 (using .../python2.7-minimal_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement python2.7-minimal ...
Processing triggers for man-db ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.6) ...
(Reading database ... 273821 files and directories currently installed.)
Preparing to replace apt-utils 0.8.16~exp12ubuntu10.22 (using .../apt-utils_0.8.16~exp12ubuntu10.23_amd64.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace apt-transport-https 0.8.16~exp12ubuntu10.22 (using .../apt-transport-https_0.8.16~exp12ubuntu10.23_amd64.deb) ...
Unpacking replacement apt-transport-https ...
Preparing to replace dosfstools 3.0.12-1ubuntu1.1 (using .../dosfstools_3.0.12-1ubuntu1.2_amd64.deb) ...
Unpacking replacement dosfstools ...
Preparing to replace openssl 1.0.1-4ubuntu5.25 (using .../openssl_1.0.1-4ubuntu5.27_amd64.deb) ...
Unpacking replacement openssl ...
Preparing to replace ppp 2.4.5-5ubuntu1.1 (using .../ppp_2.4.5-5ubuntu1.2_amd64.deb) ...
Unpacking replacement ppp ...
Preparing to replace python-apt-common 0.8.3ubuntu7.2 (using .../python-apt-common_0.8.3ubuntu7.3_all.deb) ...
Unpacking replacement python-apt-common ...
Preparing to replace python-apt 0.8.3ubuntu7.2 (using .../python-apt_0.8.3ubuntu7.3_amd64.deb) ...
Unpacking replacement python-apt ...
Preparing to replace update-manager-core 1:0.156.14.17 (using .../update-manager-core_1%3a0.156.14.19_amd64.deb) ...
Unpacking replacement update-manager-core ...
Preparing to replace curl 7.22.0-3ubuntu4.12 (using .../curl_7.22.0-3ubuntu4.14_amd64.deb) ...
Unpacking replacement curl ...
Selecting previously unselected package python-configobj.
Unpacking python-configobj (from .../python-configobj_4.7.2+ds-3build1_all.deb) ...
Preparing to replace landscape-common 13.07.3-0ubuntu0.12.04 (using .../landscape-common_14.12-0ubuntu0.12.04_amd64.deb) ...
Unpacking replacement landscape-common ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.80.94); however:
  Version of linux-image-server on system is 3.2.0.84.98.
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up libapt-inst1.4 (0.8.16~exp12ubuntu10.23) ...
Setting up libudev0 (175-0ubuntu9.9) ...
Setting up procps (1:3.2.8-11ubuntu6.4) ...
procps stop/waiting
Setting up udev (175-0ubuntu9.9) ...
udev stop/waiting
udev start/running, process 64328
Removing 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up mountall (2.36.4ubuntu0.1) ...
Installing new version of config file /etc/init/mounted-dev.conf ...
Setting up libcurl3-gnutls (7.22.0-3ubuntu4.14) ...
Setting up libtasn1-3 (2.10-1ubuntu1.4) ...
Setting up libcurl3 (7.22.0-3ubuntu4.14) ...
Setting up libmysqlclient18 (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
Setting up mysql-client-5.6 (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
Setting up mysql-server-core-5.6 (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
Setting up mysql-server-5.6 (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
 * Stopping MySQL database server mysqld [ OK ]
 * Starting MySQL database server mysqld [ OK ]
 * Checking for tables which need an upgrade, are corrupt or were
not closed cleanly.
Setting up mysql-server (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
Setting up mysql-client (5.6.22+dfsg-1+deb.sury.org~precise+1) ...
Setting up python2.7 (2.7.3-0ubuntu3.6) ...
Setting up libpython2.7 (2.7.3-0ubuntu3.6) ...
Setting up apt-utils (0.8.16~exp12ubuntu10.23) ...
Setting up apt-transport-https (0.8.16~exp12ubuntu10.23) ...
Setting up dosfstools (3.0.12-1ubuntu1.2) ...
Setting up openssl (1.0.1-4ubuntu5.27) ...
Setting up ppp (2.4.5-5ubuntu1.2) ...
Setting up python-apt-common (0.8.3ubuntu7.3) ...
Setting up python-apt (0.8.3ubuntu7.3) ...
Setting up update-manager-core (1:0.156.14.19) ...
Setting up curl (7.22.0-3ubuntu4.14) ...
Setting up python-configobj (4.7.2+ds-3build1) ...
Setting up landscape-common (14.12-0ubuntu0.12.04) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-84-generic
Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
tearsforhari (tearsforhari) said :
#18

>apt-get autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-server
The following packages will be REMOVED:
  linux-headers-3.2.0-70 linux-headers-3.2.0-70-generic linux-headers-3.2.0-72 linux-headers-3.2.0-72-generic
  linux-headers-3.2.0-75 linux-headers-3.2.0-75-generic linux-headers-3.2.0-76 linux-headers-3.2.0-76-generic
  linux-headers-3.2.0-77 linux-headers-3.2.0-77-generic linux-headers-3.2.0-79 linux-headers-3.2.0-79-generic
  linux-image-3.2.0-75-generic linux-image-3.2.0-76-generic linux-image-3.2.0-77-generic linux-image-3.2.0-79-generic
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 16 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 1,008 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 273887 files and directories currently installed.)
Removing linux-headers-3.2.0-70-generic ...
Removing linux-headers-3.2.0-70 ...
Removing linux-headers-3.2.0-72-generic ...
Removing linux-headers-3.2.0-72 ...
Removing linux-headers-3.2.0-75-generic ...
Removing linux-headers-3.2.0-75 ...
Removing linux-headers-3.2.0-76-generic ...
Removing linux-headers-3.2.0-76 ...
Removing linux-headers-3.2.0-77-generic ...
Removing linux-headers-3.2.0-77 ...
Removing linux-headers-3.2.0-79-generic ...
Removing linux-headers-3.2.0-79 ...
Removing linux-image-3.2.0-75-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-75-generic /boot/vmlinuz-3.2.0-75-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-75-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-75-generic /boot/vmlinuz-3.2.0-75-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found initrd image: /boot/initrd.img-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found linux image: /boot/vmlinuz-3.2.0-77-generic
Found initrd image: /boot/initrd.img-3.2.0-77-generic
Found linux image: /boot/vmlinuz-3.2.0-76-generic
Found initrd image: /boot/initrd.img-3.2.0-76-generic
Found memtest86+ image: /memtest86+.bin
done
Removing linux-image-3.2.0-76-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-76-generic /boot/vmlinuz-3.2.0-76-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-76-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-76-generic /boot/vmlinuz-3.2.0-76-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found initrd image: /boot/initrd.img-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found linux image: /boot/vmlinuz-3.2.0-77-generic
Found initrd image: /boot/initrd.img-3.2.0-77-generic
Found memtest86+ image: /memtest86+.bin
done
Removing linux-image-3.2.0-77-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-77-generic /boot/vmlinuz-3.2.0-77-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-77-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-77-generic /boot/vmlinuz-3.2.0-77-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found initrd image: /boot/initrd.img-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found linux image: /boot/vmlinuz-3.2.0-79-generic
Found initrd image: /boot/initrd.img-3.2.0-79-generic
Found memtest86+ image: /memtest86+.bin
done
Removing linux-image-3.2.0-79-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-79-generic /boot/vmlinuz-3.2.0-79-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-79-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-79-generic /boot/vmlinuz-3.2.0-79-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-84-generic
Found initrd image: /boot/initrd.img-3.2.0-84-generic
Found linux image: /boot/vmlinuz-3.2.0-82-generic
Found initrd image: /boot/initrd.img-3.2.0-82-generic
Found linux image: /boot/vmlinuz-3.2.0-80-generic
Found initrd image: /boot/initrd.img-3.2.0-80-generic
Found memtest86+ image: /memtest86+.bin
done
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.80.94); however:
  Version of linux-image-server on system is 3.2.0.84.98.
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

What is the output of

apt-cache policy linux-server linux-image-server linux-headers-server

Revision history for this message
tearsforhari (tearsforhari) said :
#20

apt-cache policy linux-server linux-image-server linux-headers-server
linux-server:
  Installed: 3.2.0.80.94
  Candidate: 3.2.0.84.98
  Version table:
     3.2.0.84.98 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
 *** 3.2.0.80.94 0
        100 /var/lib/dpkg/status
     3.2.0.23.25 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
linux-image-server:
  Installed: 3.2.0.84.98
  Candidate: 3.2.0.84.98
  Version table:
 *** 3.2.0.84.98 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.2.0.23.25 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
linux-headers-server:
  Installed: 3.2.0.84.98
  Candidate: 3.2.0.84.98
  Version table:
 *** 3.2.0.84.98 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.2.0.23.25 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

Try

sudo apt-get install linux-server -f

Revision history for this message
tearsforhari (tearsforhari) said :
#22

>sudo apt-get install linux-server -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 1,024 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.80.94); however:
  Version of linux-image-server on system is 3.2.0.84.98.
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

Maybe it works with this modified command:

sudo apt-get install linux-server- linux-server -f

Revision history for this message
tearsforhari (tearsforhari) said :
#24

>apt-get install linux-server linux-server -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 1,024 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.80.94); however:
  Version of linux-image-server on system is 3.2.0.84.98.
 linux-server depends on linux-headers-server (= 3.2.0.80.94); however:
  Version of linux-headers-server on system is 3.2.0.84.98.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can we provide the 3.2.0.84.94 dependency file that it is looking?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#25

You mistyped my command (a trailing dash missing after the first occurrence of linux-server)

Try again, and if it fails again, try

sudo dpkg -i /var/cache/apt/archives/linux-server_3.2.0.84.98_amd64.deb

Revision history for this message
tearsforhari (tearsforhari) said :
#26

trailing dash didn't work.

>sudo dpkg -i /var/cache/apt/archives/linux-server_3.2.0.84.98_amd64.deb
(Reading database ... 125033 files and directories currently installed.)
Preparing to replace linux-server 3.2.0.80.94 (using .../linux-server_3.2.0.84.98_amd64.deb) ...
Unpacking replacement linux-server ...
Setting up linux-server (3.2.0.84.98) ...
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#27

Ok, that now looks fine.

For verifying the status of your system now please execute

uname -a
lsb_release -crid
sudo dpkg --audit
sudo apt-get update
sudo apt-get dist-upgrade
df -h
df -i
dpkg -l | egrep ' linux-[hi]'

and copy/paste all output into this document as done before.

Revision history for this message
tearsforhari (tearsforhari) said :
#28

Brilliant!
apt-get dis-upgrade works again!

:-)

Revision history for this message
tearsforhari (tearsforhari) said :
#30

>lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

>sudo dpkg --audit
>

>sudo apt-get update
(fine)

>sudo apt-get dis-upgrade
(fine)

>df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/MachineName 48G 4.3G 42G 10% /
udev 486M 4.0K 486M 1% /dev
tmpfs 99M 264K 99M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 495M 0 495M 0% /run/shm
/dev/sda1 228M 73M 144M 34% /boot

>df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/fd--lso--rosie-root 3194880 131451 3063429 5% /
udev 124322 435 123887 1% /dev
tmpfs 126589 331 126258 1% /run
none 126589 4 126585 1% /run/lock
none 126589 1 126588 1% /run/shm
/dev/sda1 124496 241 124255 1% /boot

>dpkg -l | egrep ' linux-[hi]'
ii linux-headers-3.2.0-74 3.2.0-74.109 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-74-generic 3.2.0-74.109 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-80 3.2.0-80.116 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-80-generic 3.2.0-80.116 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-82 3.2.0-82.119 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-82-generic 3.2.0-82.119 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-84 3.2.0-84.121 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-84-generic 3.2.0-84.121 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-server 3.2.0.84.98 Linux kernel headers on Server Equipment.
ii linux-image-3.2.0-80-generic 3.2.0-80.116 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-82-generic 3.2.0-82.119 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-84-generic 3.2.0-84.121 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-server 3.2.0.84.98 Linux kernel image on Server Equipment.

Shall we purge some old kernels?

Revision history for this message
tearsforhari (tearsforhari) said :
#31

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#32

Your /boot partition seems to have space for about eight versions of the kernel packages, an you currently have three of them installed. So there is no need to remove some of them now. But you can expect that there will be updates on the kernel packages, and you will run out of space again if you do not keep an eye on the number of kernel packages installed.

My recommendation already given above:

Regularly do housekeeping (frequency should be between once a week and once a month):
issue "sudo apt-get update && sudo apt-get dist-upgrade" to install all available updates (unless they are already installed by automatic updates)
issue the "dpkg -l | egrep ' linux-[hi]'" command to check for the number and versions of installed kernel packages (both headers and image)
use uname -a to verify the version number of the running kernel
if you are not running the newest kernel version, reboot the system (of course you have to choose a suitable moment, not to disturb normal server operations)
when the newest kernel is working without problems purge old kernel image and kernel header packages, leaving only those with the highest two (eventually three) version numbers installed.

Command for purging the kernel packages:

taking the output of "dpkg -l | egrep ' linux-[hi]'"

ii linux-headers-3.2.0-74 3.2.0-74.109 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-74-generic 3.2.0-74.109 Linux kernel headers for version 3.2.0 on 64 bit x86
ii linux-headers-3.2.0-80 3.2.0-80.116 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-80-generic 3.2.0-80.116 Linux kernel headers for version 3.2.0 on 64 bit x86
ii linux-headers-3.2.0-82 3.2.0-82.119 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-82-generic 3.2.0-82.119 Linux kernel headers for version 3.2.0 on 64 bit x86
ii linux-headers-3.2.0-84 3.2.0-84.121 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-84-generic 3.2.0-84.121 Linux kernel headers for version 3.2.0 on 64 bit x86
ii linux-headers-server 3.2.0.84.98 Linux kernel headers on Server Equipment.
ii linux-image-3.2.0-80-generic 3.2.0-80.116 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-82-generic 3.2.0-82.119 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-84-generic 3.2.0-84.121 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-server 3.2.0.84.98 Linux kernel image on Server Equipment.

Linux images installed: 3.2.0-80, 3.2.0-82, 3.2.0-84
If you want to reduce the number to two, you can purge the 3.2.0-80 package.
Linux headers installed: 3.2.0-74, 3.2.0-80, 3.2.0-82, 3.2.0-84 (note, they come in pairs)
In line with the installed kernel images you should purge 3.2.0-74 and 3.2.0-80

You should verify the kernel that you have booted from with the "uname -a" command to make sure that you do not use one of the kernels that you are going to remove. (After rebooting the kernel with the highest number should be used, if not then there is something wrong).

Command to execute:
sudo dpkg --purge \
linux-headers-3.2.0-74 \
linux-headers-3.2.0-74-generic \
linux-headers-3.2.0-80 \
linux-headers-3.2.0-80-generic \
linux-image-3.2.0-80-generic

Revision history for this message
tearsforhari (tearsforhari) said :
#33

Much obliged, Manfred.

Is this worth creating a ticket for a future fix in an update for 12.04.5?

It gets back to my other question about how to increase the /boot partition. On some of my other machines, the /boot is 5GB verses 225M on others. I would like to increase the 225M to give me more breathing room.

Revision history for this message
Manfred Hampl (m-hampl) said :
#34

Increasing the size of a partition usually requires shrinking other partitions and moving partitions around. This is something that I would try to avoid. You better just stick to regular housekeeping, and everything should be fine.

Revision history for this message
tearsforhari (tearsforhari) said :
#35

Agreed.