Problem installing apache 2 in ubuntu 14.04: dpkg:- error processing package javascript-common (--configure):

3,648

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

Share:
3,648

Related videos on Youtube

argenstijn
Author by

argenstijn

Updated on September 18, 2022

Comments

  • argenstijn
    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
      heemayl about 9 years
      For the javascript-common issue run sudo apt-get clean && sudo apt-get autoclean..now reinstall apache2 with sudo apt-get --reinstall install apache2
    • Rahul Satal
      Rahul Satal about 9 years
      Thanks for answer @heemayl, your first command runs fine but on running 2nd command ie reinstalling apache2 it again gives same error.
    • stuzzo
      stuzzo almost 9 years
      @RahulSatal Have you found a solution? I have the same problem. Thank you
  • CodeConnoisseur
    CodeConnoisseur over 4 years
    Worked for me. Ubuntu 18.04
  • Frizzo
    Frizzo about 4 years
    But 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
    Amit Baranes about 4 years
    What do you wish to create? please be more specific in order to provide relevant example
  • rmsys
    rmsys almost 4 years
    I 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 ]);