I was not able to reproduce this on Ubuntu 22. Could it be possible that this is also linked to you removing Apache from the server? There is no documented/advised scenario where removing essential components is recommended, so I wonder whether the "errors" you report are linked to this special configuration?