➜ tools 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.11.0-27-generic linux-hwe-5.11-headers-5.11.0-27 linux-image-5.11.0-27-generic linux-modules-5.11.0-27-generic linux-modules-extra-5.11.0-27-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-headers-5.11.0-37-generic linux-hwe-5.11-headers-5.11.0-37 linux-modules-extra-5.11.0-37-generic
The following NEW packages will be installed:
linux-headers-5.11.0-37-generic linux-hwe-5.11-headers-5.11.0-37
The following packages will be upgraded:
linux-modules-extra-5.11.0-37-generic
1 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
11 not fully installed or removed.
Need to get 0 B/55.3 MB of archives.
After this operation, 308 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 338058 files and directories currently installed.)
Preparing to unpack .../linux-modules-extra-5.11.0-37-generic_5.11.0-37.41~20.04.2_amd64.deb ...
Unpacking linux-modules-extra-5.11.0-37-generic (5.11.0-37.41~20.04.2) over (5.11.0-37.41~20.04.2) ...
Preparing to unpack .../linux-hwe-5.11-headers-5.11.0-37_5.11.0-37.41~20.04.2_all.deb ...
Unpacking linux-hwe-5.11-headers-5.11.0-37 (5.11.0-37.41~20.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-hwe-5.11-headers-5.11.0-37_5.11.0-37.41~20.04.2_all.deb (--unpack):
unable to create new file '/var/lib/dpkg/info/linux-hwe-5.11-headers-5.11.0-37.list-new': Operation not permitted
Preparing to unpack .../linux-headers-5.11.0-37-generic_5.11.0-37.41~20.04.2_amd64.deb ...
Unpacking linux-headers-5.11.0-37-generic (5.11.0-37.41~20.04.2) ...
Errors were encountered while processing:
/var/cache/apt/archives/linux-hwe-5.11-headers-5.11.0-37_5.11.0-37.41~20.04.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
➜ tools sudo apt --fix-broken install headers- 5.11.0- 27-generic linux-hwe- 5.11-headers- 5.11.0- 27 linux-image- 5.11.0- 27-generic linux-modules- 5.11.0- 27-generic linux-modules- extra-5. 11.0-27- generic headers- 5.11.0- 37-generic linux-hwe- 5.11-headers- 5.11.0- 37 linux-modules- extra-5. 11.0-37- generic headers- 5.11.0- 37-generic linux-hwe- 5.11-headers- 5.11.0- 37 modules- extra-5. 11.0-37- generic modules- extra-5. 11.0-37- generic_ 5.11.0- 37.41~20. 04.2_amd64. deb ... extra-5. 11.0-37- generic (5.11.0- 37.41~20. 04.2) over (5.11.0- 37.41~20. 04.2) ... hwe-5.11- headers- 5.11.0- 37_5.11. 0-37.41~ 20.04.2_ all.deb ... 5.11-headers- 5.11.0- 37 (5.11.0- 37.41~20. 04.2) ... apt/archives/ linux-hwe- 5.11-headers- 5.11.0- 37_5.11. 0-37.41~ 20.04.2_ all.deb (--unpack): dpkg/info/ linux-hwe- 5.11-headers- 5.11.0- 37.list- new': Operation not permitted headers- 5.11.0- 37-generic_ 5.11.0- 37.41~20. 04.2_amd64. deb ... 5.11.0- 37-generic (5.11.0- 37.41~20. 04.2) ... apt/archives/ linux-hwe- 5.11-headers- 5.11.0- 37_5.11. 0-37.41~ 20.04.2_ all.deb
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-
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-
The following NEW packages will be installed:
linux-
The following packages will be upgraded:
linux-
1 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
11 not fully installed or removed.
Need to get 0 B/55.3 MB of archives.
After this operation, 308 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 338058 files and directories currently installed.)
Preparing to unpack .../linux-
Unpacking linux-modules-
Preparing to unpack .../linux-
Unpacking linux-hwe-
dpkg: error processing archive /var/cache/
unable to create new file '/var/lib/
Preparing to unpack .../linux-
Unpacking linux-headers-
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)