News:

SMF - Just Installed!

Main Menu

Installation currently impossible!

Started by mahesh, Oct 12, 2023, 08:24 AM

Previous topic - Next topic

mahesh

Hi, I use Ubuntu (Budgie) and just lately I have had update and installation errors. The updater now informs me that installation is currently impossible.

Running sudo apt-get install -f returns:
Code:
~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
  linux-image-6.2.0-31-generic
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 13.8 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 853759 files and directories currently installed.)
Removing linux-image-6.2.0-31-generic (6.2.0-31.31~22.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.2.0-31-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.2.0-31-generic (--remove):
 installed linux-image-6.2.0-31-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-6.2.0-31-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't know quite how, but it seems to be attempting to run a script from the very package it is also trying to install. I'm afraid I don't know where to start but could really use some help. Thanks, if you are able to.