Skip to content
Advertisement

Unable to open ‘/boot/vmlinuz-5.x.x.x-generic.dpkg-new’: Operation not permitted [Need solution without removing antivirus from system]

In the last couple of days, I have gone through some unmet dependencies issues while upgrading. I tried installing those packages separately but couldn’t find a solution.

I know one solution that is to remove the antivirus from the system. But I’m not permitted to remove it. I am looking for another solution without removing the anti-virus from the system.

It shows while unpacking the package:

JavaScript

I tried auto clean, force install, –fix-broken.. all the possible ways found in the forums. For sudo apt –fix-broken install:

JavaScript

It’s annoying and I cannot install any other packages. Any suggestions on how can I fix that?

Advertisement

Answer

Here is the solution that works for me:

Basically, Antivirus prevents the installation of the packages as my system has already one (McAfee agent).

First of all, I checked the status of the antivirus with the following commands if it is running or not:

JavaScript

If it is running then stop the services with these:

JavaScript

Then check the status again if it is stopped or not. If stopped then I started necessary updates and required installations by this:

JavaScript

Finally, I started the antivirus again by these:

JavaScript

Reference: https://kc.mcafee.com/corporate/index?page=content&id=KB88223

Advertisement