Docker Community Forums

Share and learn in the Docker community.

Installing libboost-all-dev on GCC failing

I am unable to install libboost-all-dev onto GCC.

I had successfully installed libboost-all-dev onto GCC in the past.

Here’s my Dockerfile:

FROM gcc:8
RUN apt-get update
RUN apt-get -y install libboost-all-dev

Here are the errors:

Setting up gfortran (4:8.3.0-1) …
update-alternatives: error: alternative path /usr/bin/gfortran doesn’t exist
dpkg: error processing package gfortran (–configure):
installed gfortran package post-installation script subprocess returned error exit status 2

dpkg: dependency problems prevent configuration of libcoarrays-dev:amd64:
libcoarrays-dev:amd64 depends on gfortran (>= 6.1-1); however:
Package gfortran is not configured yet.

dpkg: error processing package libcoarrays-dev:amd64 (–configure):
dependency problems - leaving unconfigured

dpkg: dependency problems prevent configuration of libcoarrays-openmpi-dev:amd64:
libcoarrays-openmpi-dev:amd64 depends on gfortran (>= 6.1-1); however:
Package gfortran is not configured yet.
libcoarrays-openmpi-dev:amd64 depends on libcoarrays-dev; however:
Package libcoarrays-dev:amd64 is not configured yet.

dpkg: error processing package libcoarrays-openmpi-dev:amd64 (–configure):
dependency problems - leaving unconfigured