Ubuntu 22.04.1 LTS主标题栏及菜单文本缺失问题
Hey there, sorry to hear this annoying old bug is making a comeback on your Ubuntu system—losing menu and title bar text is such a frustrating hassle! Let’s go through some solid fixes that should keep the problem from popping up again even after system updates.
彻底清理全层级字体缓存
The plainsudo fc-cache -rmight not cut it this time, since there are user-specific and GNOME-specific font caches that could be corrupted too. Run these commands one by one to wipe all stale cache data and regenerate it fresh:sudo fc-cache -rv rm -rf ~/.cache/fontconfig rm -rf ~/.cache/gdm/fontconfigAfter running these, reboot your system. This ensures both system-level and user-level font caches are fully reset.
锁定易出问题的字体/桌面组件包
If the bug keeps coming back after updates, it’s likely triggered by a specific package update (often font-related or GNOME shell components). Here’s how to lock those packages to their working versions:- First, check the current version of the suspect package (e.g.,
fonts-noto-coreis a common culprit):dpkg -l | grep fonts-noto-core - Lock the package to its current working version (replace the version string with what you got from the previous command):
sudo apt-mark hold fonts-noto-core=20201225-1ubuntu1.1 - If a future update fixes the bug, you can unlock the package with:
sudo apt-mark unhold fonts-noto-core
- First, check the current version of the suspect package (e.g.,
切换到更稳定的默认字体
Sometimes the default system font package has glitches that updates exacerbate. Switching to Ubuntu’s native stable fonts can avoid this:- Open Settings → Appearance → Fonts
- Change all font settings (Window Title, Interface, Documents, Monospace) to
UbuntuorUbuntu Mono - Restart the GNOME shell (press Alt+F2, type
rand hit Enter) or reboot your system. This ensures your system sticks to a reliable font set that’s less likely to break with updates.
排查主题/扩展冲突
Third-party GNOME themes or extensions are often hidden culprits behind UI glitches like missing text. Let’s rule them out:- Open the Extensions app and toggle off all installed extensions
- Switch back to the default Yaru theme in Settings → Appearance
- Restart the GNOME shell. If the text comes back, turn on extensions one by one to find the problematic one—either update it to the latest version or replace it with a more stable alternative.
If none of these work, you can check system logs for specific font-related errors with journalctl -xe | grep font—this might give you a clue about exactly what’s going wrong.
备注:内容来源于stack exchange,提问作者foo

