I have been getting this error when installing packages on a development LAMP, Ubuntu 14.04.1 LTS:
Errors were encountered while processing:
javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
The package install seems to work, but the error concerns me. It has happened when installing ntp, re-installing php5, installing n98-magerun, basically all the time.
I never saw this error when initially setting up the server, but it's everywhere I look nowadays.
Any idea on what is causing this, and possibly a good fix?