如何从Ubuntu上完全删除kubuntu-desktop


26

我安装了kubuntu-desktop只是为了尝试其界面。然后,我决定删除并进行传统的apt-get清除和自动删除,但似乎kubuntu的元素仍然存在。例如,界面元素,滚动条,引导屏幕等仍然存在。

有什么方法可以在不安装ubuntu副本的情况下完全删除?


Answers:


20

我建议您使用aptitude来执行此操作,这将搜索将删除KDE环境并保留Ubuntu默认设置的软件包:

sudo apt-get install aptitude
aptitude search '?and(?and(?and(?reverse-depends(kubuntu),?not(?reverse-depends(ubuntu-desktop))),?automatic), ?not(?or(?priority(required), ?priority(important))))' ubuntu-desktop+

这将搜索任何kubuntu-desktop依赖于但不依赖于的软件包ubuntu-desktop。而且,这种方法有点贪婪。它将删除Qt程序包,ergo mplayer2,VLC,并且依赖于Qt库的所有程序包都可以删除。在末尾添加带有加号(+)的软件包,例如ubuntu-desktop软件包。对于其他口味:

许本图

aptitude search '?and(?and(?and(?reverse-depends(kubuntu),?not(?reverse-depends(xubuntu-desktop))),?automatic), ?not(?or(?priority(required), ?priority(important))))' xubuntu-desktop+

鲁本图

aptitude search '?and(?and(?and(?reverse-depends(kubuntu),?not(?reverse-depends(lubuntu-desktop))),?automatic), ?not(?or(?priority(required), ?priority(important))))' lubuntu-desktop+

侏儒

aptitude search '?and(?and(?and(?reverse-depends(kubuntu),?not(?reverse-depends(ubuntu-gnome-desktop))),?automatic), ?not(?or(?priority(required), ?priority(important))))' ubuntu-gnome-desktop+

如您所见,仅将最后一个软件包名称替换为您首选离开的名称。如果使用过kde-core或其他中继包,则应使用中继包的名称替换“ kubuntu”。

了解智能搜索

为了确切说明选择哪个软件包,让我们更深入地说明搜索命令:

?and(
    ?and(
        ?and(                          // we're searching for packages that are
            ?reverse-depends(kubuntu), // reverse dependencies of kubuntu
            ?not(?reverse-depends(ubuntu-desktop)) // and not of ubuntu-desktop
            ),     // that fulfills the condition above 
        ?automatic // and is automatically installed
        ),
     ?not(                        // and also that are not
         ?or(                     // either required nor important
              ?priority(required),
              ?priority(important)
             )
         )
    )

1
我怀疑这种方法的有效性。我尝试按照建议删除kubuntu。它试图删除以下绝对不是kubuntu所用的软件包:evolution,cryptsetup,lsb,skype,软件中心,ubuntu-desktop,wine,并且清单还在继续.....不用说我没有继续卸载。
雅克·马拉帕德

@JacquesMALAPRADE无法尝试删除,ubuntu-desktop因为?not(?reverse-depends(?exact-name(ubuntu-desktop))))。因此,您显然做错了。
Braiam 2015年

1
它要求try harder再次提出,然后提出了以下明确指出ubuntu-desktop将被删除的内容。paste.ubuntu.com/9717405。以及skype,进化等。–
雅克·马拉帕德

2
您为Ubuntu提出的命令已从系统python,字体,文件管理器等中删除了...最终在我的系统上无任何作用,我不得不重新安装操作系统...
Pantelis Sopasakis 2015年

1
它也破坏了我的系统。现在我有一些未满足的依赖项,如果安装vlc或qBitorrent。
Gaurav Gandhi 2015年

11

在14.04 LTS 64Bit中

sudo apt-get remove libkde3support4 k3b-data ntrack-module-libnl-0 libkrosscore4 libgpgme++2 libqapt2 oxygen-icon-theme libktexteditor4 libtaskmanager4abi5 kdenetwork-filesharing libkblog4 libchm1 plasma-widgets-addons libkimap4 plasma-netbook libkdeui5 libkdeclarative5 ttf-oxygen-font-family gtk3-engines-oxygen user-manager gpgsm libakonadi-kcal4 kdepim-kresources libruby1.9.1 plymouth-theme-kubuntu-logo libqt4-sql-mysql libmailtransport4 kde-telepathy-filetransfer-handler kde-zeroconf libkpimtextedit4 konsole liblastfm1 libqjson0 libtag-extras1 libkdecorations4abi1 libkdcraw23 libkpeople3 kdepimlibs-kio-plugins libqrencode3 libkparts4 libakonadiprotocolinternals1 libbalooxapian4 akonadi-server nepomuk-core-data libqca2 kubuntu-notification-helper kdemultimedia-kio-plugins libntrack0 kde-runtime-data cdparanoia libplasma-geolocation-interface4 quassel-data libkemoticons4 libmessagecomposer4 libweather-ion6 cdrdao libnepomukquery4a bluedevil libakonadi-notes4 libkmediaplayer4 libksieveui4 muon-discover libmicroblog4 libnetworkmanagerqt1 libqt4-qt3support libkcddb4 amarok-utils libmailcommon4 libktpcommoninternalsprivate7 libprocessui4a katepart libmusicbrainz5-0 libkwineffects1abi4 libreoffice-base libkdepim4 kaddressbook soprano-daemon libmessageviewer4 libkwinglesutils1 libsoprano4 libqapt2-runtime vcdimager libcln6 libvirtodbc0 libbaloopim4 okular libqca2-plugin-ossl libkonq5abi1 ubuntu-release-upgrader-qt python3-pyqt4 libkephal4abi1 libksba8 kdesudo libqoauth1 gnupg-agent libxerces-c3.1 kde-telepathy-data kdelibs5-plugins kcalc libqmobipocket1 systemsettings libkolabxml1 libsyndication4 libkjsapi4 libplasmagenericshell4 libksane0 libkprintutils4 knotes libkactivities6 libincidenceeditorsng4 lightdm-kde-greeter libreoffice-sdbc-firebird libiso9660-8 kubuntu-docs amarok gwenview libkcalcore4 virtuoso-opensource-6.1-common libkmbox4 virtuoso-opensource-6.1-bin libakonadi-contact4 libakonadi-socialutils4 plasma-widget-kimpanel kde-touchpad python3-dbus.mainloop.qt libqtscript4-gui python3-pykde4 plasma-widget-menubar libxcb-record0 libkcompactdisc4 kde-config-telepathy-accounts libkabc4 libkunitconversion4 okular-extra-backends plymouth-theme-kubuntu-text libcryptsetup4 ktorrent-data libknewstuff3-4 kde-workspace-kgreet-plugins kde-config-tablet gstreamer0.10-qapt akregator libxcb-xtest0 libnepomukutils4 odbcinst1debian2 kate libkmanagesieve4 libprocesscore4abi1 libqtscript4-network libksane-data ibus-qt4 ttf-dejavu-core libyaml-0-2 libkxmlrpcclient4 plasma-nm libpam-ck-connector libqgpgme1 print-manager libksignalplotter4 libkipi-data klipper libakonadi-kmime4 gtk2-engines-oxygen kde-telepathy-text-ui libkhtml5 libkcal4 libkmime4 ksysguardd kontact libmailimporter4 libakonadi-calendar4 libprison0 libsendlater4 libntrack-qt4-1 libsignon-qt1 libkldap4 libkfile4 kubuntu-settings-desktop libpoppler-qt4-4 kamera libbaloofiles4 libtelepathy-qt4-2 libnoteshared4 libakonadi-kde4 libreoffice-kde icoutils libgrantlee-gui0 socat libkdepimdbusinterfaces4 audiocd-kio libmodemmanagerqt1 liboath0 libmessagecore4 libqtglib-2.0-0 kde-baseapps-bin kubuntu-driver-manager libattica0.4 libmygpo-qt1 libkdesu5 libknewstuff2-4 dragonplayer libdlrestrictions1 libgps20 kde-telepathy-send-file libstreams0 libkidletime4 libkateinterfaces4 libknotifyconfig4 qapt-deb-installer libtemplateparser4 about-distro dolphin kinfocenter libplasmaclock4abi4 amarok-common kaccessible libqtscript4-uitools libxcb-composite0 libkcalutils4 libreoffice-java-common usb-creator-kde libkdecore5 kdelibs-bin plasma-desktop skanlite kmag kdegraphics-strigi-analyzer nepomuk-core-runtime plasma-scriptengine-javascript libperl4-corelibs-perl qapt-batch kde-wallpapers-default libloudmouth1-0 libqaccessibilityclient0 libktnef4 libflac++6 libnepomuk4 libkleo4 odbcinst pam-kwallet libstreamanalyzer0 libkdcraw-data docbook-xsl libkntlm4 libopenconnect2 software-properties-kde ktorrent krdc kmousetool kde-workspace-data libqtscript4-core partitionmanager cryptsetup libvcdinfo0 libboost-thread1.54.0 libkfbapi1 libxcb-damage0 ruby1.9.1 libkcmutils4 libkpimidentities4 libreoffice-style-oxygen k3b libkworkspace4abi2 colord-kde libkfilemetadata4 kde-style-oxygen libdebconf-kde0 libktorrent-l10n libpolkit-qt-1-1 libkolab0 libepub0 libkdgantt2-0 kubuntu-settings-netbook libqtscript4-xml kubuntu-web-shortcuts libtelepathy-logger-qt4-1 libkactivities-models1 libkpimutils4 freespacenotifier pinentry-qt4 kde-config-gtk-style libkgapi2-2 baloo libkubuntu0 python3-sip kmix libkio5 libxml2-utils ksnapshot libktorrent5 libakonadi-kabc4 libpimcommon4 kde-config-whoopsie libkpgp4 khelpcenter4 oxygen-cursor-theme shared-desktop-ontologies libkexiv2-data libplasma3 muon-updater kde-config-pimactivity kde-telepathy libaccounts-qt1 kdepasswd libqtscript4-sql libkexiv2-11 libkontactinterface4 libmessagelist4 kde-telepathy-integration-module kdepim-runtime libkscreen1 && sudo apt-get install ubuntu-desktop

您是否有指向该命令所在页面的链接?我相信我已经在某处看到过该文件。
埃里克·弗朗西斯

10

尝试从软件中心安装Synaptic软件包管理器。

或者只是输入一个终端: sudo apt-get install synaptic

安装并打开程序后,在“部分”选项卡中,找到“ KDE桌面环境”部分,然后选择所有已安装的(绿色)选择(Ctrl + Click)。然后右键单击,选择完全删除并通过单击窗口顶部的绿色复选标记应用更改。


突触是一个很棒的工具!我推荐它。但是,像往常一样,对系统进行重大更改时,请先进行备份!
toesslab '16

7

由于Braiams对我不起作用,所以我做了以下事情:

转到/ var / log / apt并在history.log(或任何压缩的history.log。[n] .gz文件)中搜索“ kubuntu-desktop ”,以查找随kubuntu-desktop安装的确切软件包并将其删除。


6

您可以使用apt-rdepends查找已由(元软件包)安装的所有软件包,kubuntu-desktop 并将列表用作的输入apt-get purge。可能清除kdelibs *就足够了。

另一种可能性是删除Qt(即libqt4 *),因为KDE依赖于qt,它将删除所有KDE软件包。但是,如果在其他桌面上使用其他Qt应用程序,这将无法很好地工作。

但是,无论如何,apt-get都要非常仔细地检查要删除的软件包,因为这样可能会使整个安装混乱。


5

这为我工作:

sudo apt-get install tasksel
sudo tasksel

在列表中找到Kubuntu桌面并删除其选择。阅读并确认道具。

在这之后我也做了

sudo apt-get autoremove

2
这将从系统中删除所有内容。不要做
Joao Carlos

@JoaoCarlos您能解释“一切”的意思吗?
Max von Hippel

@MaxvonHippel它将删除窗口系统,所有程序,所有驱动程序以及所有内容。除了您选择的内容(即什么都没有)之外,您的系统不再启动
Joao Carlos

它删除了所有东西,我为什么这样做:(
编码先生先生

0

答案是:https : //help.ubuntu.com/community/PureGnomehttp://www.psychocats.net/ubuntu/puregnome

1)选择与您的ubuntu版本相对应的方法

2)检查您从KDE环境方案保持,因为你需要它和)从删除列表中删除它(与依赖关系)或b)留在名单和以后重新安装。

3)复制/粘贴命令该命令如本网页所述,取决于您的版本,但通常看起来像:

sudo apt-get remove akonadi-backend-mysql akonadi-server akregator amarok amarok-common amarok-utils apport-kde apturl-kde ark bluedevil cdparanoia cdrdao .... and a lot of packages

该命令无论如何都不会删除配置文件,只会删除程序。如果还希望删除配置文件,则将--purge选项添加到命令中。

4)

警告:以下软件包列表适用于带有Kubuntu的Ubuntu的默认安装。您可能需要保留以下某些软件包,并且在接受之前,应查看apt将要删除的内容。

这些删除命令是根据将Kubuntu,Xubuntu等软件包添加到默认Ubuntu安装中创建的。这些命令可能会删除自从添加到默认目录之后要保留的某些其他软件包。如果是这种情况,请跟踪那些软件包并重新安装它们。您的设置应该仍然存在。

与往常一样,在修改分区之前先对其进行备份。

干杯,拉夫


0

我已经在ubuntu 14.04.5 LTS中使用了此命令,执行完之后,我的系统就像在以前的状态下一样工作,您可以使用commmand

sudo apt-get remove about-distro akonadi后端MySQL MySQL akonadi服务器akregator amarok amarok-common amarok-utils apport-kde apturl-kde ark audiocd-kio baloo
  bluedevil ca-certificates-java cdparanoia cdrdao colored-kde consolekit
  cryptsetup cryptsetup-bin default-jre default-jre-headless docbook-xml
  docbook-xsl海豚Dragonplayer字体-dejavu-extra freerdp-x11
  freespacenotifier gnupg代理gnupg2 gpgsm gstreamer0.10-qapt
  gtk2-engines-oxygen gtk3-engines-oxygen gwenview ibus-qt4 icoutils
  java-通用k3b k3b-data kaccessible kaddressbook kamera kate kate-data
  katepart kcalc kde-base-artwork kde-baseapps-bin kde-baseapps-data
  kde-config-gtk样式kde-config-pimactivity kde-config-tablet
  kde-config-telepathy帐户kde-config-whoopsie kde-runtime
  kde运行时数据kde样式氧气kde-telepathy kde-telepathy-approver
  kde-telepathy-auth-handler kde-telepathy-contact-list kde-telepathy-data
  kde-telepathy-declarative kde-telepathy-desktop-applets
  kde-telepathy文件传输处理程序kde-telepathy集成模块
  kde-telepathy-minimal kde-telepathy发送文件kde-telepathy-text-ui
  kde-touchpad kde-wallpapers-default kde-window-manager
  kde-window-manager-常见的kde-workspace kde-workspace-bin kde-workspace-data
  kde-workspace-kgreet-plugins kde-zeroconf kdegraphics-strigi-analyzer
  kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins
  kdenetwork-文件共享kdepasswd kdepim-kresources kdepim运行时
  kdepimlibs-kio-plugins kdesudo kdoctools khelpcenter4 kinfocenter
  kio-audiocd kio-mtp klipper kmag kmail kmenuedit kmix kmousetool knotes
  konsole kontact korganizer krdc kscreen ksnapshot ksysguard ksysguardd
  ksystemlog ktorrent ktorrent-data kubuntu-debug-installer kubuntu-desktop
  kubuntu-docs kubuntu-driver-manager kubuntu-notification-helper
  kubuntu-settings-desktop kubuntu-settings-netbook kubuntu-web-shortcuts
  kwalletmanager libaccounts-qt1 libaio1 libakonadi-calendar4
  libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4
  libakonadi-kmime4 libakonadi-notes4 libakonadi-socialutils4
  libakonadiprotocolinternals1 libao-常见的libao4 libatk-wrapper-java
  libatk-wrapper-java-jni libattica0.4 libavcodec54 libavformat54 libavutil52
  libbaloocore4 libbaloofiles4 libbaloopim4 libbaloowidgets4 libbalooxapian4
  libbluedevil1 libbonobo2-0 libbonobo2-common libboost-program-options1.54.0
  libboost-thread1.54.0 libcalendarsupport4 libchm1 libck-connector0 libcln6
  libcryptsetup4 libdebconf-kde0 libdlrestrictions1 libdmtx0a libdvdnav4
  libdvdread4 libepub0 libeventviews4 libflac ++ 6 libgconf2-4 libgnome2-0
  libgnome2-bin libgnome2-common libgnomevfs2-0 libgnomevfs2-common
  libgpgme ++ 2 libgps20 libgrantlee-core0 libgrantlee-gui0 libgsm1
  libhsqldb1.8.0-java libibus-qt1 libidl-公共libidl0 libilmbase6
  libincidenceeditorsng4 libindicate-qt1 libindicate5 libiso9660-8 libk3b6
  libkabc4 libkactivities-bin libkactivities-models1 libkactivities6
  libkalarmcal2 libkateinterfaces4 libkatepartinterfaces4 libkblog4 libkcal4
  libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkcompactdisc4
  libkdcraw数据libkdcraw23 libkde3support4 libkdeclarative5
  libkdecorations4abi1 libkdecore5 libkdepim4 libkdepimdbusinterfaces4
  libkdesu5 libkdeui5 libkdewebkit5 libkdgantt2-0 libkdnssd4 libkemoticons4
  libkephal4abi1 libkexiv2-11 libkexiv2-data libkfbapi1 libkfile4
  libkfilemetadata4 libkgapi2-2 libkholidays4 libkhtml5 libkidletime4
  libkimap4 libkio5 libkipi数据libkipi11 libkjsapi4 libkjsembed4 libkldap4
  libkleo4 libkmanagesieve4 libkmbox4 libkmediaplayer4 libkmime4
  libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkolab0
  libkolabxml1 libkonq-公共libkonq5-模板libkonq5abi1
  libkontactinterface4 libkparts4 libkpeople3 libkpgp4 libkpimidentities4
  libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4
  libkrosscore4 libksane数据libksane0 libksba8 libkscreen1 libkscreensaver5
  libksgrd4 libksieve4 libksieveui4 libksignalplotter4 libktexteditor4
  libktnef4 libktorrent-l10n libktorrent5 libktpcommoninternalsprivate7
  libkubuntu0 libkunitconversion4 libkwineffects1abi4 libkwinglesutils1
  libkwinglutils1abi3 libkworkspace4abi2 libkxmlrpcclient4 liblastfm1
  liblightdm-qt-3-0 libloudmouth1-0 libmailcommon4 libmailimporter4
  libmailtransport4 libmessagecomposer4 libmessagecore4 libmessagelist4
  libmessageviewer4 libmicroblog4 libmodemmanagerqt1 libmp3lame0 libmpcdec6
  libmuonprivate2 libmygpo-qt1 libmysqlclient18 libnepomuk4 libnepomukcleaner4
  libnepomukcore4abi1 libnepomukquery4a libnepomukutils4 libnetworkmanagerqt1
  libnoteshared4 libntrack-qt4-1 libntrack0 liboath0 libokularcore4
  libopenconnect2 libopenexr6 libopenjpeg2 libopus0 liborbit-2-0 liborbit2
  libpam-ck连接器libperl4-corelibs-perl libphonon4 libpimactivity4
  libpimcommon4 libplasma-geolocation-interface4 libplasma3
  libplasmaclock4abi4 libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-4
  libprison0 libprocesscore4abi1 libprocessui4a libpth20
  libqaccessibilityclient0 libqalculate5 libqalculate5-data libqapt2
  libqapt2-运行时libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4
  libqjson0 libqmobipocket1 libqoauth1 libqrencode3 libqt4-qt3support
  libqt4-sql-mysql libqtglib-2.0-0 libqtscript4-core libqtscript4-gui
  libqtscript4-网络libqtscript4-sql libqtscript4-uitools libqtscript4-xml
  libreoffice-base libreoffice-base-drivers libreoffice-java-common
  libreoffice-kde libreoffice-sdbc-firebird libreoffice-sdbc-hsqldb
  libreoffice-style-氧libruby1.9.1 libschroedinger-1.0-0 libsctp1
  libsendlater4 libservlet3.0-java libsignon-qt1 libsolid4 libsoprano4
  libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1
  libtaskmanager4abi5 libtelepathy-logger-qt4-1 libtelepathy-qt4-2
  libtemplateparser4 libthreadweaver4 libva1 libvcdinfo0 libvirtodbc0
  libweather-ion6 libx264-142 libxcb-composite0 libxcb-damage0 libxcb-record0
  libxcb-xtest0 libxerces-c3.1 libxvidcore4 libyaml-0-2 libzip2
  lightdm-kde-greeter lksctp-toolsμon-discovermuon-notifier muon-updater
  mysql-client-core-5.5 mysql-common mysql-server-core-5.5 nepomuk-core-data
  nepomuk-core-runtime ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular
  okular-extra-endends openjdk-7-jre openjdk-7-jre-headless
  氧气光标主题氧气图标主题p7zip-完整的pam-kwallet
  partitionmanager声子声子后端gstreamer
  声子后端gstreamer通用声子后端gstreamer1.0 pinentry-gtk2
  pinentry-qt4等离子数据引擎插件等离子数据引擎工作区
  等离子台式等离子上网本等离子纳米等离子体流道
  plasma-scriptengine-javascriptplasma-widget-folderview
  等离子小配件-kimpanel等离子小配件-menubar等离子小配件-插件
  等离子小工具工作区普利茅斯主题kubuntu徽标
  普利茅斯主题kubuntu文本polkit-kde-1打印管理器
  python3-dbus.mainloop.qt python3-pykde4 python3-pyqt4 python3-sip qapt-batch
  qapt-deb-installer quassel quassel-data ruby​​ ruby​​1.9.1 scdaemon sgml-data
  共享桌面本体skanlite socat软件属性kde
  高音守护程序系统设置ttf-dejavu-core ttf-oxygen-font-family
  tzdata-java ubuntu-release-upgrader-qt usb-creator-kde用户管理器
  vcdimager virtuoso-minimal virtuoso-opensource-6.1-bin
  virtuoso-opensource-6.1-常见的kubuntu-desktop  

-1

通过aptitude提出的解决方案不适用于默认的kubuntu 14.04安装,失败并显示一条错误消息,提示它找不到解决方案。

一个简单的替代方法是,尽管可能无法将其去除100%

    sudo apt-get remove plasma*

这删除了kde应用程序,例如kmail,k3b,kopete,digikam和桌面。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.