J'utilise un serveur ubuntu version 10.04 LTS. J'ai fait un "sudo apt-get upgrade" sur mon serveur aujourd'hui et il a échoué avec ce qui suit :
Setting up linux-image-2.6.32-318-ec2 (2.6.32-318.38) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-318-ec2
Could not find postinst hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-2.6.32-318-ec2 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.32-319-ec2 (2.6.32-319.39) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-319-ec2
Could not find postinst hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-2.6.32-319-ec2 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.32-34-server (2.6.32-34.77) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-34-server
Could not find postinst hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-2.6.32-34-server (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-ec2:
linux-image-ec2 depends on linux-image-2.6.32-319-ec2; however:
Package linux-image-2.6.32-319-ec2 is not configured yet.
dpkg: error processing linux-image-ec2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-ec2:
linux-ec2 depends on linux-image-ec2 (= 2.6.32.319.20); however:
Package linux-image-ec2 is not configured yet.
dpkg: error processing linux-ec2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-server:
linux-image-server depends on linux-image-2.6.32-34-server; however:
Package linux-image-2.6.32-34-server is not configured yet.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 2.6.32.34.40); however:
Package linux-image-server is not configured yet.
dpkg: error processing linux-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.32-318-ec2
linux-image-2.6.32-319-ec2
linux-image-2.6.32-34-server
linux-image-ec2
linux-ec2
linux-image-server
linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Une idée de la façon de réparer cela ?