How To Solve ” sub process usr bin dpkg returned an error code 1″ Error? – POFTUT

How To Solve ” sub process usr bin dpkg returned an error code 1″ Error?

dpkg is a tool used to install packages into a Debian, Ubuntu, Mint, Kali or deb based distribution. Generally package managers works without problem. But in some situations there may be some errors about package installation. One of the most popular dpkg error is sub process usr bin dpkg returned an error code 1 . In this tutorial we will look different ways to solve this error.

Reconfigure Package Database

One of the first way is configuring package database. Package database holds installed package related information. If an package installation is interrupted this database may become corrupt. We need to repair and reconfigure this package database with the following command.

Install Forcefully

Some package installation may be interrupted and can not complete the installation because of the existing cache. We need to install forcefully which can be implemented like below.

Remove Error Causing Package

Some times some similar job packages can be overlapped. In this situation we should need to remove the package which is all ready installed. We can get this package name from error messages. In this example we assume the package name is getdeb-repository .

Overwrite Other Packages File

Another solution to this error is forcing overwrite to the package which creates problem.

Auto Remove Unneeded Packages

We can remove unneeded packages with the autoremove command like below. This is safe command which will clean cache for unused packages.

2 Responses

  1. Mohammad Mubashir says:

    Thanks for your solution. I have implemented altos of solution many time but didn’t work. Your solution worked in one try. Great job

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)