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.
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.
~$ 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)