Terminal displays strange characters instead of prompt after upgrade from Xununtu 18.04 to 20.04

Solution 1:

Delete your ~/.cache/fontconfig and generate the fontcache again:

rm -rf ~/.cache/fontconfig
fc-cache -r -v

That most likely will help. If not, there is a problem with the systemwide installed font files.

  • Check in the terminal preferences what font is in use for the terminal
  • Purge and reinstall that font, or try a different font

Actually, after an upgrade, do not hesitate to fully wipe the ~/.cache folder. It is cache, i.e., files aimed for speedier loading, and will be recreated as you continue to use the updated system.