Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Upgraded from Ubuntu 11.10 to 12.04. With 11.10, I had broken fonts. I hoped to get rid of these broken fonts with 12.04 but problem has worsened. Any solution?

share|improve this question

2 Answers 2

Your font cache is probably messed up. Try clearing it.

To do the same, switch to tty1 using Ctrl+Alt+F1 and run:

$ sudo pkill -9 lightdm  # or whatever your desktop manager is
$ rm ~/.fontconfig/*
$ sudo rm /var/cache/fontconfig/*

You may want to reinstall font-packages fonts-* and ttf-* at this point:

$ sudo dpkg -l | awk -F" " '/ttf-/ {print $2} /fonts-/ {print $2}' | while read line; do apt-get purge -y $line && apt-get install $line -y; done

Finally, hit Ctrl+Alt+Del to reboot.

share|improve this answer

I had some problems with the code in (2), here's my edited version:

sudo su

then

dpkg -l | awk -F" " '/ttf-/ {print $2} /fonts-/ {print $2}' | while read line; do apt-get purge -y $line && apt-get install $line -y; done

(added the -y)

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.