想删除ubuntu 18.04中的libboost1.65吗

想删除ubuntu 18.04中的libboost1.65吗,ubuntu,boost,ubuntu-18.04,Ubuntu,Boost,Ubuntu 18.04,结果 sudo-apt安装libboost1.65-dev ==> sudoapt自动记忆 或 sudo apt删除libboost1.65-dev 或 安装libboost的其他版本 ==> 结果说 您可能需要运行“apt--fix breaked install”来纠正这些问题。 sudo apt---修复损坏的安装==> Reading package lists... Done Building dependency tree Reading state informati

结果

sudo-apt安装libboost1.65-dev ==>

sudoapt自动记忆

sudo apt删除libboost1.65-dev

安装libboost的其他版本 ==>

结果说
您可能需要运行“apt--fix breaked install”来纠正这些问题。

sudo apt---修复损坏的安装==>

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cmake-data libcurl4 librhash0 libuv1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libboost1.65-dev
Suggested packages:
  libboost1.65-doc libmpfrc++-dev libntl-dev
The following NEW packages will be installed:
  libboost1.65-dev
0 upgraded, 1 newly installed, 0 to remove and 76 not upgraded.
112 not fully installed or removed.
Need to get 0 B/7,218 kB of archives.
After this operation, 119 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 217405 files and directories currently installed.)
Preparing to unpack .../libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb ...
Unpacking libboost1.65-dev:amd64 (1.65.1+dfsg-0ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb (--unpack):
 trying to overwrite '/usr/include/boost/accumulators/accumulators.hpp', which is also in package libboost1.67-dev 1.67-0~5~ubuntu18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我想这些错误的原因是

libboost 1.65和1.67版本的carsh

我尝试删除usr/lib/booost,但同样的结果发生了

有人帮我吗?谢谢大家!


格式化ubuntu是一个解决方案?

删除所有与boost-dev相关的命令,如
apt Remove'libboost.*-dev'
(但是在说“是”之前,仔细检查一下apt试图删除的内容)

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libboost-atomic1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-chrono1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-container1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-context1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-coroutine1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-date-time1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-dev : Depends: libboost1.65-dev but it is not installed
 libboost-exception1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-fiber1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-filesystem1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-graph-parallel1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-graph1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-iostreams1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-locale1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-log1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-math1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-mpi1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-program-options1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-python1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-random1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-regex1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-serialization1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-signals1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-stacktrace1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-system1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-test1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-thread1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-timer1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-type-erasure1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
 libboost-wave1.65-dev : Depends: libboost1.65-dev (= 1.65.1+dfsg-0ubuntu5) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cmake-data libcurl4 librhash0 libuv1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libboost1.65-dev
Suggested packages:
  libboost1.65-doc libmpfrc++-dev libntl-dev
The following NEW packages will be installed:
  libboost1.65-dev
0 upgraded, 1 newly installed, 0 to remove and 76 not upgraded.
112 not fully installed or removed.
Need to get 0 B/7,218 kB of archives.
After this operation, 119 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 217405 files and directories currently installed.)
Preparing to unpack .../libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb ...
Unpacking libboost1.65-dev:amd64 (1.65.1+dfsg-0ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb (--unpack):
 trying to overwrite '/usr/include/boost/accumulators/accumulators.hpp', which is also in package libboost1.67-dev 1.67-0~5~ubuntu18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)