Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Broken fonts after Ubuntu upgrade to 20.04
#2
You might have a font cache/config problem.
I found that

https://askubuntu.com/questions/841706/a...gible-help
https://askubuntu.com/questions/1224125/...untu-18-04

(03-07-2022, 10:32 AM)Ofnuts Wrote: Eventually upgraded my Ubuntu from 19.10 to 20.04. In the process a bunch of fonts are broken:
  • I don't remember installing these fonts from other sources (I usually keep the downloaded ZIP around)

Yea... each upgrade I got bunch of font (like 1Gb) that I did already removed, like all the font from languages that I don't even know they existed
I have a .sh for that (fix also the font cache)

Code:
#!/bin/bash
    # www.riksoft.it/wikiriks
    # Remove all oriental fonts in Mint 18 (surely OK for Ubuntu 16 as well)
    
    for i in fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lklug-sinhala fonts-guru fonts-nanum fonts-noto-cjk fonts-takao-pgothic fonts-tibetan-machine fonts-guru-extra fonts-lao fonts-sil-padauk fonts-sil-abyssinica fonts-tlwg-* fonts-lohit-* fonts-beng fonts-beng-extra fonts-gargi fonts-gubbi fonts-gujr fonts-gujr-extra fonts-kalapi fonts-lohit-gujr fonts-samyak-* fonts-noto-unhinted fonts-noto-hinted fonts-navilu fonts-nakula fonts-orya-extra fonts-pagul fonts-sahadeva fonts-sarai fonts-smc fonts-telu-extra fonts-wqy-microhei; do
      sudo apt purge -y $i
      echo
    done
    
    echo "==== Fixing font cache"
    sudo fc-cache -f -v && sudo dpkg-reconfigure fontconfig
    
    echo "==== Packages remained (each containing multiple fonts)"
    dpkg -l fonts\*|grep ^ii|awk '{print $2}'
    
    
    echo
    read -p "Press any key to close."

I also have this to clean deeper (but careful it might remove some you want to keep)

Code:
sudo apt-get remove fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lklug-sinhala fonts-guru fonts-nanum fonts-noto-cjk fonts-takao-pgothic fonts-tibetan-machine fonts-guru-extra fonts-lao fonts-sil-padauk fonts-sil-abyssinica fonts-tlwg-* fonts-lohit-* fonts-beng fonts-beng-extra fonts-gargi fonts-gubbi fonts-gujr fonts-gujr-extra fonts-kalapi fonts-lohit-gujr fonts-samyak-* fonts-navilu fonts-nakula fonts-orya-extra fonts-pagul fonts-sahadeva fonts-sarai fonts-smc fonts-telu-extra fonts-wqy-microhei

sudo apt purge fonts-kacst fonts-kacst-one \
fonts-khmeros-core fonts-lklug-sinhala \
fonts-lohit-guru fonts-guru fonts-nanum \
fonts-noto-cjk fonts-takao-pgothic \
fonts-tibetan-machine fonts-guru-extra \
fonts-lao fonts-sil-padauk fonts-sil-abyssinica \
fonts-tlwg-* && sudo apt autoremove

sudo apt remove fonts-lao fonts-lklug-sinhala fonts-sil-abyssinica fonts-sil-padauk fonts-tibetan-machine fonts-thai-tlwg
Reply


Messages In This Thread
RE: Broken fonts after Ubuntu upgrade to 20.04 - by PixLab - 03-07-2022, 11:03 AM

Forum Jump: