在Ubuntu上安装msttcorefonts


13

我正在用称为PrinceXML的东西生成PDF ,看来它需要一个名为: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

如何安装此软件包?

Answers:


8

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

1
archive.ubuntu.com将为您提供最近的镜像(而不是us.archive.ubuntu.com将为您提供美国最近的镜像。)
tu-Reinstate Monica-dor duh,2016年

1
此外,现在也有可信赖的安全存储库。我已经编辑了答案以反映这些。
tu-Restate Monica-dor duh,2016年

10

业力似乎已经改变。没有包装msttcorefonts了。

请使用ttf-mscorefonts-installerMultiverse存储库中的软件包。

如何启用Mutliverse存储库,请参见此处

然后安装:

   sudo apt-get install ttf-mscorefonts-installer

从技术上讲,该软件包不包含字体,而是自动下载并安装它们-因此名称会更改。


1
大!有趣的是,ttf-mscorefonts-installer多重宇宙仓库中也没有,但是运行旧命令就可以了。
JP Silvashy


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.