Debugging MK007  

Errors were encountered while processing:

Errors were encountered while processing: 

E:Subprocess/usr/bin/dpkg returned an error code(1)

Hi Geeks,

In this post I give the solution for the following bug in Kali Linux. The steps to solve this bug is same to all other Debian Linux distributions.

Why this error occurred ?

During using apt commend I was encountered by the following error (Errors were encountered while processing). Its a dpkg error. This error was occurred due to missing of some Debian packages.

 Errors were encountered while processing:
 E:Subprocess/usr/bin/dpkg returned an error code(1)

What I did ?

I run the upgrade command in my terminal. Now, I was encountered by the following error.

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

First fix the broken installed packages. For that run the below command in terminal,

mk007@linuxlia:~$ sudo apt --fix-broken install

Here press ‘Y’ for downloading the missed packages.

Only now does the problem begin.

Solution:

Try to remove that mentioned broken packages otherwise install it completely.

I will force to remove that files via the following dpkg file.

mk007@linuxlia:~$ sudo dpkg -i --force-all 'Package Name'

 Alright, now all the broken dpkg packages are successfully removed. Finally upgrade your system.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get dist-upgrade

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Leave A Comment