PIB - 20220502: Ubuntu 16.04 - do-release-upgrade

状況

要 proxy 環境で以下の環境の do-release-upgrade を試みた。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:        16.04
Codename:       xenial
すると以下のような警告が出た。
$ do-release-upgrade
...
Connection to Snap Store failed

Your system does not have a connection to the Snap Store. For the
best upgrade experience make sure that your system can connect to
api.snapcraft.io.
Do you still want to continue with the upgrade?

続行する[yN]

環境変数 {ftp,http,https}_proxy は設定済みで、/etc/sudoers.d/inherit_proxy に 20220406: sudo - proxy を渡す の設定を適用済みなのだが、どうも do-release-upgrade には影響が及んでない模様。
仕方がないので、20200518: Ubuntu 20.04 LTS - proxy の設定 にある snap の設定を適用してみたところ、とりあえず、この部分は無事通過。
しかし、
...
アップグレードが完了しました

アップグレードは完了しましたが、アップグレード中に幾つかのエラーが発生しました。
みたいな表示で終わってしまった。
一応
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic
になったが、dist-upgrade してみると

$ sudo apt dist-upgrade

$ sudo apt dist-upgrade -f

みたいな感じで、systemd-shim が刺さるため upgrade できんパッケージが山のように発生。
英文のエラー確認してみると以下の通り。
$ sudo LANG=C apt-get -f install
...
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 289512 files and directories currently installed.)
Removing systemd-shim (9-1bzr4ubuntu1) ...
Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with
  different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed
dpkg: error processing package systemd-shim (--remove):
 installed systemd-shim package post-removal script subprocess returned error exit status 2
Errors were encountered while processing:
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)
これを手掛かりに、「rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed」でググると以下のページを見つけた。 曰く
sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak
して、問題のファイルを .bak に避けた状態にして再度 upgrade してみろと。