Score:0

sudo upgrade not working on ubuntu-aws

cn flag

I am a noob in linux, stuck at aws ubuntu, sudo apt upgrade giving the below error. Cant find the problem, Please help.

Setting up initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.8.0-1041-aws (5.8.0-1041.43~20.04.1) ...
I: /boot/initrd.img is now a symlink to initrd.img-5.8.0-1041-aws
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-1038-aws
cp: cannot stat '/lib/klibc-*.so': No such file or directory
E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.8.0-1038-aws with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.8.0-1041-aws (5.8.0-1041.43~20.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.8.0-1041-aws
cp: cannot stat '/lib/klibc-*.so': No such file or directory
E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.8.0-1041-aws with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.8.0-1041-aws (--configure):
 installed linux-image-5.8.0-1041-aws package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.8.0-1041-aws
E: Sub-process /usr/bin/dpkg returned an error code (1)
cn flag
Please never upgrade an AWS instance and follow the AWS instructions you got when you started using it: you have 2 disks: a system and a personal disk. Create a NEW instance with the latest Ubuntu and connect your personal disk. An instance is -dead beyond recovery- if it does not boot after an upgrade.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.