+4 votes
in Operating Systems by (40.5k points)

I am trying to install the HestiaCP server control panel on my VPS, but it throws the following error and the installation fails.

“Sub-process /usr/bin/dpkg returned an error code″

How can I fix this error?

1 Answer

+1 vote
by (346k points)
selected by
 
Best answer

You can run the following command on the terminal to configure the package database in case it somehow got corrupted.

sudo dpkg --configure -a

It should fix the error. If it does not, remove the package that is causing this error by running the following command on the terminal:

sudo apt-get install -f


...