Ubuntu 18.04 E: パッケージ 'ttf-mscorefonts-installer' にはインストール候補がありません

Ubuntu 18.04 E: パッケージ 'ttf-mscorefonts-installer' にはインストール候補がありません

ここでUbuntuインストーラースクリプトを使用してWebページテストエージェントをインストールしようとしていますhttps://github.com/WPO-Foundation/wptagent-install

新しい Azure Ubuntu 18.04 LTS イメージでは、問題なく動作します。

ただし、新しい VPSCity Ubuntu 18.04 LTS イメージ (ニュージーランドにある) にインストールする必要があります。これでインストーラーを実行すると、次のエラーが表示されて失敗します。

$ sudo apt-get install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ttf-mscorefonts-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ttf-mscorefonts-installer' has no installation candidate

これまでに以下のことを行いました。

sudo apt-get update
sudo apt-get upgrade -y

/etc/apt/sources.list を検索します

与える

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner

マルチバースを有効にする必要があるという投稿をいくつか見ました。SSH コマンドライン セッション経由でこれを実行するにはどうすればよいですか?

2 つの異なる Ubuntu 18.04 LTS サーバーがこれほど異なるのは正常ですか?

20.04 でも試してみましたが、同じ問題が発生しました。

答え1

パッケージを検索するとパッケージパッケージがマルチバース リポジトリ、これはsources.listにありません。

ソースリスト ファイルの次の行に追加するだけです:

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse

答え2

解決策を見つけました。

Azure VM から動作中の source.list を取得し、それを既存の source.list の末尾に追加したので、更新された source.list は次のようになります。

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner
deb http://azure.archive.ubuntu.com/ubuntu/ bionic main restricted

deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://azure.archive.ubuntu.com/ubuntu/ bionic universe
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://azure.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-security universe
deb http://azure.archive.ubuntu.com/ubuntu/ bionic-security multiverse

関連情報