Score:0

cant update too many errors only starts in recovery mode?

mv flag
wes
sudo apt --reinstall install linux-image-5.4.0-58-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of linux-image-5.4.0-58-generic is not possible, it cannot be downloaded.
The following packages will be REMOVED:
  linux-image-5.4.0-58-generic
0 upgraded, 0 newly installed, 1 to remove and 1878 not upgraded.
9 not fully installed or removed.
After this operation, 11.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 472008 files and directories currently installed.)
Removing linux-image-5.4.0-58-generic (5.4.0-58.64) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-58-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 2: /etc/default/grub: d#: 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-58-generic (--remove):
 installed linux-image-5.4.0-58-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.4.0-58-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
wes@wes-MS-7C91:~$ 
Pilot6 avatar
cn flag
You have some important files missing, like `/etc/default/grub`/ How it happened and what you are doing is unclear.
nobody avatar
gh flag
Please restore `/etc/default/grub` https://askubuntu.com/questions/774678/how-is-etc-default-grub-generated-during-installation
wes avatar
mv flag
wes
not sure how to restore the files or where they went
wes avatar
mv flag
wes
i tried starting over with new usb flash of ubuntu but it wont do that either just goes black
nobody avatar
gh flag
I don't think it is vanished something wrong is in the file.
wes avatar
mv flag
wes
you were right i restored /etc/default/grub and now it let me update and upgrade thank you and google for the help
I sit in a Tesla and translated this thread with Ai:

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.