Ubuntu Sub-process /usr/bin/dpkg returned an error code (1)

This issue occurs when the problem is with package installer. The package installer is an application that tracks software updates and dependencies. So, Ubuntu sub-process /usr/bin/dpkg would return the error while updating and upgrading the system.

There was an issue with mono software which installed for Microsoft .net framework. This is an open source software from Microsoft for Linux based operating system. Whenever i try to update or upgrade our Ubuntu machine it gets the error.

Check Out : Step To Install PlayonLinux On Ubuntu 17.04/18.04

So i try to find an error in the Ubuntu and after doing that i got that i removed the mono software from my machine but it was not fully removed.

There’re many ways to solve this issue and I’m gonna show them.

Method 1 : try to rebuild the database

sudo dpkg –configure -a

Method 2 : you can use below command to remove corrupted software if you’re not able to find.

sudo apt autoremove

Method 3 : you can force your machine to fix the issue forcefully.

sudo apt install -f

Check Out : How To Uninstall Mono Cross Platform On Ubuntu 18.04

Method 4 : you can use purge command to remove it completely from the machine.

sudo apt –purge remove unattended-upgrades

here unattended-upgrades is “error processing the package name” you can replace it with your error processing package name.

sudo apt auto-remove

sudo apt update

After choosing method 2 my error was gone and it’s worked for me.

That’s it

Leave a Reply

Notify of