Problème avec apt

Bonjour,

Je vais faire simple. Depuis quelques jours, lorsque j’utilise la commande apt (sous toutes ses formes), j’ai ces messages d’erreurs qui apparaissent à propos de linux-image :

Paramétrage de linux-image-3.16.0-4-amd64 (3.16.7-ckt25-1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
W: mdadm: the array /dev/md/imsm0 with UUID metadata=imsm
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
/etc/kernel/postinst.d/zz-update-grub:
Création du fichier de configuration GRUB…
/etc/grub.d/00_header: 395: /etc/grub.d/00_header: EOF: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-4-amd64.postinst line 634.
dpkg: erreur de traitement du paquet linux-image-3.16.0-4-amd64 (–configure) :
le sous-processus script post-installation installé a retourné une erreur de sortie d’état 1
Des erreurs ont été rencontrées pendant l’exécution :
linux-image-3.16.0-4-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Je suis ouvert à tout conseil.

Merci d’avance.

gudbes