我正在尝试使用以下命令卸载 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]
可以帮助发现哪些软件包导致了这种级联卸载,但我通常使用aptitude
和Debian 软件包站点跟踪依赖项时。在 Debian Jessie 上,删除以下内容可触发此级联vlc-nox
:
vlc-nox
phonon-backend-vlc
(满足phonon-backend
)phonon
amarok
/kde-runtime
/plasma-widgets-addons
/ (ETC)kdeplasma-addons
/kde-plasma-desktop
/plasma-desktop
该要求还有其他选项phonon-backend
,因此首先安装phonon-backend-null
或phonon-backend-gstreamer
应该可以防止级联删除:
$ sudo apt-get install phonon-backend-gstreamer
此后,您的apt-get remove
命令应该可以按预期工作。
另外,也可以使用 强制删除特定包dpkg
。该--force-depends
标志将依赖性问题转换为警告。我们不建议这么做,因为这可能会导致您的系统崩溃。
$ sudo dpkg --remove --force-depends [packagename]