Public bug reported: Errors were encountered while processing: linux-image-5.13.0-40-generic Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)
Could not install 'linux-image-5.13.0-40-generic' The upgrade will continue but the 'linux-image-5.13.0-40-generic' package may not be in a working state. Please consider submitting a bug report about it. installed linux-image-5.13.0-40-generic package post-removal script subprocess returned error exit status 1 Could not install the upgrades The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (pkg --configure -a). db49erfan1@PrayingMantis:~$ sudo dpkg --configure -a [sudo] password for db49erfan1: Setting up linux-image-5.15.0-30-generic (5.15.0-30.31) ... Setting up linux-image-5.15.0-27-generic (5.15.0-27.28) ... Processing triggers for linux-image-5.15.0-30-generic (5.15.0-30.31) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.15.0-30-generic /etc/kernel/postinst.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 34: /etc/default/grub: ^: not found run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.15.0-30-generic (--configure): installed linux-image-5.15.0-30-generic package post-installation script subprocess returned error exit status 1 Processing triggers for linux-image-5.15.0-27-generic (5.15.0-27.28) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.15.0-27-generic /etc/kernel/postinst.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 34: /etc/default/grub: ^: not found run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.15.0-27-generic (--configure): installed linux-image-5.15.0-27-generic package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-5.15.0-30-generic linux-image-5.15.0-27-generic 1) The release of Ubuntu you are using, Description: Ubuntu 22.04 LTS Release:22.04 2) The version of the package you are using, Ubuntu Software 3.38.1 3) What you expected to happen: Remove linux-image-5.13.0-40-generic 4) What happened instead: lots of errors! ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: ubuntu-release-upgrader-core 1:22.04.10 ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30 Uname: Linux 5.15.0-27-generic x86_64 ApportVersion: 2.20.11-0ubuntu82 Architecture: amd64 CasperMD5CheckResult: unknown CrashDB: ubuntu CurrentDesktop: ubuntu:GNOME Date: Fri May 13 11:17:29 2022 InstallationDate: Installed on 2022-05-02 (11 days ago) InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819) PackageArchitecture: all ProcEnviron: PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ubuntu-release-upgrader Symptom: release-upgrade UpgradeStatus: No upgrade log present (probably fresh install) VarLogDistupgradeAptlog: Log time: 2022-05-13 10:35:14.769404 Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done MarkDelete linux-image-5.13.0-40-generic:amd64 < 5.13.0-40.45 @rH mK Nb Ib > FU=0 VarLogDistupgradeTermlog: ** Affects: ubuntu-release-upgrader (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug dist-upgrade jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973370 Title: Errors were encountered while processing: linux- image-5.13.0-40-generic Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1973370/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs