Ubuntu 16.04 更新重启后图标全部消失,求有效恢复方案
Hey there, sorry to hear you're stuck with missing icons after updating your Ubuntu 16.04 system—total bummer when that happens! Since the Xubuntu-focused solutions didn't work, let's dive into Unity-specific fixes (Ubuntu 16.04's default desktop) that usually resolve this issue.
Step 1: Reset Unity & Compiz Configurations
Compiz (Unity's window manager) often gets glitchy after updates. Let's wipe its wonky settings:
- Open a terminal (press
Ctrl+Alt+T; if even the terminal icon is gone, useCtrl+Alt+F1to switch to a text-only TTY, then log in with your credentials) - Run this command to reset all Compiz/Unity configs:
dconf reset -f /org/compiz/ - Restart Unity to apply changes:
setsid unity - Wait 10-15 seconds—if icons don't pop back up, reboot your system:
sudo reboot
Step 2: Reinstall Icon Themes & Unity Core Components
Updates can sometimes corrupt package files. Let's refresh the default icon themes and Unity's core bits:
- First, update your package list:
sudo apt update - Reinstall Ubuntu's default icon themes:
sudo apt install --reinstall ubuntu-mono ubuntu-icon-theme - Next, refresh Unity's core packages:
sudo apt install --reinstall unity unity-tweak-tool - Reboot again to make sure all changes stick:
sudo reboot
Step 3: Fix User Directory & Desktop Icon Settings
Corrupted user config files might be hiding your icons. Let's reset those:
- First, back up your current user directory config (just in case):
cp ~/.config/user-dirs.dirs ~/.config/user-dirs.dirs.bak - Reset the user directory mappings:
xdg-user-dirs-update - Ensure Nautilus (Ubuntu's file manager) is set to show desktop icons:
gsettings set org.gnome.nautilus.desktop icons-view true - If your Unity Launcher icons are missing too, reset the launcher favorites list to defaults:
You can re-add your favorite apps later using Unity Tweak Tool.gsettings reset com.canonical.Unity.Launcher favorites
Step 4: Switch Desktop Environments (Last Resort)
If nothing else works, switching to a temporary desktop and back to Unity can fix stuck configurations:
- Install the GNOME desktop environment:
sudo apt install ubuntu-gnome-desktop - Reboot your system. At the login screen, click the gear icon in the top-right corner and select GNOME (not GNOME Classic) to log in.
- Check if icons appear here. If they do, reboot again, switch back to Unity from the login screen's gear menu, and your icons should be restored.
内容的提问来源于stack exchange,提问作者Milton

