Comment 5 for bug 1793280

Can you please share the output of the following commands?

    apt policy dpkg

    update-alternatives --version

The location of alternatives.log is determined at build time, which makes me think you might have a locally built version of update-alternatives that tries to write to the wrong location.