Bagaimana cara meningkatkan boost lib menggunakan apt-get?


11

Saya menggunakan ubuntu 11.04.

Versi peningkatan saya:

  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$                                                       

Bagaimana cara meningkatkan peningkatan ke 1,44+ dengan menggunakan alat apt?

Terima kasih ~


Ketika saya menjalankan apt-add-repository, itu menunjukkan:

  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$       

Bagaimana memperbaikinya?

Terima kasih ~


Saya mencoba menginstal 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$                               

Apa artinya kesalahan ini?

Dan bagaimana cara mengatasinya?

Terima kasih ~

Jawaban:


11

EDIT: Boost-latest tidak diperbarui sejak 2014 dan versi terbaru adalah 1,55

The boost-latestPPA berisi semua versi libboost dan tetap untukku!

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

sekarang Anda dapat menginstal versi yang Anda inginkan, yang terbaru pada saat penulisan adalah 1,55:

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

1
sudo apt-get install libboost1X.55-all-dev, tidak berfungsi, sudo apt-get install libboost1.55-all-dev tidak.
tonylo

Dan masih, ini 1,55. :(
Roman Shapovalov

4
boost-latestsalah nama. Itu berhenti memperbarui pada tahun 2014 = (
Zach


2

Sayangnya, versi resmi boost terbaru yang tersedia di repositori untuk Natty (11.04) adalah 1,42.

Anda dapat mencoba menginstalnya dari PPA tidak resmi, misalnya yang ini.

sudo apt-add-repositori ppa: timklingt / ppa
sudo apt-get pembaruan
sudo apt-get install libboost1.46-all-dev

Saya telah mengedit posting asli saya. Dan juga memiliki masalah apt-add-repositori. Bagaimana memperbaikinya? Terima kasih ~
sam

Saya menemukan bahwa saya dapat menjalankan dengan 'sudo apt-add-repository ppa: tim-klingt / ppa'. Tetapi setelah saya perbarui, ubuntu masih tidak dapat menemukan libboost-dev-all. Bagaimana memperbaikinya? Terima kasih ~
sam

Silakan coba libboost1.46-all-devpaket - juga jawaban yang sudah diedit.
ish

Saya telah mengedit posting asli saya. Dan juga memiliki kesalahan ketergantungan. Bagaimana memperbaikinya? Terima kasih ~
sam

2
instal dulu libboost1.46-dev, darilibboost1.46-all-dev
ulkas
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.