+4 votes
in Operating Systems by (1.9k 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

0 votes
by (25.6k points)

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

...