Errors were encountered while processing: linux-image-5.13.0-44-generic

Bug #1981907 reported by temesgen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.13 (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-51-generic linux-hwe-5.13-headers-5.13.0-51 linux-image-5.13.0-51-generic linux-modules-5.13.0-51-generic
  linux-modules-extra-5.13.0-51-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-unsigned-5.13.0-44-generic
Suggested packages:
  fdutils linux-doc | linux-hwe-5.13-source-5.13.0 linux-hwe-5.13-tools linux-headers-5.13.0-44-generic
  linux-modules-extra-5.13.0-44-generic
The following packages will be REMOVED:
  linux-image-5.13.0-44-generic
The following NEW packages will be installed:
  linux-image-unsigned-5.13.0-44-generic
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/10.1 MB of archives.
After this operation, 283 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: linux-image-5.13.0-44-generic: dependency problems, but removing anyway as you requested:
 linux-modules-5.13.0-44-generic depends on linux-image-5.13.0-44-generic | linux-image-unsigned-5.13.0-44-generic; however:
  Package linux-image-5.13.0-44-generic is to be removed.
  Package linux-image-unsigned-5.13.0-44-generic is not installed.

(Reading database ... 238004 files and directories currently installed.)
Removing linux-image-5.13.0-44-generic (5.13.0-44.49~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-44-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-41-generic
Found initrd image: /boot/initrd.img-5.15.0-41-generic
Found linux image: /boot/vmlinuz-5.13.0-51-generic
Found initrd image: /boot/initrd.img-5.13.0-51-generic
Found linux image: /boot/vmlinuz-5.13.0-48-generic
Found initrd image: /boot/initrd.img-5.13.0-48-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
error: $.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 331
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.13.0-44-generic (--remove):
 installed linux-image-5.13.0-44-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.13.0-44-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.13.0-44-generic 5.13.0-44.49~20.04.1
ProcVersionSignature: Ubuntu 5.13.0-48.54~20.04.1-generic 5.13.19
Uname: Linux 5.13.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Jul 17 00:20:03 2022
InstallationDate: Installed on 2022-02-03 (162 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
SourcePackage: linux-signed-hwe-5.13
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
temesgen (teme-one) wrote :
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Did you tweak /etc/default/grub by any chance?

Revision history for this message
temesgen (teme-one) wrote :

I did not touch /etc/default/grub. But a day before this issue, I upgraded from windows 10 to windows 11, which is running alongside ubuntu in dual boot.

Revision history for this message
temesgen (teme-one) wrote :

Fixed the issue submitted above using the following link(Official): https://help.ubuntu.com/community/RemoveOldKernels#Unmet_Dependency_Errors
Here are the commands from the link:
$ sudo apt-get update ## Update the package database
$ sudo apt-get clean hello ## Delete the hello package from the local cache
$ sudo apt-get install --reinstall hello ## Download and reinstall the latest version of hello

In my case, 'hello' is replaced by 'linux-image-5.13.0-44-generic'

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.