ERROR: /etc/apache2/conf-enabled/javascript-common.conf is a dangling symlink!
is unrelated to whether or not apache2 crashes. If you also delete /etc/apache2/conf-enabled/javascript-common.conf then the a2enconf failure still happens without a symlink issue.
Looks like the error
ERROR: /etc/apache2/ conf-enabled/ javascript- common. conf is a dangling symlink!
is unrelated to whether or not apache2 crashes. If you also delete /etc/apache2/ conf-enabled/ javascript- common. conf then the a2enconf failure still happens without a symlink issue.
New test case:
# lxc launch images:ubuntu/focal test-apache2
# lxc exec test-apache2 bash
# apt update && apt dist-upgrade -y release- upgrader- core apport pciutils apache2 javascript-common -y conf-available/ javascript- common. conf /etc/apache2/ conf-enabled/ javascript- common. conf
# apt install ubuntu-
# rm /etc/apache2/
# do-release-upgrade