Dependency Failure While Installing Libboost-All-Dev on Ubuntu Core 14.04

Why is desired version of libboost-all-dev not found when building Docker container?

The package manager will only be able to install versions of Boost that it knows exist, based on the enabled package manager repositories. There is typically only one version of Boost in the default repositories. In my experience, this applies to any Linux OS that supplies Boost, not only those that are run within a Docker container.

The Docker image you started with, gcc:6.3.0, appears to have only Boost version 1.55.0.2, so requesting any other version will yield the same error.

If you want a different version of Boost in your image, you can follow the typical steps for installing a different version of Boost outside a Docker container. These steps are well-documented on Stack Overflow, or you might find a repository such as this to enable in your package manager to directly install it from apt-get.

How do I resolve `The following packages have unmet dependencies`

The command to have Ubuntu fix unmet dependencies and broken packages is

sudo apt-get install -f

from the man page:

-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages
to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem. The option
is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency structure can be
so corrupt as to require manual intervention (which usually means
using dselect(1) or dpkg --remove to eliminate some of the
offending packages)

Ubuntu will try to fix itself when you run the command. When it completes, you can test if it worked by running the command again, and you should receive output similar to:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

UHD Ubuntu 12.04 ZyBo ARMv7 32bit getting libboost-all-dev

libboost-all-dev is available for arm, but accessing it requires Linux knowledge:

1.Search “Update Manager”

2.Click “Settings” on bottom left

3.Click on “Ubuntu Software” tab on upper left.

4.check/select the box “Community-maintained free and open-source Software (Universe)”

5.click “close” on bottom right

sqldf doesn't install on Ubuntu 14.04

Look at the package page:

Depends:    R (≥ 3.1.0), gsubfn (≥ 0.6), proto, RSQLite (≥ 1.0.0)

As the error message clearly states, you are using an older R 3.0.2 which is less than the required 3.1.0.

The fix is easy: read the Ubuntu-specific README, make the adjustment to install (current !!) R binaries as .deb package via apt-get from CRAN -- and you will have R 3.1.2 in no time.

Which will permit you to install the current sqldf as well.



Related Topics



Leave a reply



Submit