How can I resolve this error: packages have unmet dependencies: linux-image-oem-20.04b: Depends?
I am getting this error
The following packages have unmet dependencies:
linux-image-oem-20.04b : Depends:
linux-image-5.10.0-1049-oem but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I have tried almost everything and it is not letting me install,remove or update anything.I have also tried manually installing linux-image package but it throws me this error ->
dpkg: error processing archive
linux-image-5.10.0-1049-oem_5.10.0-1049.51_amd64.deb (--install):
unable to open '/boot/vmlinuz-5.10.0-1049-oem.dpkg-new': Operation not
permitted Errors were encountered while processing:
linux-image-5.10.0-1049-oem_5.10.0-1049.51_amd64.deb
I tried updating the whole system too but it gives me this error
Transaction failed: The package system is broken The following
packages have unmet dependencies: linux-image-oem-20.04b: Depends:
linux-image-5.10.0-1049-oem but it is not installed
Tried installing the OEM kernel using the below command:
sudo apt install linux-image-5.10.0-1049-oem
and it gives this error:
Preparing to unpack .../linux-image-5.10.0-1049-oem_5.10.0-1049.51_amd64.deb ...
Unpacking linux-image-5.10.0-1049-oem (5.10.0-1049.51) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.10.0-1049-oem_5.10.0-1049.51_amd64.deb (--unpack):
unable to open '/boot/vmlinuz-5.10.0-1049-oem.dpkg-new': Operation not permitte
d
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-5.10.0-1049-oem_5.10.0-1049.51_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The error is because of an Anti-Virus utility that is not allowing apt
to access the /boot
directory. Disable any anti-virus services you are using.
For example, if you're using MacCaffe, run the following commands to fix it (The commands will remove the antivirus utility):
sudo dpkg --purge mfedx
sudo dpkg --purge mcafeetp
sudo dpkg --purge mcafeeespaac
sudo dpkg --purge mcafeeespfileaccess
Sudo dpkg --purge mcafeeesp
sudo dpkg --purge mcafeert
sudo dpkg --purge mfecma
sudo dpkg --purge mfert