using apt-get upgrade on Debian left me with the decision to update to kernel 4.9.0-6 but the installation never finishes. It always stalls at the following stage:
Setting up linux-image-4.9.0-6-amd64 (4.9.82-1+deb9u3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-6-amd64
Nothing happens after that. I do end the processes and start update-initramfs -v -u so see what happens and what not. The update-initramfs stalls at:
Building cpio /boot/initrd.img-4.9.0-6-amd64.new initramfs
Does anyone have an idea what to do? The update from jessie to stretch (some days ago) went without any problems and I do not have modified anything since then.
sudo dpkg --purge os-prober
, is it able to complete? – Rui F Ribeiro Mar 4 '18 at 8:38cpio
process underupdate-initramfs
in the output ofps af
, and runstrace -p <PID>
to see if it's chugging along. Also check yourkern.log
for disk errors. – Ferenc Wágner Mar 4 '18 at 9:29Building cpio /boot/initrd.img-4.15.0-1-amd64.new initramfs
hangs forever. I can't find any cpio process running on my system :o – bryn Mar 6 '18 at 9:43ps fux
to identify the process that hangs (the last process spawned during installation). – scai Mar 6 '18 at 17:19