Apache is running and is serving pages but it seems to have been only partially updated during the upgrade and prevents further updates.
sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 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 apache2 (2.4.46-4ubuntu1.1) ...
info: Executing deferred 'a2enconf javascript-common' for package javascript-common
ERROR: Conf javascript-common does not exist!
dpkg: error processing package apache2 (--configure):
installed apache2 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
On the above, note all the zeros and 1 not fully installed or removed
. I do not want to remove Apache2 but simply want to repair it in order to complete the upgrade so how do I proceed?
One thing I noted in running the development sites is that JavaScript appears to not work but not sure what is needed to repair it. Seeing the error with javascript-common and having read that it can be removed, I tried to do so in order to finalize the apache2 update but still no Javascript on the sites that use it but the errors above seem to be gone now. Javascripts were working before the version upgrade.
sudo apt-get purge javascript-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
javascript-common*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 33.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 740588 files and directories currently installed.)
Removing javascript-common (11+nmu1) ...
Package apache2 is not configured yet. Will defer actions by package javascript-common.
Setting up apache2 (2.4.46-4ubuntu1.1) ...
apache-htcacheclean.service is a disabled or a static unit not running, not starting it.
(Reading database ... 740583 files and directories currently installed.)
Purging configuration files for javascript-common (11+nmu1) ...
apache2_invoke javascript-common postrm: No action required