我正在尝试解决一些 libboost 问题。最终我决定将其彻底删除并从头开始会更容易。但是当我运行时,sudo apt-get --purge remove libboost*
我得到:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libcmis-0.3-3 : Depends: libboost-date-time1.53.0 but it is not going to be installed
liborcus-0.6-0 : Depends: libboost-system1.53.0 but it is not going to be installed
libreoffice-core : Depends: libboost-date-time1.53.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以我跑去sudo apt-get -f install
拿
Reading database ... 200480 files and directories currently installed.)
Unpacking libboost1.54-dev (from .../libboost1.54-dev_1.54.0-2ubuntu3_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libboost1.54-dev_1.54.0-2ubuntu3_amd64.deb (--unpack):
trying to overwrite '/usr/bin/quickbook', which is also in package libboost1.53-tools-dev 1.53.0-6+exp3ubuntu8
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libboost1.54-dev_1.54.0-2ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以现在我陷入了这个循环,既不能卸载也不能安装
我该怎么办?
答案1
运行sudo dpkg -r libboost1.53-tools-dev
,然后你就应该能够做到apt-get -f install
。