为什么卸载会增强卸载能力和 libreoffice?

为什么卸载会增强卸载能力和 libreoffice?

当我sudo apt-get remove 'libboost*'在 Ubuntu 14.04 中执行此操作时,我收到以下响应:

      The following packages will be REMOVED:
      aptitude libboost-atomic1.54.0 libboost-chrono1.54.0 libboost-context1.54.0
      libboost-date-time1.54.0 libboost-filesystem1.54.0
      libboost-graph-parallel1.54.0 libboost-graph1.54.0 libboost-iostreams1.54.0
      libboost-locale1.54.0 libboost-log1.54.0 libboost-math1.54.0
      libboost-mpi-python1.54.0 libboost-mpi1.54.0 libboost-program-options1.54.0
      libboost-python1.54.0 libboost-random1.54.0 libboost-regex1.54.0
      libboost-serialization1.54.0 libboost-signals1.54.0 libboost-system1.54.0
      libboost-system1.55.0 libboost-test1.54.0 libboost-thread1.54.0
      libboost-thread1.55.0 libboost-timer1.54.0 libboost-wave1.54.0 libcmis-0.4-4
      libconsole-bridge0.2 libdbus-cpp2 libfcl0 libmirclient7
      libmirclientplatform-mesa libogre-1.9.0 liborcus-0.6-0 libprocess-cpp1
      libqpidcommon2 libreoffice libreoffice-avmedia-backend-gstreamer
      libreoffice-base libreoffice-base-core libreoffice-base-drivers
      libreoffice-calc libreoffice-core libreoffice-draw libreoffice-gnome
      libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans
      libreoffice-pdfimport libreoffice-presentation-minimizer
      libreoffice-report-builder-bin libreoffice-sdbc-firebird
      libreoffice-sdbc-hsqldb libreoffice-writer libsslcommon2 libsslcommon2-dev
      libtorrent-rasterbar8 libubuntu-location-service0 libunity-scopes1
      liburdfdom-model-state0.2 liburdfdom-model0.2 liburdfdom-sensor0.2
      liburdfdom-world0.2 python3-uno qbittorrent unity-plugin-scopes
      unity-scope-mediascanner2 unity-scope-scopes unoconv

为什么它要删除诸如这样的程序aptitudelibreoffice我该如何阻止这种情况发生?

答案1

发生这种情况是因为这些软件包依赖于libboost*您要删除的其中一个软件包。

例如,libreoffice-core取决于libboost-system1.54.0

因此,如果您删除libboost-system1.54.0,将无法工作。依赖 的libreoffice-core所有软件包也无法工作。因此,软件包管理器希望删除它们,而不是给您留下一堆损坏的软件包。libreofficelibreoffice-core

理论上你可以防止这种情况发生,但为什么呢?你的系统上会留下一堆损坏的软件包。

您或许应该问的问题是为什么需要删除它?libboost*这似乎是一个非常糟糕的主意。

相关内容