Ubuntu 16.04桌面恢复及桌面菜单缺失修复咨询
Hey there, let's tackle your two desktop-related issues one by one—here are tried-and-tested solutions that work for Ubuntu systems:
1. 如何恢复桌面?
The fix depends on what exactly went wrong with your desktop. Here are the most common scenarios:
- Desktop icons disappeared entirely (system still runs normally)
- Right-click on an empty area of your desktop, make sure the "Show Desktop Icons" option is checked.
- If right-click doesn't respond, press
Ctrl + Alt + Tto open the terminal. For Unity desktop (default on Ubuntu 16.04), run:
For GNOME desktop, run:gsettings set com.canonical.Unity.Desktop show-icons true
Log out and back in to apply the changes.gsettings set org.gnome.desktop.background show-desktop-icons true
- Whole desktop environment crashed (can't enter desktop, stuck at login screen)
- At the login screen, press
Ctrl + Alt + F1to switch to a command-line terminal, then log in with your username and password. - Reinstall the desktop environment:
- For Unity (Ubuntu 16.04 default):
sudo apt-get install --reinstall ubuntu-desktop - For GNOME:
sudo apt-get install --reinstall gnome-shell
- For Unity (Ubuntu 16.04 default):
- After installation finishes, run
sudo rebootto restart your system.
- At the login screen, press
Since Ubuntu 16.04 uses Unity by default, missing menus are usually caused by corrupted Unity panel or Compiz configurations. Try these steps:
- Reset Unity panel
Open the terminal (Ctrl + Alt + T) and run these commands one by one:
Log out and log back in—this should restore the default Unity menu setup.unity --reset-icons unity --reset - Reset Compiz configuration
Compiz is the window manager behind Unity; a broken config can break menus too:- In terminal, run:
dconf reset -f /org/compiz/ - Then restart Unity immediately with:
setsid unity
- In terminal, run:
- Reinstall Unity core components
If the above methods fail, try reinstalling key Unity packages to fix any corrupted files:
Log out and in again after the installation completes.sudo apt-get install --reinstall unity-services unity-lens-applications unity-lens-files unity-scope-home unity-scope-calculator
内容的提问来源于stack exchange,提问作者Ramiro Bravo
相关产品推荐
相关产品推荐

