Same bug observed on Azure image Ubuntu 20.04, when trying to upgrade 22.04.
Confirmed workaround as Stefan Schaub (s-schaub) mentioned, execute "sudo unlink /var/lib/dpkg/dpkg" before doing the "do-release-upgrade".
Same bug observed on Azure image Ubuntu 20.04, when trying to upgrade 22.04.
Confirmed workaround as Stefan Schaub (s-schaub) mentioned, execute "sudo unlink /var/lib/dpkg/dpkg" before doing the "do-release- upgrade" .