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?
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