如何仅保留 Xubuntu?

如何仅保留 Xubuntu?

我已经安装lubuntu-desktopxubuntu-desktopUbuntu 12.10。
有没有办法删除默认的 gnome/unuty 程序或至少删除lubuntu-desktop元包中的应用程序,这样我就可以获得类似 Xubuntu 的系统?

答案1

这里详述的技术往往适用于此。

正如那里所述,它可能会导致故障,即您的 Ubuntu 系统无法启动或无法正常工作。它不太可能导致数据丢失。(也就是说,如果出现问题,您仍然应该能够恢复所需的任何文档或其他重要文件并重新安装 Ubuntu。)我的理解是,此过程对大多数人来说都很有效,而且问题很少发生。

您只安装了 Ubuntu、Lubuntu 和 Xubuntu 软件包,并且想要保留 Xubuntu,版本是 12.10,因此只需运行这两个命令就足够了:

sudo apt-get remove account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-google account-plugin-icons account-plugin-identica account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu aisleriot apg appmenu-gtk appmenu-gtk3 appmenu-qt apturl apturl-common bamfdaemon baobab bluez-gstreamer branding-ubuntu brasero brasero-cdrkit brasero-common checkbox checkbox-qt compiz compiz-core compiz-gnome compiz-plugins-default cracklib-runtime cryptsetup-bin dconf-tools deja-dup duplicity dvd+rw-tools empathy empathy-common eog evolution-data-server evolution-data-server-common example-content folks-common freerdp-x11 gedit gedit-common geoclue geoclue-ubuntu-geoip gir1.2-accounts-1.0 gir1.2-dbusmenu-glib-0.4 gir1.2-dee-1.0 gir1.2-gdata-0.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomekeyring-1.0 gir1.2-goa-1.0 gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-gtksource-3.0 gir1.2-indicate-0.7 gir1.2-messagingmenu-1.0 gir1.2-notify-0.7 gir1.2-peas-1.0 gir1.2-rb-3.0 gir1.2-signon-1.0 gir1.2-syncmenu-0.1 gir1.2-totem-1.0 gir1.2-totem-plparser-1.0 gir1.2-ubuntuoneui-3.0 gir1.2-unity-5.0 gnome-bluetooth gnome-contacts gnome-control-center gnome-control-center-data gnome-control-center-signon gnome-desktop3-data gnome-disk-utility gnome-font-viewer gnome-icon-theme-symbolic gnome-mahjongg gnome-media gnome-menus gnome-online-accounts gnome-orca gnome-power-manager gnome-screensaver gnome-screenshot gnome-session gnome-session-bin gnome-session-canberra gnome-session-common gnome-settings-daemon gnome-system-log gnome-system-monitor gnome-terminal gnome-terminal-data gnome-user-share growisofs gstreamer0.10-gconf guile-1.8-libs gwibber gwibber-service gwibber-service-facebook gwibber-service-identica gwibber-service-twitter hwdata indicator-appmenu indicator-datetime indicator-messages indicator-power indicator-printers indicator-session intel-gpu-tools landscape-client-ui-install libaccount-plugin-1.0-0 libaccounts-glib0 libaccounts-qt1 libatk-adaptor libatk-adaptor-data libaudio2 libavahi-gobject0 libbamf3-0 libboost-date-time1.49.0 libbrasero-media3-1 libcamel-1.2-40 libcanberra-gtk-module libcanberra-gtk0 libcanberra-pulse libclutter-1.0-0 libclutter-1.0-common libclutter-gst-1.0-0 libclutter-gtk-1.0-0 libcmis-0.2-2 libcogl-common libcogl-pango0 libcogl9 libcompizconfig0 libcrack2 libcrypt-passwdmd5-perl libcryptsetup4 libcurl3-nss libdbusmenu-qt2 libdecoration0 libdee-1.0-4 libdiscid0 libdmapsharing-3.0-2 libebackend-1.2-5 libebook-1.2-14 libecal-1.2-15 libedata-book-1.2-15 libedata-cal-1.2-18 libedataserver-1.2-17 libexempi3 libexttextcat-1.0-0 libexttextcat-data libfolks-eds25 libfolks-telepathy25 libfolks25 libfreerdp-plugins-standard libfreerdp1 libgail-common libgail18 libgdata-common libgdata13 libgexiv2-1 libglew1.8 libglewmx1.8 libgmime-2.6-0 libgnome-control-center1 libgnome-desktop-3-4 libgnome-media-profiles-3.0-0 libgnome-menu2 libgnomekbd-common libgnomekbd8 libgoa-1.0-0 libgoa-1.0-common libgpgme11 libgpod-common libgpod4 libgtksourceview-3.0-0 libgtksourceview-3.0-common libgtkspell-3-0 libgweather-3-1 libgweather-common libgwibber-gtk3 libgwibber3 libhyphen0 libjs-jquery liblircclient0 liblouis-data liblouis2 liblvm2app2.2 libmessaging-menu0 libmetacity-private0a libmission-control-plugins0 libmng1 libmtp-common libmtp-runtime libmtp9 libmusicbrainz5-0 libmx-1.0-2 libmx-bin libmx-common libmysqlclient18 libmythes-1.2-0 libneon27-gnutls libnux-3.0-0 libnux-3.0-common liboauth0 libpackagekit-glib2-14 libpam-freerdp libpeas-1.0-0 libpeas-common libprotobuf7 libprotoc7 libproxy1-plugin-gsettings libproxy1-plugin-networkmanager libpth20 libpwquality1 libpython3.2 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtwebkit4 libquvi-scripts libquvi7 libraw5 libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge libreoffice-gnome libreoffice-gtk libreoffice-help-en-us libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-presentation-minimizer libreoffice-presenter-console libreoffice-style-human libreoffice-style-tango libreoffice-writer librest-0.7-0 librhythmbox-core6 librsync1 libsgutils2-2 libsignon-extension1 libsignon-glib1 libsignon-plugins-common1 libsignon-qt1 libssh-4 libstlport4.6ldbl libsync-menu1 libsyncdaemon-1.0-1 libtelepathy-farstream2 libtelepathy-logger2 libtimezonemap1 libtotem-plparser17 libtotem0 libubuntuoneui-3.0-1 libufe-xidgetter0 libunity-core-6.0-5 libunity-misc4 libunity-protocol-private0 libunity-webapps0 libunity9 libvncserver0 libwacom-common libwacom2 libwmf0.2-7-gtk libzeitgeist-1.0-1 light-themes lightdm-remote-session-freerdp lightdm-remote-session-uccsconfigure linux-headers-generic-pae mcp-account-manager-uoa media-player-info metacity-common mousetweaks mysql-common nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share notify-osd notify-osd-icons nux-tools obexd-client overlay-scrollbar overlay-scrollbar-gtk2 overlay-scrollbar-gtk3 plymouth-theme-ubuntu-logo protobuf-compiler pulseaudio-module-bluetooth pulseaudio-module-gconf python-apport python-configglue python-gnupginterface python-mako python-markupsafe python-problem-report python-protobuf python-pyinotify python-qt4 python-qt4-dbus python-simplejson python-sip python-twisted-names python-ubuntuone-client python-ubuntuone-control-panel python-ubuntuone-storageprotocol python-uno python-zeitgeist python3-brlapi python3-crypto python3-httplib2 python3-louis python3-lxml python3-oauthlib python3-pyatspi2 python3-pycurl python3-speechd qdbus qt-at-spi remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc remote-login-service rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune rhythmbox-plugin-zeitgeist rhythmbox-plugins rhythmbox-ubuntuone seahorse session-migration shotwell signon-keyring-extension signon-plugin-oauth2 signon-plugin-password signon-ui signond sni-qt ssh-askpass-gnome syslinux syslinux-common syslinux-legacy telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut thin-client-config-agent thunderbird-gnome-support totem totem-common totem-mozilla totem-plugins ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-mono ubuntu-settings ubuntu-sounds ubuntu-sso-client-qt ubuntu-system-service ubuntu-wallpapers ubuntu-wallpapers-quantal ubuntuone-client ubuntuone-client-gnome ubuntuone-control-panel ubuntuone-control-panel-qt ubuntuone-couch udisks unity unity-asset-pool unity-common unity-greeter unity-lens-applications unity-lens-files unity-lens-gwibber unity-lens-music unity-lens-photos unity-lens-shopping unity-lens-video unity-scope-gdocs unity-scope-musicstores unity-scope-video-remote unity-services unity-webapps-common unity-webapps-service uno-libs3 ure usb-creator-common usb-creator-gtk vino wodim xdiagnose xfonts-mathml xul-ext-unity xul-ext-websites-integration zeitgeist zeitgeist-core zeitgeist-datahub && sudo apt-get install xubuntu-desktop && sudo /usr/lib/lightdm/lightdm-set-defaults -g lightdm-gtk-greeter
sudo apt-get remove ace-of-penguins audacious audacious-plugins audacious-plugins-data chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg cracklib-runtime elementary-icon-theme galculator gdebi gdebi-core gecko-mediaplayer giblib1 gir1.2-notify-0.7 gnome-desktop-data gnome-disk-utility gnome-icon-theme-full gnome-icon-theme-symbolic gnome-mplayer gnumeric gnumeric-common gnumeric-doc gpicview guvcview hardinfo libaacs0 libass4 libaudclient2 libaudcore1 libaudio2 libavcodec53 libavformat53 libavutil51 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcolamd2.7.1 libcompfaceg1 libcrack2 libcue1 libdca0 libdirectfb-1.2-9 libdiscid0 libdvdnav4 libdvdread4 libenca0 libept1.4.12 libfaad2 libfluidsynth1 libfm-data libfm-gtk-bin libfm-gtk-data libfm-gtk3 libfm3 libgif4 libgmlib0 libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgpgme11 libgpod-common libgpod4 libgsm1 libguess1 libid3tag0 libimlib2 liblircclient0 libmenu-cache1 libmms0 libmodplug1 libmowgli2 libmp3lame0 libmpg123-0 libmtp-common libmtp-runtime libmtp9 libmusicbrainz3-6 libneon27-gnutls libobrender27 libobt0 libonig2 libopts25 libpisock9 libpostproc52 libpth20 libpwquality1 libresid-builder0c2a libschroedinger-1.0-0 libsdl1.2debian libsgutils2-2 libsidplay2 libswscale2 libts-0.0-0 libuniconf4.6 libva1 libvdpau1 libvpx1 libwebcam0 libwvstreams4.6-base libwvstreams4.6-extras libxvidcore4 lm-sensors lp-solve lubuntu-artwork lubuntu-artwork-12-10 lubuntu-core lubuntu-default-settings lubuntu-desktop lubuntu-icon-theme lubuntu-lxpanel-icons lubuntu-software-center lxappearance lxappearance-obconf lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin lxrandr lxsession lxsession-data lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint ntp obconf openbox openbox-themes pcmanfm plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-support python-xklavier scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic transmission tsconf uvcdynctrl uvcdynctrl-data wvdial xfonts-100dpi xpad && sudo apt-get install xubuntu-desktop

笔记:如下所述,这仅适用于 Ubuntu 12.10 (Quantal)。如果你使用的是 12.04,请转到这里。如果你使用的是 11.10,请转到这里。如果你使用的是 10.04,请转到这里

13.04 发布后,可能不再指向 12.10 的正确命令(但如果没有,您应该能够去那里并单击链接以获取 12.10 版本)。

记住:

  • 您无需运行命令来删除 Kubuntu 或 Edubuntu,因为您没有这些。

  • 这里引用的命令适用于 Ubuntu 12.10。

  • 该页面通常有相关的命令最新的稳定版本。目前是 Ubuntu 12.10,但对于想要对早期版本(或更高版本发布后)执行此操作的人来说,导航到该站点上的正确页面非常重要。一旦 Ubuntu 13.04 发布,就需要导航到 12.10 链接才能查看此处引用的命令。

  • 如果你对这些命令的工作原理感兴趣,请参见:

    它们不只是删除软件包。它们还确保xubuntu-desktop如果软件包因软件包卸载而被删除,则重新安装该软件包,这可能作为apt-get依赖关系解析的一部分发生。

    (因此理论上最好将这些命令替换apt-getaptitudeaptitude 有时比 更好地解决依赖关系apt-get,但我不推荐它,因为我认为这还没有经过测试,而且这种方法的有效性可能比大多数包管理行为更依赖于微妙之处。)

    这就是为什么sudo apt-get install xubuntu-desktop出现在这些命令末尾的原因。您也会注意到sudo /usr/lib/lightdm/lightdm-set-defaults -g lightdm-gtk-greeter第一个命令末尾的。这将配置登录屏幕,使其正确地作为 Xubuntu 登录屏幕运行。

来源: 回到纯净的 Xubuntu经过Ubuntu猫(中的一个psychocats.net 教程

相关内容