Public bug reported: I have Ubuntu 22.04.1. This is a fresh install from 2 weeks ago. I tried to do an apt update/upgrade this morning, but something failed. Suggested recovery (sudo apt --fix-broken install) is not working.
$ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: linux-image-generic-hwe-22.04 : Depends: linux-image-5.15.0-47-generic but it is not installed linux-modules-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-modules-extra-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-modules-nvidia-515-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-signatures-nvidia-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed 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... Done Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: linux-image-5.15.0-47-generic Suggested packages: fdutils linux-doc | linux-source-5.15.0 linux-tools The following NEW packages will be installed: linux-image-5.15.0-47-generic 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. Need to get 0 B/11.4 MB of archives. After this operation, 11.6 MB of additional disk space will be used. Do you want to continue? [Y/n] (Reading database ... 287318 files and directories currently installed.) Preparing to unpack .../linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.deb ... Unpacking linux-image-5.15.0-47-generic (5.15.0-47.51) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.deb (--unpack): unable to open '/boot/vmlinuz-5.15.0-47-generic.dpkg-new': Operation not permitted Errors were encountered while processing: /var/cache/apt/archives/linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1988466 Title: Getting "Operation not permitted" on "sudo apt upgrade" Status in linux package in Ubuntu: New Bug description: I have Ubuntu 22.04.1. This is a fresh install from 2 weeks ago. I tried to do an apt update/upgrade this morning, but something failed. Suggested recovery (sudo apt --fix-broken install) is not working. $ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: linux-image-generic-hwe-22.04 : Depends: linux-image-5.15.0-47-generic but it is not installed linux-modules-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-modules-extra-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-modules-nvidia-515-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed linux-signatures-nvidia-5.15.0-47-generic : Depends: linux-image-5.15.0-47-generic but it is not installed or linux-image-unsigned-5.15.0-47-generic but it is not installed 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... Done Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: linux-image-5.15.0-47-generic Suggested packages: fdutils linux-doc | linux-source-5.15.0 linux-tools The following NEW packages will be installed: linux-image-5.15.0-47-generic 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. Need to get 0 B/11.4 MB of archives. After this operation, 11.6 MB of additional disk space will be used. Do you want to continue? [Y/n] (Reading database ... 287318 files and directories currently installed.) Preparing to unpack .../linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.deb ... Unpacking linux-image-5.15.0-47-generic (5.15.0-47.51) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.deb (--unpack): unable to open '/boot/vmlinuz-5.15.0-47-generic.dpkg-new': Operation not permitted Errors were encountered while processing: /var/cache/apt/archives/linux-image-5.15.0-47-generic_5.15.0-47.51_amd64.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/+bug/1988466/+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