首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何删除Lubuntu桌面环境并再次回到默认状态?

如何删除Lubuntu桌面环境并再次回到默认状态?
EN

Ask Ubuntu用户
提问于 2015-11-16 17:28:06
回答 1查看 3.8K关注 0票数 0

我对Ubuntu有意见。它总是从低的图形设置开始,并且运行缓慢。

  1. 我安装了Lubuntu桌面环境,然后我意识到我不喜欢它,所以我尝试删除它。我可能将SeatDefaults设置为空白或: user-session=ubuntu greeter=unity
  2. 我怎么把它放回Ubuntu呢?我不记得我所做的所有改变,我不知道如何修复它们。我不想丢失我的应用程序或文档。

编辑:运行Nathan建议的代码后,我得到以下输出

代码语言:javascript
复制
sudo apt-get purge --auto-remove abiword abiword-commonabiword-plugin-grammar abiword-plugin-mathview  ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg  elementary-icon-theme esound-common galculator gdebi gdebi-core  gecko-mediaplayer giblib1 gnome-icon-theme-full gnome-mplayer gnome-system-tools  gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview  gtk2-engines-pixbuf guvcview hardinfo indicator-status-provider-pidgin leafpad  libaacs0 libabiword-2.9 libaudclient2 libaudcore1 libaudiofile1 libbinio1ldbl  libbluray1 libbs2b0 libcddb2 libcompfaceg1 libcue1 libencode-locale-perl  libept1.4.12 libesd0 libexo-1-0 libexo-common libexo-helpers  libfile-listing-perl libfluidsynth1 libfm-data libfm-gtk-data libfm-gtk1 libfm1  libfont-afm-perl libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgmlib0  libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgringotts2  libgsf-1-114 libgsf-1-common libgtkmathview0c2a libguess1 libhtml-form-perl  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl  libhttp-negotiate-perl libid3tag0 libimlib2 libio-socket-inet6-perl  libio-socket-ssl-perl libjpeg-progs libjpeg-turbo-progs liblink-grammar4  libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl  libmailtools-perl libmcrypt4 libmenu-cache1 libmowgli2 libmpg123-0  libnet-dbus-perl libnet-http-perl libnet-ssleay-perl libobrender27 libobt0  libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libresid-builder0c2a  libsidplay2 libsocket6-perl libtar0 libtidy-0.99-0 libtie-ixhash-perl  libtimedate-perl libuniconf4.6 liburi-perl libvdpau1 libwebcam0 libwv-1.2-4  libwvstreams4.6-base libwvstreams4.6-extras libwww-perl libwww-robotrules-perl  libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfconf-0-2  libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1  lightdm-gtk-greeter link-grammar-dictionaries-en lm-sensors lubuntu-artwork  lubuntu-artwork-12-04 lubuntu-core lubuntu-default-settings lubuntu-desktop  lubuntu-icon-theme lubuntu-software-center lxappearance lxappearance-obconf  lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin  lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint  ntp obconf openbox openbox-themes osmo pcmanfm pidgin pidgin-data  pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo  plymouth-theme-lubuntu-text python-pysqlite2 python-xklavier scrot sylpheed  sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends  transmission ttf-lyx uvcdynctrl uvcdynctrl-data wvdial xfburn  xfce-keyboard-shortcuts xfce4-power-manager xfce4-power-manager-data xfconf  xfonts-100dpi xpad xscreensaver xscreensaver-dat
 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 Package 'indicator-status-provider-pidgin' is not installed, so not                       removed
 Package 'libfm1' is not installed, so not removed
 Package 'libmenu-cache1' is not installed, so not removed
 Package 'libxfce4util4' is not installed, so not removed
 E: Unable to locate package abiword-commonabiword-plugin-grammar
 E: Unable to locate package libabiword-2.9
 E: Couldn't find any package by regex 'libabiword-2.9'
 E: Unable to locate package libfm-gtk1
 E: Unable to locate package libgmlib0
 E: Unable to locate package libgmtk0
 E: Unable to locate package libgmtk0-data
 E: Unable to locate package libobrender27
 E: Unable to locate package libobt0
 E: Unable to locate package openbox-themes

编辑_2/更新:

运行代码后,建议从Nathan编写代码:

代码语言:javascript
复制
sudo apt-get purge --auto-remove abiword abiword-plugin-mathview ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg elementary-icon-theme esound-common galculator gdebi gdebi-core gecko-mediaplayer giblib1 gnome-icon-theme-full gnome-mplayer gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview gtk2-engines-pixbuf guvcview hardinfo leafpad libaacs0 libaudclient2 libaudcore1 libaudiofile1 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcompfaceg1 libcue1 libencode-locale-perl libept1.4.12 libesd0 libexo-1-0 libexo-common libexo-helpers libfile-listing-perl libfluidsynth1 libfm-data libfm-gtk-data libfont-afm-perl libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgoffice-0.8-8 libgoffice-0.8-8-common libgringotts2 libgsf-1-114 libgsf-1-common libgtkmathview0c2a libguess1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libid3tag0 libimlib2 libio-socket-inet6-perl libio-socket-ssl-perl libjpeg-progs libjpeg-turbo-progs liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmcrypt4 libmowgli2 libmpg123-0 libnet-dbus-perl libnet-http-perl libnet-ssleay-perl libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libresid-builder0c2a libsidplay2 libsocket6-perl libtar0 libtidy-0.99-0 libtie-ixhash-perl libtimedate-perl libuniconf4.6 liburi-perl libvdpau1 libwebcam0 libwv-1.2-4 libwvstreams4.6-base libwvstreams4.6-extras libwww-perl libwww-robotrules-perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en lm-sensors lubuntu-artwork lubuntu-artwork-12-04 lubuntu-core lubuntu-default-settings lubuntu-desktop lubuntu-icon-theme lubuntu-software-center lxappearance lxappearance-obconf lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint ntp obconf openbox osmo pcmanfm pidgin pidgin-data pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-xklavier scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends transmission ttf-lyx uvcdynctrl uvcdynctrl-data wvdial xfburn xfce-keyboard-shortcuts xfce4-power-manager xfce4-power-manager-data xfconf xfonts-100dpi xpad xscreensaver xscreensaver-data

这个过程没有任何问题,但是当我重新启动时,我被困在Ubuntu的引导屏幕上。

我的下一个问题是,如果我可以恢复整个系统的默认与松散的一切,但我将从头开始,而不需要USB,CD,DVD或其他可引导媒体来启动系统?

提前谢谢你。

EN

回答 1

Ask Ubuntu用户

发布于 2015-11-16 19:10:02

我认为您可以遵循问题undefined的答案中列出的步骤,跳过除lubuntu桌面之外的其他桌面环境。(他们还安装了xubuntu、肉桂和gnome)

编辑:这里,现在试一试。我编写了一个快速python脚本,以从原始命令中删除错误中出现的包。它给了我:

代码语言:javascript
复制
sudo apt-get purge --auto-remove abiword abiword-plugin-mathview ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg elementary-icon-theme esound-common galculator gdebi gdebi-core gecko-mediaplayer giblib1 gnome-icon-theme-full gnome-mplayer gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview gtk2-engines-pixbuf guvcview hardinfo leafpad libaacs0 libaudclient2 libaudcore1 libaudiofile1 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcompfaceg1 libcue1 libencode-locale-perl libept1.4.12 libesd0 libexo-1-0 libexo-common libexo-helpers libfile-listing-perl libfluidsynth1 libfm-data libfm-gtk-data libfont-afm-perl libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgoffice-0.8-8 libgoffice-0.8-8-common libgringotts2 libgsf-1-114 libgsf-1-common libgtkmathview0c2a libguess1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libid3tag0 libimlib2 libio-socket-inet6-perl libio-socket-ssl-perl libjpeg-progs libjpeg-turbo-progs liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmcrypt4 libmowgli2 libmpg123-0 libnet-dbus-perl libnet-http-perl libnet-ssleay-perl libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libresid-builder0c2a libsidplay2 libsocket6-perl libtar0 libtidy-0.99-0 libtie-ixhash-perl libtimedate-perl libuniconf4.6 liburi-perl libvdpau1 libwebcam0 libwv-1.2-4 libwvstreams4.6-base libwvstreams4.6-extras libwww-perl libwww-robotrules-perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en lm-sensors lubuntu-artwork lubuntu-artwork-12-04 lubuntu-core lubuntu-default-settings lubuntu-desktop lubuntu-icon-theme lubuntu-software-center lxappearance lxappearance-obconf lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint ntp obconf openbox osmo pcmanfm pidgin pidgin-data pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-xklavier scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends transmission ttf-lyx uvcdynctrl uvcdynctrl-data wvdial xfburn xfce-keyboard-shortcuts xfce4-power-manager xfce4-power-manager-data xfconf xfonts-100dpi xpad xscreensaver xscreensaver-data

如果这不起作用,如果你只是用

代码语言:javascript
复制
sudo apt-get purge --auto-remove lubuntu-desktop

如前所述,在该命令之后,您还应该自动清除掉不需要的旧包数据& update &dist-升级,用于更新w/智能依赖关系处理,如下所示:

代码语言:javascript
复制
sudo apt-get autoclean

sudo apt-get update 

sudo apt-get dist-upgrade

更新2:尝试重新启动计算机,然后按Ctrl+Alt+F1键,而不是正常登录。这将使您进入文本模式的tty1 shell (Ctrl+Alt+F7将使您回到GUI -一旦GUI被修复!)。输入您的用户名和密码登录。

如果你幸运的话,你会有互联网(要找出答案,输入'ping askubuntu.com‘等几秒钟&如果你收到错误/超时以外的响应,它会工作&你可以停止它w/ ctrl+c),否则你可以搜索并找到如何从命令行连接到网络的指南。

现在您可能可以尝试一些类似于

代码语言:javascript
复制
sudo apt-get --fix-broken install unity unity-greeter

然后重新启动。另外,查看LightDM的显示管理器文档 &ubuntu专用的这里的文件。您可能需要重新安装/重新配置它,以使其正常工作。

如果这不起作用,或者似乎比获得可引导媒体更难,那么您最好的选择是尝试Xubuntu或其他您认为最有效的Ubuntu版本。从活动会话,您应该能够移动您的重要文件,然后安装。还有一些方法可以创建节约的安装(比如主磁盘上的活动会话)--有时是w/o可引导媒体,但它们可能很棘手,因为您必须使用大量命令行实用工具&/或让虚拟机运行。

祝好运!

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/698783

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档