Score:0

I can't fix my kernel. I can't upgrade or install any software

nl flag

I can't go to recovery mode. Can't reinstall Ubuntu. Can't go to bios mode.

Whenever I write sudo apt-get install -f or start to upgrade my Ubuntu, it shows this message:

Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-generic amd64 5.4.0.77.80 [2,576 B]
Fetched 2,576 B in 1s (3,001 B/s)                    
(Reading database ... 322936 files and directories currently installed.)
Removing linux-image-5.4.0-72-generic (5.4.0-72.80) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-72-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: rub: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.4.0-72-generic (--remove):
 installed linux-image-5.4.0-72-generic package post-removal script subprocess r
eturned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.4.0-72-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Artur Meinild avatar
vn flag
Do you know how your machine ended up in this state - what went before this? Also, the only thing you have documented are errors related to `sudo apt-get install `. Reinstalling Ubuntu or entering the BIOS have *nothing* to do with the state of your current operating system, so you might want to leave that out to avoid confusion.
gq flag
What version of Ubuntu are you on?
Zeiss Ikon avatar
cn flag
Umm. It's usually a bad idea to remove the kernel image(s) from your installation. Let the package manager do that as part of an update if needed...
nl flag
can't do anything. show the same errors
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.