Upgrade to 5.13.0-21 ended with error - exit status 1

I made clean installation of lubuntu 21.10 a few days ago. Today’s update ended up with the message:

---
Package failed to install:
Error while installing package: installed linux-image-5.13.0-21-generic package post-installation script subprocess returned error exit status 1

Please report this issue to the packagers of your distribution.
---

Hardware: ThinkPad SL500.
Starting from system
acentauri@TPSL550:~$ uname -a
Linux TPSL550 5.13.0-19-generic #19-Ubuntu SMP Thu Oct 7 21:58:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

All attempts to fix broken packages were unsuccessful.
I have faced similar issue on the same hw with lubuntu 20.04 with no successful resolution.

You’ve not provided the full message(s), only the summary messages it appears to me.

The lines above what you pasted likely contain the most useful clues.

You mentioning attempting to fix it, but not what you actually tried.

2 Likes

Thank you for the msg. I hoped that the issue is more common and someone has experienced the same.
There is not much to add. The message is from the GUI.

I have also tried

sudo apt update --fix-missing
sudo apt install -f
sudo dpkg --configure -a
with no successs.

This is a result another attempt to correct the situation. It didn’t help, but it gives a bit more information

user@XXXX:~$ sudo apt autoremove
[sudo] password for user:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-5.13.0-21-generic (5.13.0-21.21) …
Failed to create symlink to vmlinuz-5.13.0-19-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
dpkg: error processing package linux-image-5.13.0-21-generic (–configure):
installed linux-image-5.13.0-21-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-modules-extra-5.13.0-21-generic:
linux-modules-extra-5.13.0-21-generic depends on linux-image-5.13.0-21-generic | linux-image-unsigned-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
Package linux-image-unsigned-5.13.0-21-generic is not installed.

dpkg: error processing package linux-modules-extra-5.13.0-21-generic (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-modules-5.13.0-21-generic:
linux-modules-5.13.0-21-generic depends on linux-image-5.13.0-21-generic | linux-image-unsigned-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
Package linux-image-unsigned-5.13.0-21-generic is not installed.

dpkg: error processing package linux-modules-5.13.0-21-generic (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
linux-image-generic depends on linux-modules-extra-5.13.0-21-generic; however:
Package linux-modules-extra-5.13.0-21-generic is not configured yet.

dpkg: error processing package linux-image-generic (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 5.13.0.21.32); however:
Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-image-5.13.0-21-generic
linux-modules-extra-5.13.0-21-generic
linux-modules-5.13.0-21-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@XXXX:~$ uname -a
Linux TPSL550 5.13.0-19-generic #19-Ubuntu SMP Thu Oct 7 21:58:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
user@XXXX:~$

I returned to system before upgrade using Timeshift. But it didn’t help to repeat the upgrade correctly.

Some screen shots

~$ sudo apt list --upgradable
Listing… Done
linux-generic/impish-updates,impish-security 5.13.0.21.32 amd64 [upgradable from: 5.13.0.19.30]
linux-headers-generic/impish-updates,impish-security 5.13.0.21.32 amd64 [upgradable from: 5.13.0.19.30]
linux-image-generic/impish-updates,impish-security 5.13.0.21.32 amd64 [upgradable from: 5.13.0.19.30]

Please show

lsblk -f

~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0 squashfs 4.0 0 100% /snap/bare/5
loop1 squashfs 4.0 0 100% /snap/gnome-3-2
loop2 squashfs 4.0 0 100% /snap/chromium-
loop3 squashfs 4.0 0 100% /snap/gtk-commo
loop4 squashfs 4.0 0 100% /snap/core/1199
loop5 squashfs 4.0 0 100% /snap/core18/22
loop6 squashfs 4.0 0 100% /snap/opera/150
loop7 squashfs 4.0 0 100% /snap/opera/151
loop8 squashfs 4.0 0 100% /snap/snapd/136
loop9 squashfs 4.0 0 100% /snap/snapd/140
sda
├─sda1 ext4 1.0 root 251c7652-a198-4711-adef-a61e4ec40cd1 29,9G 36% /run/timeshift/
├─sda2 swap 1 swap 830b2d54-f94f-4abd-8a11-b7d4d9ccd160 [SWAP]
└─sda3 vfat FAT32 BOOT 77E1-3545 405,5M 21% /boot
sr0

More info

~$ sudo apt upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following NEW packages will be installed:
linux-headers-5.13.0-21 linux-headers-5.13.0-21-generic linux-image-5.13.0-21-generic
linux-modules-5.13.0-21-generic linux-modules-extra-5.13.0-21-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic
3 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
3 standard security updates
Need to get 100 MB of archives.
After this operation, 502 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
acentauri@TPSL550:~$ sudo apt upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following NEW packages will be installed:
linux-headers-5.13.0-21 linux-headers-5.13.0-21-generic linux-image-5.13.0-21-generic
linux-modules-5.13.0-21-generic linux-modules-extra-5.13.0-21-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic
3 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
3 standard security updates
Need to get 100 MB of archives.
After this operation, 502 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-modules-5.13.0-21-generic amd64 5.13.0-21.21 [20,1 MB]
Get:2 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-image-5.13.0-21-generic amd64 5.13.0-21.21 [10,1 MB]
Get:3 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-modules-extra-5.13.0-21-generic amd64 5.13.0-21.21 [55,6 MB]
Get:4 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-generic amd64 5.13.0.21.32 [1 698 B]
Get:5 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-image-generic amd64 5.13.0.21.32 [2 366 B]
Get:6 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-headers-5.13.0-21 all 5.13.0-21.21 [12,1 MB]
Get:7 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-headers-5.13.0-21-generic amd64 5.13.0-21.21 [2 539 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 linux-headers-generic amd64 5.13.0.21.32 [2 252 B]
Fetched 100 MB in 31s (3 271 kB/s)
Selecting previously unselected package linux-modules-5.13.0-21-generic.
(Reading database … 258957 files and directories currently installed.)
Preparing to unpack …/0-linux-modules-5.13.0-21-generic_5.13.0-21.21_amd64.deb …
Unpacking linux-modules-5.13.0-21-generic (5.13.0-21.21) …
Selecting previously unselected package linux-image-5.13.0-21-generic.
Preparing to unpack …/1-linux-image-5.13.0-21-generic_5.13.0-21.21_amd64.deb …
Unpacking linux-image-5.13.0-21-generic (5.13.0-21.21) …
Selecting previously unselected package linux-modules-extra-5.13.0-21-generic.
Preparing to unpack …/2-linux-modules-extra-5.13.0-21-generic_5.13.0-21.21_amd64.deb …
Unpacking linux-modules-extra-5.13.0-21-generic (5.13.0-21.21) …
Preparing to unpack …/3-linux-generic_5.13.0.21.32_amd64.deb …
Unpacking linux-generic (5.13.0.21.32) over (5.13.0.19.30) …
Preparing to unpack …/4-linux-image-generic_5.13.0.21.32_amd64.deb …
Unpacking linux-image-generic (5.13.0.21.32) over (5.13.0.19.30) …
Selecting previously unselected package linux-headers-5.13.0-21.
Preparing to unpack …/5-linux-headers-5.13.0-21_5.13.0-21.21_all.deb …
Unpacking linux-headers-5.13.0-21 (5.13.0-21.21) …
Selecting previously unselected package linux-headers-5.13.0-21-generic.
Preparing to unpack …/6-linux-headers-5.13.0-21-generic_5.13.0-21.21_amd64.deb …
Unpacking linux-headers-5.13.0-21-generic (5.13.0-21.21) …
Preparing to unpack …/7-linux-headers-generic_5.13.0.21.32_amd64.deb …
Unpacking linux-headers-generic (5.13.0.21.32) over (5.13.0.19.30) …
Setting up linux-headers-5.13.0-21 (5.13.0-21.21) …
Setting up linux-headers-5.13.0-21-generic (5.13.0-21.21) …
Setting up linux-headers-generic (5.13.0.21.32) …
Setting up linux-image-5.13.0-21-generic (5.13.0-21.21) …
Failed to create symlink to vmlinuz-5.13.0-19-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
dpkg: error processing package linux-image-5.13.0-21-generic (–configure):
installed linux-image-5.13.0-21-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-modules-extra-5.13.0-21-generic:
linux-modules-extra-5.13.0-21-generic depends on linux-image-5.13.0-21-generic | linux-image-unsigned-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
Package linux-image-unsigned-5.13.0-21-generic is not installed.

dpkg: error processing package linux-modules-extra-5.13.0-21-generic (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-modules-5.13.0-21-generic:
linux-modules-5.13.0-21-generic depends on linux-image-5.13.0-21-generic | linux-image-unsigned-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
Package linux-image-unsigned-5.13.0-21-generic is not installed.

dpkg: error processing package linux-modules-5.13.0-21-generic (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
event configuration of linux-image-generic:
linux-image-generic depends on linux-image-5.13.0-21-generic; however:
Package linux-image-5.13.0-21-generic is not configured yet.
linux-image-generic depends on linux-modules-extra-5.13.0-21-generic; however:
Package linux-modules-extra-5.13.0-21-generic is not configured yet.

dpkg: error processing package linux-image-generic (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 5.13.0.21.32); however:
Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-5.13.0-21-generic
linux-modules-extra-5.13.0-21-generic
linux-modules-5.13.0-21-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Your /boot directory is on a FAT32 partition, which does not support symlinks.

How did you install the system? Why is /boot located on a FAT32 partition?

4 Likes

Thanks for the hint.
I have actually used my experience from previous installations, but non of them was lubuntu.
I 'll reinstall.

If you install the system in UEFI mode, then the ESP (EFI System Partition) should be mounted to /boot/efi and /boot resides on the / partition.

4 Likes

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.