Docker Community Forums

Share and learn in the Docker community.

Unable to locate package solc while building image on Mac (M1 chip)

Logs of Error:

#8 129.4 update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
#8 129.4 update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn’t exist
#8 129.4 Setting up build-essential (12.8ubuntu1.1) …
#8 129.5 Setting up libalgorithm-diff-xs-perl (0.04-6) …
#8 129.5 Setting up libalgorithm-merge-perl (0.08-3) …
#8 129.5 Processing triggers for libc-bin (2.31-0ubuntu9.2) …
#8 129.6 Reading package lists…
#8 129.9 Building dependency tree…
#8 130.1 Reading state information…
#8 130.1 E: Unable to locate package solc

failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c

But the same dockerfile working fine for Linux