如何从 Ubuntu 20.04 LTS 中删除 GNOME Shell 以从头开始安装其他桌面环境?

如何从 Ubuntu 20.04 LTS 中删除 GNOME Shell 以从头开始安装其他桌面环境?

我刚刚从ubuntu-20.04-桌面-amd64.iso
经过两天的测试,我完全不喜欢它的图形界面 - GNOME Shell。
即使安装 GNOME Flashback 也无济于事。

因此,我想从我的系统中完全删除 GNOME Shell 及其所有踪迹,而无需重新安装。
只想从头开始,就像我从最小网络启动 ISO

答案1

下面是用于删除 GNOME Shell 的一组长命令

sudo apt update
sudo apt purge adwaita-icon-theme gedit-common gir1.2-gdm-1.0 \
gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-goa-1.0 \
gnome-accessibility-themes gnome-bluetooth gnome-calculator gnome-calendar \
gnome-characters gnome-control-center gnome-control-center-data \
gnome-control-center-faces gnome-desktop3-data \
gnome-font-viewer \
gnome-initial-setup gnome-keyring gnome-keyring-pkcs11 gnome-logs \
gnome-mahjongg gnome-menus gnome-mines gnome-online-accounts \
gnome-power-manager gnome-screenshot gnome-session-bin gnome-session-canberra \
gnome-session-common gnome-settings-daemon gnome-settings-daemon-common \
gnome-shell gnome-shell-common gnome-shell-extension-appindicator \
gnome-shell-extension-desktop-icons gnome-shell-extension-ubuntu-dock \
gnome-startup-applications gnome-sudoku gnome-system-monitor gnome-terminal \
gnome-terminal-data gnome-themes-extra gnome-themes-extra-data gnome-todo \
gnome-todo-common gnome-user-docs gnome-user-docs-ru gnome-video-effects \
language-pack-gnome-en language-pack-gnome-en-base language-pack-gnome-ru \
language-pack-gnome-ru-base language-selector-gnome libgail18 libgail18 \
libgail-common libgail-common libgnome-autoar-0-0 libgnome-bluetooth13 \
libgnome-desktop-3-19 libgnome-games-support-1-3 libgnome-games-support-common \
libgnomekbd8 libgnomekbd-common libgnome-menu-3-0 libgnome-todo libgoa-1.0-0b \
libgoa-1.0-common libpam-gnome-keyring libsoup-gnome2.4-1 libsoup-gnome2.4-1 \
nautilus-extension-gnome-terminal pinentry-gnome3 yaru-theme-gnome-shell
sudo apt purge gnome-getting-started-docs gnome-getting-started-docs-ru

# 21.04 and 21.10 specifics
sudo apt purge libreoffice-style-yaru yaru-theme-icon yaru-theme-sound

# 21.10 specifics
sudo apt purge libgdm1 libgjs0g rygel librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 \
plymouth-theme-spinner plymouth-theme-ubuntu-text branding-ubuntu

sudo apt autopurge

注意:如果之前已经手动安装了 Vanilla GNOME 桌面 和sudo apt install vanilla-gnome-desktop/或 Ubuntu GNOME 桌面 和sudo apt install ubuntu-gnome-desktop/或 GNOME FlashBacksudo apt install gnome-flashback gnome-panel和/或完整 GNOME sudo apt install gnome,则必须执行以下额外的删除命令:

sudo apt purge adwaita-icon-theme geogebra-gnome gir1.2-gtd-1.0 \
gnome-accessibility-profiles gnome-applets-data gnome-audio gnome-backgrounds \
gnome-cards-data gnome-common gnome-desktop-testing gnome-dvb-daemon \
gnome-extra-icons gnome-flashback-common \
gnome-humility-icon-theme gnome-hwp-support gnome-icon-theme \
gnome-icon-theme-gartoon gnome-icon-theme-gartoon-redux \
gnome-icon-theme-gperfection2 gnome-icon-theme-nuovo gnome-icon-theme-suede \
gnome-icon-theme-yasis gnome-mime-data gnome-nds-thumbnailer \
gnome-packagekit-data gnome-panel-control gnome-panel-data \
gnome-pkg-tools gnome-recipes-data gnome-remote-desktop gnome-settings-daemon-dev \
gnome-shell-pomodoro-data gnome-software-common gnome-software-doc \
gnome-theme-gilouche gnome-video-effects-extra gnome-video-effects-frei0r \
guile-gnome2-dev guile-gnome2-glib libgnome-autoar-doc libgnomecanvas2-common \
libgnomecanvas2-doc libgnomecanvasmm-2.6-doc libgnome-panel-doc libgnome-todo-dev \
libopenrawgnome7:amd64 libopenrawgnome-dev libreoffice-gnome libxine2-gnome:amd64 \
nautilus-sendto pidgin-gnome-keyring plymouth-theme-ubuntu-gnome-logo \
plymouth-theme-ubuntu-gnome-text ubuntu-gnome-wallpapers \
ubuntu-gnome-wallpapers-trusty ubuntu-gnome-wallpapers-utopic \
ubuntu-gnome-wallpapers-xenial ubuntu-gnome-wallpapers-yakkety
sudo apt purge gnome-exe-thumbnailer
sudo apt purge slim openbox geoclue-2.0

sudo apt autopurge

然后可以使用以下命令安装任何感兴趣的桌面环境:

  • 肉桂 -sudo apt install cinnamon-desktop-environment
  • KDE 与 Kubuntu 类似 -sudo apt install kubuntu-desktop^
  • MATE 就像 Ubuntu MATE 一样 -sudo apt install ubuntu-mate-desktop^
  • 团结 -sudo apt install ubuntu-unity-desktop
  • Xfce 与 Xubuntu 一样 -sudo apt install xubuntu-desktop^

然后重新启动,选择新安装的桌面会话并登录。


注意:此方法也适用于 Ubuntu 21.04 和 21.10。

答案2

在进行最小安装后,仅使用“lxde” [/usr/sbin/lightdm文件中的条目/etc/X11/default-display-manager],不幸的是,在从 18.10 全面升级到 19.04 时,我得到了“gdm3”,并且这种情况一直持续到 20.04。最后我删除了“gdm3”。此外,我还必须使用sudo apt-get remove“gnome-shell”和“ubuntu-session”。之后,我用一个简单的sudo apt-get-autoremove.

相关内容