Problem
I have tried to install Boost version 1.55 (I require this specific version for my programs) using the command:
sudo apt-get install libboost1.55-all-dev
But it keeps giving me the error message:
Reading package lists... Done
Building dependency tree Reading state
information... Done
E: Unable to locate package libboost1.55-all-dev
E: Couldn't find any package by glob 'libboost1.55-all-dev'
E: Couldn't find any package by regex 'libboost1.55-all-dev'
What I have tried
This question suggests to try:
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libboost-all-dev
But, I continue to get the same error.
This question suggests to try:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager
But, that only gave me the following errors, which I could not find a way around:
The following packages have unmet dependencies:
y-ppa-manager : Depends: yad (>= 0.36.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This question suggests to try using apt-file to search for the packages that I require to install it, but nothing shows up when I run the search command.
Question
What are the possible causes & solutions of this issue?
g++ -static
orclang -static
on the older system. Statically linked executables are self-contained, so they keep working without issues even when you upgrade your OS / env. Moreover, you could even copy them to a non Ubuntu system (as long as it is Linux with the same architecture) and have them work too.