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.
Open up your Terminal under Applications -> Accessories ->Terminal and run:
sudo apt-get remove ttf-mscorefonts-installer
Download This script (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 the 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:
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
In the same terminal windows run the script:
Source : friendlytechninja.com