Openhabian update fails

The updateprocess of openhabian stops with an error:

Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-91-generic
Found initrd image: /boot/initrd.img-4.4.0-91-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
done
Setting up linux-image-extra-4.4.0-109-generic (4.4.0-109.132) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-109-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-109-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-109-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-109-generic; however:
  Package linux-image-extra-4.4.0-109-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headers-4.4.0-109 (4.4.0-109.132) ...
Setting up linux-headers-4.4.0-109-generic (4.4.0-109.132) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up linux-headers-generic (4.4.0.109.114) ...
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.109.114); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-libc-dev:amd64 (4.4.0-109.132) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up openhab2 (2.3.0~20180114132717-1) ...
Setting up squashfs-tools (1:4.3-3ubuntu2.16.04.1) ...
Setting up unattended-upgrades (0.90ubuntu0.9) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 linux-image-extra-4.4.0-109-generic
 linux-image-generic
 linux-generic
Updating FireMotD available updates count ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
FAILED

My current system is a VM with
Release = Ubuntu 16.04.3 LTS
OpenHAB = openHAB 2.3.0 Build #1151
Kernel = Linux 4.4.0-104-generic
Platform = QEMU Standard PC (i440FX + PIIX, 1996)
Memory = Free: 0.06GB (6%), Used: 0.89GB (94%), Total: 0.96GB
Swap = Free: 0.62GB (62%), Used: 0.37GB (38%), Total: 0.99GB
Root = Free: 22.67GB (80%), Used: 5.65GB (20%), Total: 29.87GB
Nginx = Version: 1.10.3 (Ubuntu)

Because its a virtual machine I can reproduce the error and revert to the last snapshot.

Any idea, whats the reason?

What about that? No more space on your /boot partion?
Maybe an ‚Äúsudo apt autoremove‚ÄĚ would help.

1 Like

Thank you.
Didn’t knew this command.
Now it worked!