Came here because I had this problem while upgrading ubuntu from 24.10 to 25.04. I had never manually deleted or altered javascript-common files (I acquired those through dependencies while installing 'cacti' I believe).
The error was a bit scary as it seemed to interrupt do-release-upgrade, but I'm not sure.
I tried running `apt install javascript-common` but it failed because it couldn't run the post-install script of apache2 and vice-versa.
My workaround, in case that helps anybody was to `apt purge javascript-common` and then re-install cacti which is the package I really cared about.
Came here because I had this problem while upgrading ubuntu from 24.10 to 25.04. I had never manually deleted or altered javascript-common files (I acquired those through dependencies while installing 'cacti' I believe).
The error was a bit scary as it seemed to interrupt do-release-upgrade, but I'm not sure.
I tried running `apt install javascript-common` but it failed because it couldn't run the post-install script of apache2 and vice-versa.
My workaround, in case that helps anybody was to `apt purge javascript-common` and then re-install cacti which is the package I really cared about.