
我嘗試使用此處的 ubuntu 安裝程式腳本安裝網頁測試代理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 命令列會話執行此操作?
兩個不同的 Ubuntu 18.04 LTS 伺服器差異如此之大,這正常嗎?
我也在20.04上嘗試過,同樣的問題。
答案1
如果您在以下位置搜尋該包軟體包.ubuntu.com你會注意到包裹在多重宇宙 儲存庫,您的sources.list中缺少它。
您只需將其新增至您的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 虛擬機器中取得了正在工作的sources.list,並將其新增至現有虛擬機器的末尾,因此我更新後的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
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