Score:0

Ubuntu apt Broken. Linux Image Issue

jo flag

I can't seem to solve this issue despite trying everything I found googling. I can not install or remove using apt. I've tried some fixes but eventually, they fail.

> sudo apt upgrade                                                         
Reading package lists... Done
Building dependency tree       
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-20.04 : Depends: linux-image-5.15.0-58-generic but it is not installed
 linux-modules-5.15.0-58-generic : Depends: linux-image-5.15.0-58-generic but it is not installed or
                                            linux-image-unsigned-5.15.0-58-generic but it is not installed
 linux-modules-extra-5.15.0-58-generic : Depends: linux-image-5.15.0-58-generic but it is not installed or
                                                  linux-image-unsigned-5.15.0-58-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
> sudo apt-get install -f
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:
  audacity-data libflac++6v5 libid3tag0 libportsmf0v5 libsoundtouch1 libsuil-0-0 libvamp-hostsdk3v5 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-5.15.0-58-generic
Suggested packages:
  fdutils linux-doc | linux-hwe-5.15-source-5.15.0 linux-hwe-5.15-tools
The following NEW packages will be installed:
  linux-image-5.15.0-58-generic
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
4 not fully installed or removed.
Need to get 0 B/11.3 MB of archives.
After this operation, 11.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 343840 files and directories currently installed.)
Preparing to unpack .../linux-image-5.15.0-58-generic_5.15.0-58.64~20.04.1_amd64.deb ...
Unpacking linux-image-5.15.0-58-generic (5.15.0-58.64~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.15.0-58-generic_5.15.0-58.64~20.04.1_amd64.deb (--unpack):
 unable to open '/boot/vmlinuz-5.15.0-58-generic.dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-5.15.0-58-generic_5.15.0-58.64~20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

My ubuntu version:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:    20.04
Codename:   focal
Pilot6 avatar
cn flag
Do you have enough space in `/` or `/boot`?
Cratobi avatar
jo flag
@Pilot6 Yes, I have about 400MB of free space
Score:0
jo flag

It was due to McAfee running in the background, a known issue.

Quoc Thai Tang avatar
rs flag
To elaborate on [this answer](https://askubuntu.com/a/1462464), I can get this working by stopping McAfee. `sudo /opt/McAfee/ens/tp/init/mfetpd-control.sh stop && sudo /opt/McAfee/ens/esp/init/mfeespd-control.sh stop`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.