安装 libboost-all-dev 包报错未满足依赖关系

sudo apt-get install libboost-all-dev 时 libboost-all-dev 报错未满足依赖关系错误,stackoverflow提出使用aptitude安装工具进行安装的解决方法:

1.安装 aptitude

~ $ sudo apt-get install aptitude

2.安装 libboost-all-dev

~ $ sudo aptitude install libboost-all-dev
下列“新”软件包将被安装。         
  dh-python{a} gir1.2-harfbuzz-0.0{a} icu-devtools{a} libboost-all-dev 
  libboost-atomic-dev{a} libboost-atomic1.65-dev{a} 
  libboost-atomic1.65.1{a} libboost-chrono-dev{a} 
  libboost-chrono1.65-dev{a} libboost-chrono1.65.1{a} 
  libboost-container-dev{a} libboost-container1.65-dev{a} 
  libboost-container1.65.1{a} libboost-context-dev{a} 
  libboost-context1.65-dev{a} libboost-context1.65.1{a} 
  libboost-coroutine-dev{a} libboost-coroutine1.65-dev{a} 
  libboost-coroutine1.65.1{a} libboost-date-time-dev{a} 
  libboost-date-time1.65-dev{a} libboost-dev{a} libboost-exception-dev{a} 
  libboost-exception1.65-dev{a} libboost-fiber-dev{a} 
  libboost-fiber1.65-dev{a} libboost-fiber1.65.1{a} 
  libboost-filesystem-dev{a} libboost-filesystem1.65-dev{a} 
  libboost-graph-dev{a} libboost-graph-parallel-dev{a} 
  libboost-graph-parallel1.65-dev{a} libboost-graph-parallel1.65.1{a} 
  libboost-graph1.65-dev{a} libboost-graph1.65.1{a} 
  libboost-iostreams-dev{a} libboost-iostreams1.65-dev{a} 
  libboost-locale-dev{a} libboost-locale1.65-dev{a} libboost-log-dev{a} 
  libboost-log1.65-dev{a} libboost-log1.65.1{a} libboost-math-dev{a} 
  libboost-math1.65-dev{a} libboost-math1.65.1{a} libboost-mpi-dev{a} 
  libboost-mpi-python-dev{a} libboost-mpi-python1.65-dev{a} 
  libboost-mpi-python1.65.1{a} libboost-mpi1.65-dev{a} 
  libboost-mpi1.65.1{a} libboost-numpy-dev{a} libboost-numpy1.65-dev{a} 
  libboost-numpy1.65.1{a} libboost-program-options-dev{a} 
  libboost-program-options1.65-dev{a} libboost-program-options1.65.1{a} 
  libboost-python-dev{a} libboost-python1.65-dev{a} 
  libboost-python1.65.1{a} libboost-random-dev{a} 
  libboost-random1.65-dev{a} libboost-random1.65.1{a} libboost-regex-dev{a} 
  libboost-regex1.65-dev{a} libboost-serialization-dev{a} 
  libboost-serialization1.65-dev{a} libboost-serialization1.65.1{a} 
  libboost-signals-dev{a} libboost-signals1.65-dev{a} 
  libboost-signals1.65.1{a} libboost-stacktrace-dev{a} 
  libboost-stacktrace1.65-dev{a} libboost-stacktrace1.65.1{a} 
  libboost-system-dev{a} libboost-system1.65-dev{a} libboost-test-dev{a} 
  libboost-test1.65-dev{a} libboost-test1.65.1{a} libboost-thread-dev{a} 
  libboost-thread1.65-dev{a} libboost-timer-dev{a} 
  libboost-timer1.65-dev{a} libboost-timer1.65.1{a} libboost-tools-dev{a} 
  libboost-type-erasure-dev{a} libboost-type-erasure1.65-dev{a} 
  libboost-type-erasure1.65.1{a} libboost-wave-dev{a} 
  libboost-wave1.65-dev{a} libboost-wave1.65.1{a} libboost1.65-dev{a} 
  libboost1.65-tools-dev{a} libglib2.0-dev{a} libglib2.0-dev-bin{a} 
  libgraphite2-dev{a} libharfbuzz-dev{a} libharfbuzz-gobject0{a} 
  libhwloc-dev{a} libibverbs-dev{a} libicu-dev{a} libicu-le-hb-dev{a} 
  libicu-le-hb0{a} libiculx60{a} libnuma-dev{a} libopenmpi-dev{a} 
  libpcre16-3{a} libpcre3-dev{a} libpcre32-3{a} libpcrecpp0v5{a} 
  libpython3-dev{a} libpython3.6-dev{a} mpi-default-bin{a} 
  mpi-default-dev{a} python3-dev{ab} python3.6-dev{a} zlib1g-dev{a} 
下列软件包将被“删除”:
  binutils-common:i386{u} libavahi-common-data:i386{u} 
  libavahi-common3:i386{u} libgmp10:i386{u} libhogweed4:i386{u} 
  libjbig0:i386{u} libkeyutils1:i386{u} libnettle6:i386{u} 
  libp11-kit0:i386{u} libtasn1-6:i386{u} libunistring2:i386{u} 
  libvo-amrwbenc0{u} 
下列软件包将被升级:
  libglib2.0-0 libglib2.0-bin libicu60 
3 个软件包被升级,新安装 117 个, 12 个将被删除, 同时 191 个将不升级。
需要获取 82.2 MB 的存档。 解包后将要使用 317 MB。
下列软件包存在未满足的依赖关系:
 python3-dev : 依赖: python3 (= 3.6.5-3) but 3.6.5-3ubuntu1 is installed
下列动作将解决这些依赖关系:

     保持 下列软件包于其当前版本:       
1)     libboost-all-dev [未安装的]       
2)     libboost-python-dev [未安装的]    
3)     libboost-python1.65-dev [未安装的]
4)     python3-dev [未安装的]            



是否接受该解决方案?[Y/n/q/?] n
下列动作将解决这些依赖关系:

     降级 下列软件包:                                             
1)     libpython3-stdlib [3.6.5-3ubuntu1 (now) -> 3.6.5-3 (bionic)]
2)     python3 [3.6.5-3ubuntu1 (now) -> 3.6.5-3 (bionic)]          
3)     python3-minimal [3.6.5-3ubuntu1 (now) -> 3.6.5-3 (bionic)]  



是否接受该解决方案?[Y/n/q/?] y
下列软件包将被“降级”:
  libpython3-stdlib python3 python3-minimal 
下列“新”软件包将被安装。
  dh-python{a} gir1.2-harfbuzz-0.0{a} icu-devtools{a} libboost-all-dev 
  libboost-atomic-dev{a} libboost-atomic1.65-dev{a} 
  libboost-atomic1.65.1{a} libboost-chrono-dev{a} 
  libboost-chrono1.65-dev{a} libboost-chrono1.65.1{a} 
  libboost-container-dev{a} libboost-container1.65-dev{a} 
  libboost-container1.65.1{a} libboost-context-dev{a} 
  libboost-context1.65-dev{a} libboost-context1.65.1{a} 
  libboost-coroutine-dev{a} libboost-coroutine1.65-dev{a} 
  libboost-coroutine1.65.1{a} libboost-date-time-dev{a} 
  libboost-date-time1.65-dev{a} libboost-dev{a} libboost-exception-dev{a} 
  libboost-exception1.65-dev{a} libboost-fiber-dev{a} 
  libboost-fiber1.65-dev{a} libboost-fiber1.65.1{a} 
  libboost-filesystem-dev{a} libboost-filesystem1.65-dev{a} 
  libboost-graph-dev{a} libboost-graph-parallel-dev{a} 
  libboost-graph-parallel1.65-dev{a} libboost-graph-parallel1.65.1{a} 
  libboost-graph1.65-dev{a} libboost-graph1.65.1{a} 
  libboost-iostreams-dev{a} libboost-iostreams1.65-dev{a} 
  libboost-locale-dev{a} libboost-locale1.65-dev{a} libboost-log-dev{a} 
  libboost-log1.65-dev{a} libboost-log1.65.1{a} libboost-math-dev{a} 
  libboost-math1.65-dev{a} libboost-math1.65.1{a} libboost-mpi-dev{a} 
  libboost-mpi-python-dev{a} libboost-mpi-python1.65-dev{a} 
  libboost-mpi-python1.65.1{a} libboost-mpi1.65-dev{a} 
  libboost-mpi1.65.1{a} libboost-numpy-dev{a} libboost-numpy1.65-dev{a} 
  libboost-numpy1.65.1{a} libboost-program-options-dev{a} 
  libboost-program-options1.65-dev{a} libboost-program-options1.65.1{a} 
  libboost-python-dev{a} libboost-python1.65-dev{a} 
  libboost-python1.65.1{a} libboost-random-dev{a} 
  libboost-random1.65-dev{a} libboost-random1.65.1{a} libboost-regex-dev{a} 
  libboost-regex1.65-dev{a} libboost-serialization-dev{a} 
  libboost-serialization1.65-dev{a} libboost-serialization1.65.1{a} 
  libboost-signals-dev{a} libboost-signals1.65-dev{a} 
  libboost-signals1.65.1{a} libboost-stacktrace-dev{a} 
  libboost-stacktrace1.65-dev{a} libboost-stacktrace1.65.1{a} 
  libboost-system-dev{a} libboost-system1.65-dev{a} libboost-test-dev{a} 
  libboost-test1.65-dev{a} libboost-test1.65.1{a} libboost-thread-dev{a} 
  libboost-thread1.65-dev{a} libboost-timer-dev{a} 
  libboost-timer1.65-dev{a} libboost-timer1.65.1{a} libboost-tools-dev{a} 
  libboost-type-erasure-dev{a} libboost-type-erasure1.65-dev{a} 
  libboost-type-erasure1.65.1{a} libboost-wave-dev{a} 
  libboost-wave1.65-dev{a} libboost-wave1.65.1{a} libboost1.65-dev{a} 
  libboost1.65-tools-dev{a} libglib2.0-dev{a} libglib2.0-dev-bin{a} 
  libgraphite2-dev{a} libharfbuzz-dev{a} libharfbuzz-gobject0{a} 
  libhwloc-dev{a} libibverbs-dev{a} libicu-dev{a} libicu-le-hb-dev{a} 
  libicu-le-hb0{a} libiculx60{a} libnuma-dev{a} libopenmpi-dev{a} 
  libpcre16-3{a} libpcre3-dev{a} libpcre32-3{a} libpcrecpp0v5{a} 
  libpython3-dev{a} libpython3.6-dev{a} mpi-default-bin{a} 
  mpi-default-dev{a} python3-dev{a} python3.6-dev{a} zlib1g-dev{a} 
下列软件包将被“删除”:
  binutils-common:i386{u} libavahi-common-data:i386{u} 
  libavahi-common3:i386{u} libgmp10:i386{u} libhogweed4:i386{u} 
  libjbig0:i386{u} libkeyutils1:i386{u} libnettle6:i386{u} 
  libp11-kit0:i386{u} libtasn1-6:i386{u} libunistring2:i386{u} 
  libvo-amrwbenc0{u} 
下列软件包将被升级:
  libglib2.0-0 libglib2.0-bin libicu60 
3 个软件包被升级,新安装 117 个, 3 个被降级, 12 个将被删除, 同时 191 个将不升级。
需要获取 82.2 MB 的存档。 解包后将要使用 317 MB。
您要继续吗?[Y/n/?] Y

你可能感兴趣的:(编译打包,linux,Python,python,ubuntu,linux,pip,apt)