Howto: Fix ttf-mscorefonts-installer problems in Ubuntu 9.10 Karmic Koala
Most of the people that installed the new Ubuntu 9.10 Karmic Koala and then tried to install the ubuntu-restricted-extras quickly found that any time after that when installing a package via CLI/Software Center/Synaptic Package Manager they got an error in reference to ttf-mscorefonts-installer (3.0).
I'm not really sure why it's can't resolve the host, but the easiest way to fix this little problem is to simple uninstall the ttf-mscorefonts-installer, but now you're thinking well maybe I want the Microsoft fonts for cross-platform compatibility reason, well I've got my own little script that does that for you too.
Step 1
Open up your Terminal under Applications -> Accessories ->Terminal and run:
sudo apt-get remove ttf-mscorefonts-installer
Step 2
Download my script here (you'll have to unzip it to get to the bash script), by default it's not an executable, which we will amend in a second. In order to run my script open a Terminal and navigate to the directory the file is in (i recommend putting it on the Desktop) as shown in my example:
cd ~/Desktop/
Now run the following command to make the file executable:
sudo chmod +x msfonts
Note: You may need to install cabextract, as it's one of the programs I use in my script. In your Terminal run:
sudo apt-get install cabextract
Step 3
In the same terminal windows run the script:
./msfonts
Note: My script is pretty basic as you can see and may take sometimes to download all the files depending on your connection. It basically get's the .exe's that hold the fonts extracts, renames and copies the fonts into the appropriate directory on your system, which is /usr/share/fonts/truetype/mscorefonts/ and now you can see the fonts when you open up Open Office Writer.
Let's hope the package managers notice this problem soon, because I have no doubt in my mind that is is going to really annoy a lot of people!
Note: My fix works most of the time, but I've got a few emails saying it didn't so I've directed them to follow this post
If you liked this guide please comment and subscribe.
Edit: Made a quick correction in Step 2 making the file an executable, thanks FXB for pointing that out.
Edit: Made a note in Step 3 to make sure you have cabextract, otherwise my script wont work.
Edit: Just so people know you can read/do what my script actually does manually...Basically go download the .exe extract the font, rename it and then move it too the correct place. It's that simple.
Related posts:
December 29th, 2009 - 23:03
cheers mate! gracias!
December 30th, 2009 - 18:51
thanks dude. those errors had been driving me crazy.
December 31st, 2009 - 12:32
Thanks very much !
January 3rd, 2010 - 12:22
works like a charm………THANKS!!!!!!
January 3rd, 2010 - 14:29
thanks man, i’m a noob and it worked for me
January 6th, 2010 - 02:47
thank you! It works well.
January 7th, 2010 - 15:24
Thank you very much. I appreciate it.
January 7th, 2010 - 22:58
superb, works like a charm. love the step by step, and the script is clear enough to be able to understand what it’s doing
January 8th, 2010 - 00:53
Worked for me! Thanks!
January 9th, 2010 - 21:52
Thanks a million! Worked like a charm!
January 11th, 2010 - 05:00
Who da man? YOU da man!! I was sick and tired of struggling with this!
January 26th, 2010 - 14:17
many many thanks
February 1st, 2010 - 08:21
Very useful ! It works very good, even if you have a proxy !
February 14th, 2010 - 10:35
well thanks a lot dude.
your idea works.
well….my college has proxy server which denied downloading from sourceforge.net
so i just read ur file and did all coping manually…..and it works……
thanks a lot again.
March 18th, 2010 - 18:18
If you are dual booting your system with Windows simply execute the following command in terminal
sudo cp /media/C/Windows/Fonts/*.ttf /usr/share/fonts/truetype/msttcorefonts/
where, Replace “/media/C” by the path to your windows installation partition.
….and of-course mount the windows partition through file browser before.
March 21st, 2010 - 14:04
ottimo, grazie, funziona alla perfezione
April 9th, 2010 - 23:06
You got a simple and cool way of doing complicated things. I like your solution.
April 9th, 2010 - 23:12
also how do i get these fonts into browser(Firefox), i dont see them in my firefox.
April 10th, 2010 - 01:12
I would have though Firefox would pull from the systems fonts, but I’d recommend you do a search for that. Best of luck
May 5th, 2010 - 10:15
awesome, it's solved my problem, thanks
July 12th, 2010 - 16:29
you're awesome for doing this and posting it. Eventually I will learn how to do these things too, and can post tons of stuff as well with all of the ideas that I have!
Great job!