Ubuntu 18.04 E: Paket 'ttf-mscorefonts-installer' hat keinen Installationskandidaten

Ubuntu 18.04 E: Paket 'ttf-mscorefonts-installer' hat keinen Installationskandidaten

Ich versuche, den Webpagetest-Agenten mit dem Ubuntu-Installationsskript hier zu installierenhttps://github.com/WPO-Foundation/wptagent-install

Auf einem neuen Azure Ubuntu 18.04 LTS-Image funktioniert es problemlos.

Ich muss es jedoch auf einem neuen VPSCity Ubuntu 18.04 LTS-Image installieren (das sich in Neuseeland befindet). Wenn ich das Installationsprogramm darauf ausführe, schlägt es mit folgendem Fehler fehl:

$ 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

Folgendes habe ich zuvor gemacht:

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

Katze /etc/apt/sources.list

gibt

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

Ich habe einige Beiträge gesehen, in denen stand, dass ich das Multiversum aktivieren muss. Wie mache ich das über eine SSH-Befehlszeilensitzung?

Ist es normal, dass zwei verschiedene Ubuntu 18.04 LTS-Server so unterschiedlich sind?

Ich habe es auch am 20.04. versucht, dasselbe Problem.

Antwort1

Wenn Sie nach dem Paket suchen aufpakete.ubuntu.comSie werden feststellen, dass sich das Paket imMultiversum Repository, das in Ihrer Quellenliste fehlt.

Sie müssen es nur der Zeile in Ihrer Datei sources.list hinzufügen:

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

Antwort2

Ich habe eine Lösung gefunden.

Ich habe die funktionierende Datei „sources.list“ aus einer Azure-VM genommen und sie am Ende der vorhandenen hinzugefügt. Meine aktualisierte Datei „sources.list“ sieht also wie folgt aus:

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

verwandte Informationen