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

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

我正在尝试使用以下命令卸载 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?

答案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/ (ETC)
  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]

相关内容