尝试卸载vlc时,该选项尝试卸载完整的桌面环境


2

我正在尝试使用以下命令卸载vlc和vlc-nox

apt-get remove --purge vlc libdvdcss2 vlc-nox

但是我得到的消息是几个软件包也将被卸载,包括kde桌面,如下所示:

以下包将被删除

amarok * apper * ark * bluedevil * browser-plugin-vlc * dolphin * gwenview * k3b * kcharselect * kde-baseapps * kde-baseapps-bin * kde-plasma-desktop * kde-runtime * kde-style-oxygen * kde- window-manager * kde-workspace * kde-workspace-bin * kde-workspace-randr * kdebase-runtime * kdepasswd * kdepim-runtime * kdeplasma-addons * kdesudo * kdm * kfind * khelpcenter4 * kinfocenter * kio-audiocd * klipper * kmenuedit * kmix * konqueror * konqueror-nsplugins * konsole * kscreen * ksnapshot * ksshaskpass * ksysguard * kwalletmanager * kwrite * libakonadi-calendar4 *
libakonadi-contact4 * libk3b6 * libkcddb4 * libkcompactdisc4 * libkonq-common * libkonq5abi1 * libmarblewidget19 * libokularcore5 * libsmokekdecore4- 3 * libsmokekdeui4-3 * libsmokekfile3 *
libsmokekhtml3 * libsmokekio3 * libsmokeknewstuff2-3 * libsmokeknewstuff3-3 * libsmokekparts3 * libsmokektexteditor3 * libsmokekutils3 * libsmokeplasma3 * marble-plugins * okular *
okular-extra-backends * phonon * phonon-backend-vlc * plasma-dataengines-workspace * plasma-desktop * plasma-nm * plasma-runners-addons * plasma-scriptengine-python * plasma-scriptengine-ruby * plasma-scriptengine-superkaramba * plasma-scriptengines * plasma-wallpapers-addons * plasma-widget-folderview * plasma-widget-lancelot * plasma-widgets-addons * plasma-widgets-workspace * polkit-kde-1 * python-kde4 * python3-pykde4 * qapt-batch * ruby​​-kde4 * ruby​​-plasma * software-properties-kde * systemsettings * vlc * vlc- nox * vlc-plugin-pulse *

如何在不卸载桌面环境的情况下卸载vlc和vlc-nox?

提前致谢!

Answers:


1

命令apt-cache depends [packagename]apt-cache rdepends [packagename]可以在发现哪些软件包导致级联卸载这样的帮助,但我通常使用aptitudeDebian软件包网站跟踪的依赖时。在Debian Jessie上,通过删除来触发此级联vlc-nox

  1. vlc-nox
  2. phonon-backend-vlc(满足phonon-backend
  3. phonon
  4. amarok/ kde-runtime/ plasma-widgets-addons/(等)
  5. kdeplasma-addons/ kde-plasma-desktop/plasma-desktop

phonon-backend要求还有其他选项,因此安装phonon-backend-nullphonon-backend-gstreamer首先应该阻止删除级联:

$ sudo apt-get install phonon-backend-gstreamer

之后,您的apt-get remove命令应该按预期工作。


或者,可以强制移除特定包装dpkg。该--force-depends标志将依赖性问题转化为警告。建议不要这样做,否则会导致系统损坏。

$ sudo dpkg --remove --force-depends [packagename]
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.