重装ubuntu-desktop、误装Gnome后Ubuntu桌面界面不符预期求助
Hey there, let's get your Ubuntu desktop back to the familiar setup you had before! It sounds like you ended up with a plain vanilla GNOME session instead of Ubuntu's customized desktop environment, which is why you're seeing those annoying differences like the non-purple terminal and wonky top-panel icons. Here's how to fix each issue step by step:
1. Reinstall the Full Ubuntu Desktop Package
First, make sure you have all of Ubuntu's default custom components installed. Open a terminal (press Ctrl+Alt+T if you can't find it) and run:
sudo apt update && sudo apt install --reinstall ubuntu-desktop
This package includes everything that makes Ubuntu's desktop unique—from the terminal theme to the system icon layouts.
2. Set Ubuntu's Custom GNOME Style as Default
Vanilla GNOME uses a different CSS theme, which is why your top panel looks off. Reset the default GNOME shell theme to Ubuntu's version:
sudo update-alternatives --config gdm3.css
When prompted, select the option that points to /usr/share/gnome-shell/theme/ubuntu.css (it'll be labeled something like Ubuntu GNOME Shell theme).
3. Restore the Purple Terminal Theme
Getting that iconic purple terminal back is easy:
- Open the terminal, go to
Edit > Preferences - Switch to the
Profilestab, select your default profile (usually "Unnamed") - Click the
Colorstab, then pickUbuntufrom theBuilt-in schemesdropdown - Click
Closeto save changes
If you want a quick reset via command line instead, run:
dconf reset -f /org/gnome/terminal/
This will wipe any custom terminal settings and revert to Ubuntu's default purple theme.
4. Fix Top-Panel System Icons (WiFi, Volume, etc.)
Ubuntu uses specific extensions to handle system tray icons correctly. Install the required extensions with:
sudo apt install gnome-shell-extension-ubuntu-dock gnome-shell-extension-appindicator
After installing, restart the GNOME shell (press Alt+F2, type r, and hit Enter) or reboot your system. Your WiFi, volume, and other system icons should now look and behave like they did before.
5. Select the Correct Session at Login
Finally, when you reboot and get to the login screen, click the small gear icon next to your username. Choose Ubuntu (not "GNOME" or "GNOME on Xorg") before entering your password. This ensures you load Ubuntu's customized desktop session every time.
Once you've followed these steps, your desktop should be back to the setup you're used to!
内容的提问来源于stack exchange,提问作者Amir

