Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm generating PDF's with something called PrinceXML, it seems it requires a package called: msttcorefonts

I have been unable to use aptitude to get it and I recived this as an error:

$ 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

How can I get this package installed?

share|improve this question
up vote 7 down vote accepted

Update for year 2015:

Add this to (or uncomment in) /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

Then run this:

sudo apt-get update
sudo apt-get install msttcorefonts
share|improve this answer
    
Thanks for the update, this looks like it works best. – JP Silvashy Jun 12 '15 at 3:29
1  
archive.ubuntu.com will get you the nearest mirror (instead of us.archive.ubuntu.com which will get you only the nearest mirror in the US.) – tudor Jan 27 at 5:01
1  
Also, there's now trusty-security repos as well. I've edited the answer to reflect these. – tudor Jan 27 at 5:01

This seems to have changed in karmic. There is no package msttcorefonts anymore.

Use the package ttf-mscorefonts-installer from the Multiverse repository instead.

How to enable the Mutliverse repository see here.

Then install with:

   sudo apt-get install ttf-mscorefonts-installer

Technically speaking the package doesn't contain the fonts, but rather automatically downloads and installs them - hence the name change.

share|improve this answer
1  
great! funny thing is that ttf-mscorefonts-installer wasn’t in the multiverse repo either, but running the old command did the trick. – JP Silvashy Dec 1 '09 at 21:24

Enabling the multiverse (https://help.ubuntu.com/community/Repositories/Ubuntu) and then installing with msttcorefonts worked for me:

sudo apt-get install msttcorefonts

ttf-mscorefonts-installer isn't in the multiverse either

share|improve this answer

http://corefonts.sourceforge.net/

Specifically, look under the package names listed on that page itself, not on the download links.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.