如何使用apt-get升级boost lib?


11

我使用ubuntu 11.04。

我的增强版:

  sam@sam:~/code/ros/pcl$ apt-cache  showpkg libboost-all-dev
  Package: libboost-all-dev
  Versions: 
  1.42.0.1ubuntu1 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
   Description Language: 
                   File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages
                    MD5: 72efad05a3c79394c125b79e1d4eb3a7


  Reverse Depends: 
    libvtk5-dev,libboost-all-dev
    libfeel++-dev,libboost-all-dev
  Dependencies: 
  1.42.0.1ubuntu1 - libboost-dev (0 (null)) libboost-date-time-dev (0 (null)) libboost-filesystem-dev (0 (null)) libboost-graph-dev (0 (null)) libboost-iostreams-dev (0 (null)) libboost-math-dev (0 (null)) libboost-program-options-dev (0 (null)) libboost-python-dev (0 (null)) libboost-regex-dev (0 (null)) libboost-serialization-dev (0 (null)) libboost-signals-dev (0 (null)) libboost-system-dev (0 (null)) libboost-test-dev (0 (null)) libboost-thread-dev (0 (null)) libboost-wave-dev (0 (null)) 
  Provides: 
  1.42.0.1ubuntu1 - 
  Reverse Provides: 
  sam@sam:~/code/ros/pcl$                                                       

如何使用apt工具将boost升级到1.44+?

谢谢〜


当我运行apt-add-repository时,它显示:

  sam@sam:~/code/ros/pcl$ sudo apt-add-repository ppa:timklingt/ppa
  Error reading https://launchpad.net/api/1.0/~timklingt/+archive/ppa: GnuTLS recv error (-9): A TLS packet with unexpected length was received.
  sam@sam:~/code/ros/pcl$       

如何解决?

谢谢〜


我尝试安装libboost1.46-all-dev:

  sam@sam:~/code/ros/pcl$ sudo apt-get install libboost1.46-all-dev
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:

  The following packages have unmet dependencies:
   libboost1.46-all-dev : Depends: libboost1.46-dev but it is not going to be installed
                          Depends: libboost-date-time1.46-dev but it is not going to be installed
                          Depends: libboost-filesystem1.46-dev but it is not going to be installed
                          Depends: libboost-graph1.46-dev but it is not going to be installed
                          Depends: libboost-iostreams1.46-dev but it is not going to be installed
                          Depends: libboost-math1.46-dev but it is not going to be installed
                          Depends: libboost-program-options1.46-dev but it is not going to be installed
                          Depends: libboost-python1.46-dev but it is not going to be installed
                          Depends: libboost-regex1.46-dev but it is not going to be installed
                          Depends: libboost-serialization1.46-dev but it is not going to be installed
                          Depends: libboost-signals1.46-dev but it is not going to be installed
                          Depends: libboost-system1.46-dev but it is not going to be installed
                          Depends: libboost-test1.46-dev but it is not going to be installed
                          Depends: libboost-thread1.46-dev but it is not going to be installed
                          Depends: libboost-wave1.46-dev but it is not going to be installed
  E: Broken packages
  sam@sam:~/code/ros/pcl$                               

这些错误是什么意思?

以及如何解决呢?

谢谢〜

Answers:


11

编辑:Boost-latest自2014年以来未更新,其最新版本为1.55

boost-latestPPA包含libboost的所有版本,并固定为我!

sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update

现在您可以安装所需的版本,在撰写本文时,最新版本为1.55:

sudo apt-get install libboost1X.55-all-dev

1
sudo apt-get install libboost1X.55-all-dev不起作用,sudo apt-get install libboost1.55-all-dev起作用。
tonylo

仍然是1.55。:(
罗曼·夏波娃洛夫

4
boost-latest命名错误。它在2014年停止更新=(
Zach


2

不幸的是,Natty(11.04)存储库中提供的boost的最新官方版本是1.42。

您可以尝试通过非官方的PPA来安装它,例如这个。

sudo apt-add-repository ppa:timklingt / ppa
sudo apt-get更新
须藤apt-get install libboost1.46-all-dev

我已经编辑了我的原始帖子。并且也有apt-add-repository问题。如何解决?谢谢〜
SAM

我发现我可以使用'sudo apt-add-repository ppa:tim-klingt / ppa'运行。但是在更新之后,ubuntu仍然找不到libboost-dev-all。如何解决?谢谢〜
SAM

请尝试libboost1.46-all-dev打包-也已编辑答案。
ish 2012年

我已经编辑了我的原始帖子。并且也有依赖错误。如何解决?谢谢〜
SAM

2
首先安装libboost1.46-dev,而不是libboost1.46-all-dev
ulkas 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.