我试图在EC2上安装mscorefonts,但我似乎无法findterminal命令的魔术组合,使之发生。 我正在使用m1.medium实例和uname -a
返回Linux worker 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
在我的个人笔记本电脑上运行: sudo apt-get install -y ttf-mscorefonts-installer
工作正常,但是在我的ec2实例中,我收到以下错误消息:
The following packages have unmet dependencies: ttf-mscorefonts-installer : Depends: defoma but it is not installable Recommends: ttf-liberation but it is not installable Recommends: x-ttcidfont-conf but it is not installable
事实上,我一直无法find安装这些组件的方法。 我试图用这些修改我的/etc/apt/sources.list
文件:
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
如下所示: 在Amazon EC2 ubuntu上获得Microsoft Calibri字体 ,但是即使在运行sudo apt-get update
我仍然不成功。 我如何在EC2上安装mscore字体? 我的应用程序需要它们的function。
最终我明白了这一点。 我的解决办法是启用多元宇宙的帕。 这是我使用的脚本。
#font installation -- required to properly display fonts used in echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list sudo apt-get update # preselect yes for ms EULA echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections sudo apt-get install -y ttf-mscorefonts-installer
这在2015年1月的EC2 Ubuntu和我的本地机器上运行Ubuntu 14.04。
加入多重宇宙是关键。 这在Ubuntu 14.04上适用于我:
sudo apt-add-repository multiverse && sudo apt-get update sudo apt-get install -y ttf-mscorefonts-installer