Skip to content

Instantly share code, notes, and snippets.

@zoonderkins
Last active June 18, 2019 05:55
Show Gist options
  • Save zoonderkins/e10fbaf16370e47ef1438d68dfcad636 to your computer and use it in GitHub Desktop.
Save zoonderkins/e10fbaf16370e47ef1438d68dfcad636 to your computer and use it in GitHub Desktop.
Debian9 kernel unable to update

Fix

ls /etc/kernel/postinst.d/

// check if system has file "zz-update-grub" and rename it 
mv zz-update-grub zz-update-grub.bak

// update-grub
update-grub

// download linux-image and linux-header

wget http://security.debian.org/debian-security/pool/updates/main/l/linux/linux-image-4.9.0-9-amd64_4.9.168-1+deb9u3_amd64.deb

wget http://security.debian.org/debian-security/pool/updates/main/l/linux/linux-headers-4.9.0-9-amd64_4.9.168-1+deb9u3_amd64.deb


dpkg -i
error:
perl: warning: Falling back to the standard locale ("C").
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
ySetting up linux-image-4.9.0-9-amd64 (4.9.168-1+deb9u3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-9-amd64
WARNING: no ldd around - install libc-bin

// FIX


wget http://ftp.jp.debian.org/debian/pool/main/g/glibc/libc-bin_2.28-10_amd64.deb
dpkg -i libc-bin_2.28-10_amd64.deb
dpkg -i linux-image-4.9.0-9-amd64_4.9.168-1+deb9u3_amd64.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment