当前位置: 首页 > 知识库问答 >
问题:

想在ubuntu 18.04中删除libboost1.65

梁丘威
2023-03-14

的结果

sudo apt安装libboost1.65-dev==

sudo apt install libboost1.65-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cmake-data libcurl4 librhash0 libuv1
Use 'sudo apt autoremove' to remove them.
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.
(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)

sudo apt 自动删除

sudo apt remove libboost1.65-dev

安装其他版本的libboost==

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).

结果说你可能想运行'apt --修复 -损坏的安装' 来纠正这些。

sudo apt - fix-broken install==

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,但结果相同。

有人帮我吗?谢谢!

格式化乌班图是一个解决方案?

共有1个答案

娄嘉石
2023-03-14

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

 类似资料:
  • 我有一个名为df1的Python代码数据帧: 这样的排有5000排 我想删除包含TYPE=Artificial的行,我编写了以下代码,但它给出了一个错误 它给出的错误为:

  • 导入tensorflow时出错。 我的电脑规格: 操作系统:ubuntu 18.04 英伟达RTX 2080钛*2 Nvidia驱动程序-415 CUDA:10.0 cuDNN:7.3.0 tensorflow:1.11.0 错误: 回溯(最后一次调用):文件“/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap\u ten

  • 我遇到了这种情况,我很难在谷歌上搜索和解释。 我们公司在铝上打印照片,我们给顾客两种选择。 > 第一个选择是将他们的图片打印在铝上,就像他们给我们的图片一样,所以如果图片有白色背景,图片就会用白色背景打印。就这么简单。 第二种选择是,我们可以不使用白色打印他们的图片。而不是所有的“白色值”( 我知道织物JS中有一个远程白色过滤器,它可以用透明的区域代替白色区域。但这不是我需要的。我需要一个织物JS

  • 问题内容: 在文档(http://dev.mysql.com/doc/refman/6.0/en/drop- table.html )中未明确提及。我问是因为我刚刚在Rails项目中看到了一个奇怪的数据库迁移,其中开发人员在删除表之前删除了所有索引,这似乎是不必要的。 问题答案: 是的,它确实。 但是,如果您具有诸如RESTRICT之类的外键约束来确保与其他表的参照完整性,则需要在删除或截断表之前

  • 我有两个ObservableList,其中一个包含一些歌曲,另一个包含与歌曲相关的目录。 我希望当从它的ObservableList中删除一个目录时,所有包含该目录的歌曲都从它们的ObservableList中删除。但是当我这样做的时候,只有带奇数id的歌曲被移除,带偶数id的仍然存在!!! 我的ObservableLists在另一个类中,“Controller”是包含ObservableList