I'm trying to build a package that requires version 1.73 or higher of Boost. When I run
sudo apt-get install libboost-all-dev
the version that gets installed is 1.71, even though the current release listed on boost.org is 1.80. I'm running Ubuntu 20.04 on WSL2.
I've done a purge and remove, but a subsequent install again gets 1.71. When I repeat the apt-get without removing Boost first, then apt-get notifies that libboost-all-dev is already the newest version (1.71.0.0ubuntu2)
. I also tried doing a sudo add-apt-repository universe
but this didn't make a difference either.
I'm having this same problem, unless someone corrects me (please tell me there's a better solution), the only solution is to download it and install it yourself from the Boost libraries.
For version 1.80, it looks like this:
wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz boost_1_80_0.tar.gz
tar -xf boost_1_80_0.tar.gz
cd boost_1_80_0
sudo ./bootstrap.sh
sudo ./b2
sudo ./b2 install
Other places where I've found people talking about this issue: