在确定使用 Cinnamon 之前,我尝试过很多不同的桌面环境。
有时,我解锁电脑时会显示 XFCE 锁屏。有时它甚至会显示在我常规锁屏的上方,所以我必须输入两次密码。
我该如何摆脱 XFCE 锁屏?我已经尝试过autoremove
和apt-get purge xubuntu-desktop
,但由于Xubuntu-desktop
不再安装,我收到一条错误消息。
答案1
TL;DR:您可能想要sudo apt-get remove light-locker light-locker-settings
删除 xfce 锁屏。
您的问题是,这xubuntu-desktop
是一个元包。单独删除它对您来说没什么用。
安装时,xubuntu-desktop
您可以选择允许/拒绝安装一堆其他软件包。如果您忘记了这些软件包是什么(说实话,您怎么会记得呢?),您可以使用以下方法找出它安装的是什么
apt-cache show xubuntu-desktop
这将向您显示有关元包的大量信息。作为参考,我在 xubuntu 14.04 上的结果如下所示(注意,我添加了>>>>>
下面解释的强调行):
mitch@thapphireth:[/media/mitch/Acer]: apt-cache show xubuntu-desktop
Package: xubuntu-desktop
Priority: optional
Section: universe/metapackages
Installed-Size: 44
Maintainer: Xubuntu Developers <[email protected]>
Architecture: amd64
Source: xubuntu-meta
Version: 2.180
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Depends: alsa-base, alsa-utils, anacron, bc, ca-certificates, dmz-cursor-theme, doc-base, fonts-dejavu-core, fonts-freefont-ttf, foomatic-db-compressed-ppds, genisoimage, ghostscript-x, gtk2-engines-pixbuf, inputattach, language-selector-gnome, libasound2-plugins, libpam-systemd, libsasl2-modules, libxp6, lightdm, lightdm-gtk-greeter, memtest86+, openprinting-ppds, pm-utils, printer-driver-pnm2ppa, rfkill, software-properties-gtk, thunar, thunar-volman, tumbler, ubuntu-drivers-common, ubuntu-extras-keyring, unzip, update-manager, wireless-tools, wpasupplicant, xdg-user-dirs, xdg-user-dirs-gtk, xfce4-appfinder, xfce4-notifyd, xfce4-panel, xfce4-session, xfce4-settings, xfdesktop4, xfwm4, xkb-data, xorg, xterm, xubuntu-artwork, xubuntu-default-settings, zenity, zip
Recommends: abiword, abiword-plugin-grammar, abiword-plugin-mathview, acpi-support, app-install-data-partner, apport-gtk, apt-offline, avahi-autoipd, avahi-daemon, blueman, bluez, bluez-alsa, bluez-cups, brltty, brltty-x11, catfish, cups, cups-bsd, cups-client, cups-filters, desktop-file-utils, espeak, evince, file-roller, firefox, fonts-droid, fonts-kacst-one, fonts-khmeros-core, fonts-lao, fonts-liberation, fonts-lklug-sinhala, fonts-nanum, fonts-opensymbol, fonts-sil-abyssinica, fonts-sil-padauk, fonts-takao-pgothic, fonts-thai-tlwg, fonts-tibetan-machine, gcc, gigolo, gimp, gmusicbrowser, gnome-accessibility-themes, gnome-calculator, gnome-sudoku, gnome-system-tools, gnomine, gnumeric, gstreamer0.10-plugins-base-apps, gstreamer0.10-pulseaudio, gtk-theme-config, gucharmap, gvfs-backends, gvfs-fuse, hplip, im-config, indicator-application, indicator-messages, indicator-power, indicator-sound, kerneloops-daemon, laptop-detect, libnotify-bin, libnss-mdns, libpam-gnome-keyring, libxfce4ui-utils, light-locker, light-locker-settings, make, menulibre, mousepad, mugshot, network-manager-gnome, network-manager-pptp, network-manager-pptp-gnome, onboard, orage, parole, pastebinit, pavucontrol, pcmciautils, pidgin, pidgin-otr, policykit-desktop-privileges, printer-driver-c2esp, printer-driver-foo2zjs, printer-driver-min12xxw, printer-driver-ptouch, printer-driver-pxljr, printer-driver-sag-gdi, printer-driver-splix, ristretto, simple-scan, software-center, speech-dispatcher, system-config-printer-gnome, thunar-archive-plugin, thunar-media-tags-plugin, thunderbird, transmission-gtk, ttf-indic-fonts-core, ttf-punjabi-fonts, ttf-ubuntu-font-family, update-notifier, whoopsie, xchat, xcursor-themes, xdg-utils, xfburn, xfce4-cpugraph-plugin, xfce4-dict, xfce4-indicator-plugin, xfce4-mailwatch-plugin, xfce4-netload-plugin, xfce4-notes-plugin, xfce4-places-plugin, xfce4-power-manager, xfce4-quicklauncher-plugin, xfce4-screenshooter, xfce4-systemload-plugin, xfce4-taskmanager, xfce4-terminal, xfce4-verve-plugin, xfce4-volumed, xfce4-weather-plugin, xfce4-whiskermenu-plugin, xfce4-xkb-plugin, xubuntu-community-wallpapers, xubuntu-docs, xul-ext-ubufox
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Filename: pool/universe/x/xubuntu-meta/xubuntu-desktop_2.180_amd64.deb
Size: 3864
MD5sum: 98a121dd1a2b1ced327e0a2a7a7890a1
SHA1: 9422029424ff4f473b2d7fed9f141f1a6b69a728
SHA256: 161cfafb2e43c9c0d75a1bf71884b80ad01f6048f4e85598122d7047514ee5c2
Description-en: Xubuntu desktop system
This package depends on all of the packages in the Xubuntu desktop system
.
It is safe to remove this package if some of the desktop system packages are
not desired.
Description-md5: 25eeb522d88fba23a532953cbbf1638e
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 3y
Task: xubuntu-desktop
请注意我输入的中间的两行>>>>
。这些行是安装 xubuntu-desktop 时引入的软件包。这不包括那些软件包引入的软件包等。
现在,如果您想要彻底清除,xubuntu-desktop
您必须卸载每一个软件包,而这可能并不是您想要做的。
你最好的解决方案是这样的:
- 跑步
apt-cache show xubuntu-desktop
- 从 Depends/recommends 列表中找到您不想要的软件包。出于您的目的,删除以 开头的所有内容
xfce
可能会删除您想要的所有内容。但是其中一些软件包(如alsa-base
和)alsa-utils
很重要,您不想删除它们。也许可以将其与 的结果进行比较apt-cache show cinnamon
,然后仅删除不重叠的内容(但同样,即使这样也要小心 - 您不想删除太多内容)。 - 完成所有这些操作后,运行
sudo apt-get autoremove
以清理所有孤立依赖项
话虽如此,对于您的实际问题,您可能想要这样做sudo apt-get remove light-locker light-locker-settings
,因为这些是 xfce/xubuntu 特定的锁屏包。