Ubuntu 16.04自动更新后桌面故障求助:无启动器及状态栏
Hey there, I’ve run into this exact issue a few times with Ubuntu 16.04’s Unity desktop post-update—missing launcher, no top panel, uncloseable settings windows are all classic signs of messed-up Unity components or corrupted configs. Let’s walk through fixes from simplest to more thorough:
1. Quick Unity Reset (Most Likely Fix)
First, let’s reset Unity’s configuration to default. You’ll need a terminal:
- Press
Ctrl+Alt+Tto open a terminal (if that works). If not, switch to a TTY withCtrl+Alt+F1, log in with your username and password (note: password won’t show as you type—this is normal). - Run these commands one by one:
dconf reset -f /org/compiz/ setsid unity - If you used a TTY, switch back to the graphical interface with
Ctrl+Alt+F7, or just reboot withsudo rebootto apply changes fully.
2. Reinstall Unity Desktop Components
If the reset didn’t work, some Unity packages might have gotten corrupted during the update:
- In the terminal/TTY, run:
sudo apt update sudo apt install --reinstall ubuntu-desktop unity unity-tweak-tool sudo apt autoremove && sudo apt clean sudo reboot
This will refresh your package list, reinstall core desktop packages, clean up leftover files, and restart.
3. Fix Broken Package Dependencies
Updates can sometimes leave broken dependencies that break the desktop:
- Run these commands to repair dependencies and reconfigure packages:
sudo apt-get -f install sudo dpkg --configure -a sudo reboot
4. Test with a New User (Rule Out User-Specific Config Corruption)
If all above fail, the issue might be tied to your user’s config files:
- In TTY, create a new test user:
sudo adduser newtestuser sudo usermod -aG sudo newtestuser - Reboot and log in with
newtestuser. If the desktop works normally, your original user’s config is corrupted. You can either:- Copy your important files to the new user’s home directory and switch to it long-term.
- Back up and delete corrupted config folders in your original user account (e.g.,
~/.config/compiz-1/,~/.config/dconf/) then log out/in to reset them.
Quick Tip for Uncloseable Windows
If you can’t shut the settings window, open a terminal and run xkill—your cursor will turn into an X; click the stuck window to force-close it.
内容的提问来源于stack exchange,提问作者J. Lehmann

