Como atualizar boost lib usando o apt-get?


11

Eu uso o ubuntu 11.04.

Minha versão do impulso:

  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$                                                       

Como atualizar o boost para 1.44+ usando as ferramentas apt?

Obrigado ~


Quando executo o apt-add-repository, ele mostra:

  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$       

Como corrigi-lo?

Obrigado ~


Eu tento instalar o 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$                               

O que esses erros significam?

E como resolver isso?

Obrigado ~

Respostas:


11

EDIT: Boost-latest não está sendo atualizado desde 2014 e a versão mais recente é 1,55

O boost-latestPPA contém todas as versões do libboost e o corrigiu para mim!

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

agora você pode instalar a versão desejada, a última versão neste momento é 1,55:

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

1
O sudo apt-get install libboost1X.55-all-dev não funciona, o sudo apt-get install libboost1.55-all-dev funciona.
tonylo

E ainda é 1,55. :(
Roman Shapovalov

4
boost-latestestá com o nome errado. Parou de atualizar em 2014 = (
Zach


2

Infelizmente, a versão oficial mais recente do boost disponível nos repositórios do Natty (11.04) é 1.42.

Você pode tentar instalá-lo a partir de um PPA não oficial, por exemplo, este.

sudo apt-add-repository ppa: timklingt / ppa
sudo apt-get update
sudo apt-get install libboost1.46-all-dev

Eu editei minha postagem original. E também tem problema apt-add-repository. Como corrigi-lo? Obrigado ~
sam

Eu descobri que posso executar com 'sudo apt-add-repository ppa: tim-klingt / ppa'. Mas após a atualização, o ubuntu ainda não consegue encontrar o libboost-dev-all. Como corrigi-lo? Obrigado ~
sam

Por favor, tente libboost1.46-all-devpacote - também resposta editada.
Ish

Eu editei minha postagem original. E também tem erros de dependência. Como corrigi-lo? Obrigado ~
sam

2
instalar primeiro libboost1.46-dev, quelibboost1.46-all-dev
ulkas 29/11
Ao utilizar nosso site, você reconhece que leu e compreendeu nossa Política de Cookies e nossa Política de Privacidade.
Licensed under cc by-sa 3.0 with attribution required.