Ubuntu 18.04 E: 'ttf-mscorefonts-installer' 패키지에 설치 후보가 없습니다.

Ubuntu 18.04 E: 'ttf-mscorefonts-installer' 패키지에 설치 후보가 없습니다.

여기에서 우분투 설치 프로그램 스크립트를 사용하여 webpagetest 에이전트를 설치하려고 합니다.https://github.com/WPO-Foundation/wptagent-install

새로운 Azure Ubuntu 18.04 LTS 이미지에서는 문제 없이 작동합니다.

그러나 새로운 VPSCity Ubuntu 18.04 LTS 이미지(NZ에 있음)에 설치해야 합니다. 설치 프로그램을 실행하면 다음과 같이 실패합니다.

$ 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 명령줄 세션을 통해 이 작업을 어떻게 수행합니까?

두 개의 서로 다른 Ubuntu 18.04 LTS 서버가 이렇게 다른 것이 정상인가요?

나는 또한 같은 문제인 20.04에서도 시도했습니다.

답변1

패키지를 검색하시면packages.ubuntu.com패키지가 다음 위치에 있다는 것을 알 수 있습니다.다중우주 저장소, 이는 source.list에 없습니다.

source.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는 다음과 같습니다.

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

관련 정보