Answers:
在终端中输入:
sudo apt purge --remove lxde*; sudo apt autoremove -y
要么
sudo apt purge --remove lubuntu-*; sudo apt autoremove -y
会的。
或打开软件中心,找到软件包lxde
并卸载。
lxde
是一个元软件包,安装它会安装所有lxde文件,删除它会删除所有已安装文件。
apt-get autoremove
稍后再运行。
删除元软件包只会删除一些内容,而不会全部删除。您必须单独删除LXDE随附的所有程序。我遵循了上面有关使用apt-get的最高评价。但是之后,我仍然有pcmanfm,openbox,lxterminal等。
我发现的最佳说明位于:http : //www.psychocats.net/ubuntu/puregnome
sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman catfish chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg elementary-icon-theme fonts-lyx galculator gdebi gdebi-core gecko-mediaplayer giblib1 gnome-desktop-data gnome-icon-theme-full gnome-mplayer gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview gtk2-engines-pixbuf guvcview hardinfo indicator-application-gtk2 leafpad libaacs0 libabiword-2.9 libass4 libaudclient2 libaudcore1 libavcodec53 libavformat53 libavutil51 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcolamd2.7.1 libcompfaceg1 libcue1 libdca0 libdirectfb-1.2-9 libenca0 libept1.4.12 libexo-1-0 libexo-common libexo-helpers libfaad2 libfluidsynth1 libfm-data libfm-gtk-bin libfm-gtk-data libfm-gtk3 libfm3 libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgmlib0 libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgsm1 libgtkmathview0c2a libgtkspell0 libguess1 libid3tag0 libimlib2 libindicate-gtk3 libjpeg-progs libjpeg-turbo-progs liblink-grammar4 libloudmouth1-0 libmenu-cache1 libmms0 libmodplug1 libmowgli2 libmp3lame0 libmpg123-0 libmusicbrainz3-6 libnet-dbus-perl libobrender27 libobt0 libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libpostproc52 librarian0 libresid-builder0c2a libschroedinger-1.0-0 libsdl1.2debian libsidplay2 libswscale2 libtidy-0.99-0 libtie-ixhash-perl libts-0.0-0 libuniconf4.6 libva1 libvdpau1 libvpx1 libvte-common libvte9 libwebcam0 libwv-1.2-4 libwvstreams4.6-base libwvstreams4.6-extras libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util6 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxvidcore4 lightdm-gtk-greeter link-grammar-dictionaries-en 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 pidgin pidgin-data pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-support python-xklavier rarian-compat scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends transmission tsconf uvcdynctrl uvcdynctrl-data wvdial xfburn xfce-keyboard-shortcuts xfce4-notifyd xfce4-power-manager xfce4-power-manager-data xfconf xfonts-100dpi xpad xscreensaver xscreensaver-data && sudo apt-get install ubuntu-desktop && sudo /usr/lib/lightdm/lightdm-set-defaults -g unity-greeter
遵循删除Lubuntu的命令。
我意识到这是一个古老的问题,但仍然与偶然发现该问题的人有关。
在下面的代码中,将PACKAGENAME替换为您的软件包。
进行备份!
在尝试以下任何操作之前,请先尝试以下内容:
sudo apt-get --purge autoremove PACKAGENAME
对于LXDE:
sudo apt-get --purge autoremove lxde
对于Lubuntu-Desktop:
sudo apt-get --purge autoremove lubuntu-desktop
如果这行得通,那么您就不需要其余的了。
我想出的最彻底的方法是完全删除一个软件包及其依赖项,再加上所有配置,包括依赖项的配置,并进行一些清理工作:
以下过程可以删除您可能仍想要/需要的东西。如果发生这种情况,您一定会注意到并且应该能够根据需要重新安装它们。进行备份!
在按下“ Y”之前,还应密切注意列出要删除的内容
使用所有这些,您可以通过在清除之前添加--simulate或-s来模拟将发生的情况,如下所示:
sudo apt-get --simulate --purge PACKAGENAME
步骤1:清除主程序包(如果您在上面运行--purge autoremove,则不需要此程序):
sudo apt-get purge PACKAGENAME
第二步:选择其他要清除的东西...
选项1:清除依赖并推荐(有点危险):
sudo apt-get purge $(apt-cache depends PACKAGENAME | grep -E 'Depends || Recommends' | awk '{ print $2 }' | tr '\n' ' ')
选项2:仅清除依赖项(不那么危险):
sudo apt-get purge $(apt-cache depends PACKAGENAME | grep Depends | awk '{ print $2 }' | tr '\n' ' ')
选项3:清除所有内容(最危险):
sudo apt-get purge $(apt-cache depends PACKAGENAME | awk '{ print $2 }' | tr '\n' ' ')
第三步:清理:
sudo apt-get autoremove
sudo apt-get update
sudo apt-get check
sudo apt-get -f install
sudo apt-get autoclean
每当我添加“ DE”并想返回时,我都会这样做。就在最近,我在GNOME上使用了它,它甚至修复了以下事实,即仅在之后使用autoremove清除Gnome仍然会使我的GRUB保持不变。这对于meta包尤其有效。我在最后运行了最后一个命令“ sudo apt-get -f install”,以检查可能的损坏软件包,并在一次全部更改后对其进行修复。
如果您已经运行apt-get install lubuntu-desktop来添加软件包,那么您将需要执行以下操作,因为仅清除lubuntu-desktop并运行自动删除功能并不能完全删除所有内容,而是留下了“ Lubuntu”登录时在显示管理器中选择“”选项:
从桌面注销,然后按Ctrl + Alt + F1,然后登录到TTY1并运行以下命令。
sudo apt-get purge lubuntu-desktop
sudo apt-get purge $(apt-cache depends lubuntu-desktop | awk '{ print $2 }' | tr '\n' ' ')
sudo apt-get autoremove
sudo apt-get update
sudo apt-get check
sudo apt-get -f install
sudo apt-get autoclean
重新开始
sudo shutdown -r now
如果您运行过apt-get install lxde以添加软件包,并且即使在自动删除后仍遇到剩余软件包的问题(如lubuntu-desktop所示),您可以运行与上述相同的命令,但将“ lubuntu-desktop”替换为“ lxde”,但是我无法确认是否需要这样做。
sudo apt-get --purge autoremove lubuntu-desktop
以往任何时候都足以从Lubuntu ISO安装在系统上?如果通过lubuntu-desktop
在现有系统上安装软件包来安装LXDE,则它可以工作。如果通过使用或在或(我刚刚在14.04系统上对此进行了测试)中的名称添加任务来安装任务来安装它,则无法使用。而且我真的不明白为什么它可以在通过实时CD安装的系统中工作。用户可以一直删除,而不会导致其他大多数软件包被自动删除。lubuntu-desktop
tasksel
^
apt
apt-get
ubuntu-desktop
我将dpkg.log
查看所有“安装”操作,
awk '$3 == "install"' /var/log/dpkg.log | less
搜索lxde
并获取所有靠近时间戳的软件包。你可能需要寻找到旧的日志太(dpkg.log.1
,dpkg.log.2.gz
,等)。
另外,如果登录时仍具有LXDE选项,请在终端中运行以下两个命令
cd /usr/share/xsessions
然后
sudo rm LXDE.desktop openbox.desktop
sudo tasksel
问候贾米尔
要从Ubuntu 18.10完全删除lubuntu-desktop,请使用此要点
#!/bin/bash
# extracted list form /var/log/dpkg.log.*
# https://packages.ubuntu.com/bionic/amd64/lubuntu-desktop
sudo apt-get purge --remove -y \
gnumeric-common \
libgsf-1-common \
libgsf-1-114 \
libgoffice-0.10-10-common \
libgoffice-0.10-10 \
pxlib1 \
gnumeric \
libindicator7 \
libappindicator1 \
libbonobo2-common \
liborbit-2-0 \
libbonobo2-0 \
libglade2-0 \
libgnome-keyring-common \
libgnome-keyring0 \
libido-0.1-0 \
lightdm \
sgml-base \
libvo-aacenc0 \
libvo-amrwbenc0 \
abiword-common \
libchamplain-0.12-0 \
libchamplain-gtk-0.12-0 \
libwv-1.2-4 \
libabiword-3.0 \
libloudmouth1-0 \
libots0 \
libtelepathy-glib0 \
libtidy5 \
abiword \
link-grammar-dictionaries-en \
minisat \
liblink-grammar5 \
abiword-plugin-grammar \
audacious-plugins-data \
libaudcore5 \
libaudgui5 \
libaudtag3 \
libcue1 \
libfluidsynth1 \
libmms0 \
libmodplug1 \
libsidplayfp4 \
audacious-plugins \
audacious \
libxfce4util-common \
libxfce4util7 \
libxfce4panel-2.0-4 \
libxfce4ui-common \
xfconf \
libxfconf-0-2 \
libxfce4ui-2-0 \
xfce4-notifyd \
lubuntu-icon-theme \
gir1.2-appindicator3-0.1 \
blueman \
xml-core \
sgml-data \
docbook-xml \
libfcitx-utils0 \
libfcitx-config4 \
libfcitx-core0 \
libgettextpo0 \
fcitx-bin \
fcitx-data \
libpresage-data \
libpresage1v5 \
fcitx-modules \
fcitx \
fcitx-config-common \
libfcitx-gclient1 \
fcitx-config-gtk \
fcitx-config-gtk2 \
fcitx-frontend-all \
fcitx-module-dbus \
fcitx-frontend-gtk2 \
fcitx-frontend-gtk3 \
fcitx-frontend-qt4 \
libfcitx-qt5-1 \
fcitx-frontend-qt5 \
fcitx-module-kimpanel \
fcitx-module-lua \
fcitx-module-x11 \
fcitx-ui-classic \
libffmpegthumbnailer4v5 \
ffmpegthumbnailer \
freepats \
galculator \
gconf2-common \
libgconf-2-4 \
gconf-service-backend \
gconf-service \
gconf2 \
gdebi-core \
gdebi \
libgeoclue0 \
libnm-util2 \
libnm-glib4 \
geoclue \
geoclue-ubuntu-geoip \
libimlib2 \
giblib1 \
libuchardet0 \
libmpv1 \
gnome-mpv \
gnome-screensaver \
gnome-themes-standard \
gnumeric-doc \
gpicview \
libgssdp-1.0-3 \
libgupnp-1.0-4 \
libgupnp-igd-1.0-4 \
libnice10 \
gstreamer1.0-nice \
gtk2-engines \
gtklp \
libgucharmap-2-90-7 \
gucharmap \
libpanel-applet3 \
indicator-applet \
indicator-common \
indicator-application \
indicator-application-gtk2 \
libaccounts-glib0 \
liburl-dispatcher1 \
indicator-datetime \
liblightdm-gobject-1-0 \
indicator-keyboard \
indicator-messages \
indicator-power \
indicator-session \
leafpad \
libgnomevfs2-common \
libgnomevfs2-0 \
libgnome2-common \
libgnome-2-0 \
libgnomecanvas2-common \
libgnomecanvas2-0 \
libbonoboui2-common \
libbonoboui2-0 \
libburn4 \
libcompfaceg1 \
libde265-0 \
libept1.5.0 \
libexo-common \
libexo-helpers \
libexo-2-0 \
libexo-1-0 \
libserd-0-0 \
libsord-0-0 \
libsratom-0-0 \
liblilv-0-0 \
libmjpegutils-2.1-0 \
libmpeg2encpp-2.1-0 \
libmplex2-2.1-0 \
libofa0 \
libsoundtouch1 \
libsrtp2-1 \
libwildmidi-config \
libwildmidi2 \
libzbar0 \
gstreamer1.0-plugins-bad \
libfarstream-0.2-5 \
libfm-extra4 \
libmenu-cache-bin \
libmenu-cache3 \
libfm-data \
lxmenu-data \
libfm4 \
libfm-gtk-data \
libfm-gtk4 \
libfm-modules \
libprotobuf-c1 \
libgadu3 \
libgnomeui-common \
libgnomeui-0 \
libpango-perl \
libgtk2-perl \
libgtkmm-3.0-1v5 \
libjte1 \
libisofs6 \
libjpeg-turbo-progs \
libkeybinder0 \
libmeanwhile1 \
libobt2v5 \
libobrender32v5 \
system-tools-backends \
liboobs-1-5 \
libusb-0.1-4 \
libpisock9 \
libportaudio2 \
pidgin-data \
libzephyr4 \
libpurple0 \
libpurple-bin \
libwvstreams4.6-base \
libwvstreams4.6-extras \
libuniconf4.6 \
libunique-1.0-0 \
libunity-settings-daemon1 \
libwnck-common \
libwnck22 \
libxfce4ui-1-0 \
libxfce4util-bin \
light-locker \
light-locker-settings \
lightdm-gtk-greeter \
lightdm-gtk-greeter-settings \
lubuntu-artwork-18-04 \
lubuntu-lxpanel-icons \
lubuntu-artwork \
ttf-ubuntu-font-family \
lubuntu-default-settings \
lubuntu-default-session \
policykit-1-gnome \
gnome-system-tools \
libguvcview-2.0-2 \
guvcview \
indicator-sound \
indicator-sound-gtk2 \
lxpanel-data \
lxpanel \
lxsession-data \
lxpolkit \
xscreensaver-data \
xscreensaver \
lxlock \
lxsession-logout \
lxsession \
lxterminal \
openbox \
pcmanfm \
plymouth-theme-lubuntu-logo \
plymouth-theme-lubuntu-text \
xserver-xorg-input-synaptics \
lubuntu-gtk-core \
lxappearance \
lxappearance-obconf \
lxhotkey-core \
lxhotkey-gtk \
lxhotkey-plugin-openbox \
lxinput \
lxlauncher \
lxpanel-indicator-applet-plugin \
lxrandr \
lxsession-default-apps \
lxshortcut \
lxtask \
mtpaint \
obconf \
pavucontrol \
pidgin \
pinentry-gtk2 \
scrot \
sylpheed \
sylpheed-doc \
sylpheed-i18n \
sylpheed-plugins \
synaptic \
wvdial \
xfburn \
xfce4-power-manager-data \
xfce4-power-manager \
xfce4-power-manager-plugins \
xpad \
lubuntu-gtk-desktop \
lubuntu-desktop \
lxde-common \
openbox-lxde-session \
lxde-core \
lxhotkey-data \
mpv \
neofetch \
openbox-menu \
pastebinit \
pidgin-libnotify \
python3-pyxattr \
librarian0 \
rarian-compat \
ubuntu-touch-sounds \
unity-settings-daemon \
unity-greeter \
xfonts-100dpi \
libwebcam0 \
obsession \
phantomjs \
presage \
rtmpdump \
uvcdynctrl-data \
uvcdynctrl \
youtube-dl
sudo apt install --reinstall -y gdm3
sudo reboot