Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6015

Cannot remove linux-image: unexpected reloc type

$
0
0

I had not been using my Ubuntu pc for a while. I decided to run an innocent apt upgrade, but I got stack due to a corrupted download. I ran apt --fix-broken install, and now I am stuck with a different problem:

$ sudo apt --fix-broken installReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages will be REMOVED  linux-image-6.5.0-27-generic0 to upgrade, 0 to newly install, 1 to remove and 3 not to upgrade.3 not fully installed or removed.After this operation, 14.3 MB disk space will be freed.Do you want to continue? [Y/n] (Reading database ... 462604 files and directories currently installed.)Removing linux-image-6.5.0-27-generic (6.5.0-27.28~22.04.1) .../etc/kernel/postrm.d/initramfs-tools:update-initramfs: Deleting /boot/initrd.img-6.5.0-27-generic/etc/kernel/postrm.d/zz-update-grub:/usr/sbin/grub-probe: error while loading shared libraries: unexpected reloc type 0x40000007run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127dpkg: error processing package linux-image-6.5.0-27-generic (--remove): installed linux-image-6.5.0-27-generic package post-removal script subprocess returned error exit status 1dpkg: too many errors, stoppingErrors were encountered while processing: linux-image-6.5.0-27-genericProcessing was halted because there were too many errors.E: Sub-process /usr/bin/dpkg returned an error code (1)

I cannot find information about this specific issue on the internet.Reinstalling grub occurs in the same error. Trying to purge linux-image-6.5.0-27-generic also occurs in the same error.I am stuck and afraid of doing anything - including turning off the PC for the day (as grub appears to now be broken).Any suggestions, please?Thank you!


Viewing all articles
Browse latest Browse all 6015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>