Come aggiornare boost lib usando apt-get?


11

Uso Ubuntu 11.04.

La mia versione boost:

  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$                                                       

Come aggiornare boost a 1.44+ usando gli strumenti apt?

Grazie ~


Quando eseguo apt-add-repository, 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$       

Come sistemarlo?

Grazie ~


Provo a installare 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$                               

Cosa significano questi errori?

E come risolverlo?

Grazie ~

Risposte:


11

EDIT: Boost-latest non viene aggiornato dal 2014 e l'ultima versione è 1.55

Il boost-latestPPA contiene tutte le versioni di libboost e lo ha riparato per me!

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

ora puoi installare la versione che desideri, l'ultima al momento in cui scrivo è la 1.55:

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

1
sudo apt-get install libboost1X.55-all-dev, non funziona, sudo apt-get install libboost1.55-all-dev fa.
tonylo,

Eppure, è 1,55. :(
Roman Shapovalov,

4
boost-latestè sbagliato. Ha interrotto l'aggiornamento nel 2014 = (
Zach

Prendi in considerazione alternative come launchpad.net/~mhier/+archive/ubuntu/libboost-latest
Clément

2

Sfortunatamente, l'ultima versione ufficiale di boost disponibile nei repository per Natty (11.04) è 1.42.

Puoi provare a installarlo da un PPA non ufficiale, ad esempio questo.

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

Ho modificato il mio post originale. E hanno anche il problema apt-add-repository. Come sistemarlo? Grazie ~
sam

Ho scoperto che posso eseguire con 'sudo apt-add-repository ppa: tim-klingt / ppa'. Ma dopo l'aggiornamento, Ubuntu non riesce ancora a trovare libboost-dev-all. Come sistemarlo? Grazie ~
sam

Prova il libboost1.46-all-devpacchetto - anche la risposta modificata.
Is

Ho modificato il mio post originale. E hanno anche errori di dipendenza. Come sistemarlo? Grazie ~
sam

2
installa prima libboost1.46-dev, poilibboost1.46-all-dev
ulkas il
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.