Wednesday, September 27, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  8] [ 0]  / answers: 1 / hits: 14830  / 2 Years ago, mon, november 8, 2021, 4:13:42

I was trying to reinstall my apache 2 after un-installing it. But on installing it using command-

sudo apt-get install apache2

i am getting error-

rahul@rahulpc:~$ sudo apt-get install apache2
[sudo] password for rahul:
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
The following packages were automatically installed and are no longer required:
libblas3 liblinear-tools liblinear1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 474 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)

i think i have removed some essential directories while un-installing apache 2 . Anybody please help me to recover the files and to install apache 2.

More From » 14.04


Remove javascript common and reinstall again :

sudo apt-get purge javascript-common 

sudo apt-get install javascript-common

And then install packages.

Source :

[#20810] Tuesday, November 9, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 274
Total Questions: 118
Total Answers: 132

Location: India
Member since Thu, Jun 11, 2020
3 Years ago