Install mscorefonts to ec2
I am trying to install mscorefonts on ec2, however I cannot find a magic combination of terminal commands to make this happen. I am using m1.medium instance and uname -a
returnsLinux 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
Works on my personal laptop: sudo apt-get install -y ttf-mscorefonts-installer
Works fine, however the following error appears on my ec2 instance:
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
indeed, I could not find a way to install any of these components. I tried to modify the file /etc/apt/sources.list
like this:
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
as below: Getting Microsoft Calibri font on Amazon EC2 ubuntu , but even after running sudo apt-get update
I still have no success. How do I install mscore fonts on ec2? My application needs them to function.
source to share
I finally figured it out. My solution was to enable multiverse ppa. Here is the script I used.
#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
This has been running on EC2 ubuntu since Jan 2015 and my local machine is running ubuntu 14.04.
source to share