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)

Bug #1973370 reported by Dave B
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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:

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Grand Wazoo (grand-wazoo) wrote (last edit ):

Hello, i solved a similar problem following these steps in the command line:
-install wget, if not yet installed:

sudo apt install wget

-install the following package:

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb

-install the package:

sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb

-normally update your system.

I hope this will be helpful

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.