我该如何解决这个错误:软件包有未满足的依赖项:linux-image-oem-20.04b:依赖?

我该如何解决这个错误:软件包有未满足的依赖项:linux-image-oem-20.04b:依赖?

我收到此错误

 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).

我几乎尝试了所有方法,但它不允许我安装、删除或更新任何东西。我也尝试过手动安装 linux-image 包,但它抛出了这个错误 ->

 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

我也尝试更新整个系统,但它给出了这个错误

 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

尝试使用以下命令安装 OEM 内核:

sudo apt install linux-image-5.10.0-1049-oem

并出现此错误:

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)

答案1

此错误是由于防病毒实用程序不允许apt访问该/boot目录而导致的。请禁用您正在使用的所有防病毒服务。

例如,如果您正在使用 MacCaffe,请运行以下命令来修复它(这些命令将删除防病毒实用程序):

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

相关内容