Maybe we can just check that the lsb-release package has the right package origin? I'm thinking of something along the lines of https://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu/bionic/apport/ubuntu/view/head:/backends/packaging-apt-dpkg.py#L166.
This way we could exit out of the upgrade process much earlier.
Maybe we can just check that the lsb-release package has the right package origin? I'm thinking of something along the lines of https:/ /bazaar. launchpad. net/~ubuntu- core-dev/ ubuntu/ bionic/ apport/ ubuntu/ view/head: /backends/ packaging- apt-dpkg. py#L166.
This way we could exit out of the upgrade process much earlier.