dpkg: error processing package javascript-common

Date posted : 05/04/2019

When we installed VestaCP on a Ubuntu 18.04 system, we ran into this below error.

Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

In order to resolve this error, we need to clean up this package.

apt-get --purge remove javascript-common

We need to use purge option to delete the files completely. That solves the issue.

Thanks for using pheonix solutions.

You find this tutorial helpful? Share with your friends to keep it alive.