Ubuntu 16.04 を 18.04 にアップデートした後、`apt update` でエラーが発生します

Ubuntu 16.04 を 18.04 にアップデートした後、`apt update` でエラーが発生します

エラー メッセージは次のとおりです。

Err:1 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease
  Could not resolve host: esm.ubuntu.com
Err:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:3 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:4 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease
  Could not resolve host: esm.ubuntu.com
Reading package lists... Done
W: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/xenial/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu/dists/xenial/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/dists/xenial-infra-security/InRelease  Could not resolve host: esm.ubuntu.com
W: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/dists/xenial-infra-updates/InRelease  Could not resolve host: esm.ubuntu.com
W: Some index files failed to download. They have been ignored, or old ones used instead.

答え1

ステップ 1. インターネット接続を確認します。接続が悪い場合は、ローカル ミラーに切り替えます。また、デバイスがインターネットに接続できるように正しく設定されているかどうかも確認します。

ステップ2.すべてのPPAを削除して試すsudo apt update && sudo apt full-upgrade

ステップ 3。xenialを に手動で変更し、bionic/etc/apt/sources.listのすべてのファイルをに変更してetc/apt/sources.dから、 にsudo apt update変更してみてください。これは「Debian 方式」なのでこれまで試していませんが、動作するはずです。ただし、予防策として、ファイルをバックアップする必要があります。

関連情報