Please set this bug as Invalid. The problem comes in a corporate laptop and I found it was Sentinel Agent blocking the upgrade. Once we allowed the upgrade in a Sentinel rule it works perfectly.
For anyone getting this error check antivirus software. These are the relevant sentinel agent log lines: s1_log/agent.log:[2023-03-06 17:22:18.035762] [31244] [info] Created static group '4902bc31-6d8c-6ad6-adfd-7f1d9f1acedd' for malicious file '/usr/lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt' s1_log/agent.log:[2023-03-06 17:22:18.037102] [31244] [info] Dispatching threat: type=suspicious, initiated_by=full_disk_scan, is_silent=0, kpid=-1, engine=dfi, indicators size=1, is_static=1, group_id=4902bc31-6d8c-6ad6-adfd-7f1d9f1acedd, in_container=97, host path=/usr/lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt, size=6860, hash: 2d31cb17d5b716573823ee5b349b1c5b3f0cec8f, group id: 4902bc31-6d8c-6ad6-adfd-7f1d9f1acedd s1_log/agent.log:[2023-03-06 17:22:18.037646] [31222] [info] Mitigating a static threat, file: /usr/lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt s1_log/agent.log:[2023-03-06 17:22:18.038928] [31222] [info] File /usr/lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt quarantined -> /opt/sentinelone/.storage/4902bc31-6d8c-6ad6-adfd-7f1d9f1acedd/4902bc5c-bff1-ad03-5b45-e5badfaeb225 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-firmware in Ubuntu. https://bugs.launchpad.net/bugs/2013176 Title: error processing archive /var/cache/apt/archives/linux- firmware_20220329.git681281e4-0ubuntu3.11_all.deb (--unpack) Status in linux-firmware package in Ubuntu: Incomplete Bug description: sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libopenexr25 libpostproc55 libavcodec58 libavutil56 libswscale5 libswresample3 libavformat58 libavfilter7 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following packages have been kept back: bind9-dnsutils bind9-host bind9-libs dnsmasq-base gnome-remote-desktop grub-efi-amd64-bin grub-efi-amd64-signed libpulse-mainloop-glib0 libpulse0 libpulsedsp librados2 librbd1 pulseaudio pulseaudio-module-bluetooth pulseaudio-utils shim-signed The following packages will be upgraded: linux-firmware 1 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. Need to get 0 B/249 MB of archives. After this operation, 24,3 MB of additional disk space will be used. Do you want to continue? [S/n] (Reading database ... 276611 files and directories currently installed.) Preparing to unpack .../linux-firmware_20220329.git681281e4-0ubuntu3.11_all.deb ... Unpacking linux-firmware (20220329.git681281e4-0ubuntu3.11) over (20220329.git681281e4-0ubuntu3.10) ... dpkg: error processing archive /var/cache/apt/archives/linux-firmware_20220329.git681281e4-0ubuntu3.11_all.deb (--unpack): unable to open '/lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt.dpkg-new': No such file or directory No apport report written because the error message indicates an issue on the local system update-initramfs: Generating /boot/initrd.img-5.19.0-38-generic I: The initramfs will attempt to resume from /dev/nvme0n1p2 I: (UUID=a091b115-9de8-4b24-96ee-6e8098ea764c) I: Set the RESUME variable to override this. update-initramfs: Generating /boot/initrd.img-5.19.0-35-generic I: The initramfs will attempt to resume from /dev/nvme0n1p2 I: (UUID=a091b115-9de8-4b24-96ee-6e8098ea764c) I: Set the RESUME variable to override this. Errors were encountered while processing: /var/cache/apt/archives/linux-firmware_20220329.git681281e4-0ubuntu3.11_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/2013176/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp