问题描述
我正在生成名为PrinceXML的PDF,似乎是it requires名为msttcorefonts的软件包
我一直无法使用aptitude来获取它,并且我将其作为错误接收:
$ sudo apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package msttcorefonts 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 msttcorefonts has no installation candidate
如何安装此软件包?
最佳办法
2015年更新:
将其添加到/etc/apt/sources.list中(或取消注释)
deb http://archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty-security multiverse
然后运行:
sudo apt-get update
sudo apt-get install msttcorefonts
次佳办法
业力似乎已经改变。不再有软件包msttcorefonts
。
请使用Multiverse存储库中的软件包ttf-mscorefonts-installer
。
如何启用Mutliverse存储库,请参阅here。
然后安装:
sudo apt-get install ttf-mscorefonts-installer
从技术上讲,该软件包不包含字体,而是自动下载并安装它们-因此名称会更改。
第三种办法
启用multiverse(https://help.ubuntu.com/community/Repositories/Ubuntu),然后使用msttcorefonts安装对我来说很有效:
sudo apt-get install msttcorefonts
ttf-mscorefonts-installer也不在多重宇宙中