Problem installing apache 2 in ubuntu 14.04: dpkg:- error processing package javascript-common (--configure):
Solution 1
Remove javascript common and reinstall again :
sudo apt-get purge javascript-common
sudo apt-get install javascript-common
And then install packages.
Source : http://ubuntuforums.org/showthread.php?t=2232128
Solution 2
My problem was with javascript-common (I use Dedian) not being configured. My solution was to remove it and to install apache2 before installing javascript-common. It seems that javascript-common expects some configuration files to be exitent before being able to configure it.
sudo touch /etc/apache2/conf-available/javascript-common.conf
sudo apt-get install apache2
Download the javascript-common_11_all.deb package manually and instaled it with
dpkg -i javascript-common_11_all.deb --force-all
good luck
Solution 3
i uninstall it , and the dpkg reconfigure
apt-get --purge remove javascript-common
sudo dpkg --configure -a
if you need it , install it again
sudo apt-get update
sudo apt-get install javascript-common
Related videos on Youtube
argenstijn
Updated on September 18, 2022Comments
-
argenstijn over 1 year
How can i import a certificate like the command below but then using AWS CDK?
aws acm import-certificate --certificate file://Certificate.pem --certificate-chain file://CertificateChain.pem --private-key file://PrivateKey.pem
-
heemayl about 9 yearsFor the javascript-common issue run
sudo apt-get clean && sudo apt-get autoclean
..now reinstall apache2 withsudo apt-get --reinstall install apache2
-
Rahul Satal about 9 yearsThanks for answer @heemayl, your first command runs fine but on running 2nd command ie reinstalling apache2 it again gives same error.
-
stuzzo almost 9 years@RahulSatal Have you found a solution? I have the same problem. Thank you
-
-
CodeConnoisseur over 4 yearsWorked for me. Ubuntu 18.04
-
Frizzo about 4 yearsBut how do I use the certificate after I've imported it like in your example? Do I apply it to the route53 zone I also create? If you could give and example on that as well that would be great! :) Thanks!
-
Amit Baranes about 4 yearsWhat do you wish to create? please be more specific in order to provide relevant example
-
rmsys almost 4 yearsI tried this approach and the approach from documentation to add certificate in a ALB, but both doesn't worked. I made this, and works for me: const certificateArn = "arn:aws:acm:....; const listenerPort443 = alb.addListener('listenerPort443', { port: 443, }); listenerPort443.addCertificateArns('SSL', [ certificateArn ]);