indy-sdk icon indicating copy to clipboard operation
indy-sdk copied to clipboard

getting-started docker build failing: apt-get not finding packages

Open Jamchello opened this issue 4 years ago • 3 comments

Executing docker-compose build --no-cache, or docker-compose up, results in the error below. I have searched extensively but can't find anyone with similar issues?

I imagine it is something to do with my laptop using a Mac M1 chip, however running in a rosetta environment, or adjusting the --platform argument in the docker file hasn't resolved my issue!

=> ERROR [ 7/11] RUN apt-get update -y && apt-get install -y         pyt  2.2s 
------                                                                          
> [ 7/11] RUN apt-get update -y && apt-get install -y         python3-pyzmq=18.1.0         indy-plenum=1.12.1~dev989         indy-node=1.12.1~dev1172         python3-indy-crypto=0.4.5         libindy-crypto=0.4.5         python3-orderedset=2.0         python3-psutil=5.4.3         python3-pympler=0.5         vim:      
#10 0.498 Hit:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease           
#10 0.582 Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
#10 0.680 Hit:3 http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease
#10 0.777 Hit:4 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease
#10 1.081 Get:5 https://repo.sovrin.org/deb xenial InRelease [28.4 kB]
#10 1.173 Fetched 28.4 kB in 0s (28.9 kB/s)
#10 1.173 Reading package lists...
#10 1.626 Reading package lists...
#10 2.066 Building dependency tree...
#10 2.138 Reading state information...
#10 2.149 E: Unable to locate package python3-pyzmq
#10 2.149 E: Unable to locate package indy-plenum
#10 2.149 E: Unable to locate package indy-node
#10 2.149 E: Unable to locate package python3-indy-crypto
#10 2.149 E: Unable to locate package libindy-crypto
#10 2.149 E: Unable to locate package python3-orderedset
#10 2.149 E: Version '5.4.3' for 'python3-psutil' was not found
#10 2.149 E: Unable to locate package python3-pympler

executor failed running [/bin/sh -c apt-get update -y && apt-get install -y         python3-pyzmq=${python3_pyzmq_ver}         indy-plenum=${indy_plenum_ver}         indy-node=${indy_node_ver}         python3-indy-crypto=${python3_indy_crypto_ver}         libindy-crypto=${indy_crypto_ver}         python3-orderedset=${python3_orderedset_ver}         python3-psutil=${python3_psutil_ver}         python3-pympler=${python3_pympler_ver}         vim]: exit code: 100
ERROR: Service 'indy_pool' failed to build : Build failed

Jamchello avatar Jul 20 '21 09:07 Jamchello

I've run docker-compose build --no-cache and docker-compose up in the docs/getting-started/ directory to verify if my fixes work.

And when I run it I get the terminal output with the link to a jupyter notebook.

The PR is a few minutes old but you can checkout my repo and see if it fixes your problem :)

https://github.com/hyperledger/indy-sdk/pull/2423

xoryouyou avatar Aug 31 '21 10:08 xoryouyou

I also met the problem with M1 Mac. I used the blow config but it didn't work.

I've run docker-compose build --no-cache and docker-compose up in the docs/getting-started/ directory to verify if my fixes work.

And when I run it I get the terminal output with the link to a jupyter notebook.

The PR is a few minutes old but you can checkout my repo and see if it fixes your problem :)

#2423

2017zhangyuxuan avatar Nov 30 '21 02:11 2017zhangyuxuan

Same issue.

  • Mac M1 Pro
  • Docker version 20.10.17, build 100c701
  • docker-compose version 1.29.2, build 5becea4c

Fails during build:

docker-compose build --no-cache
 > [ 7/11] RUN apt-get update -y && apt-get install -y         python3-pyzmq=18.1.0         indy-plenum=1.12.1~dev989         indy-node=1.12.1~dev1172         python3-indy-crypto=0.4.5         libindy-crypto=0.4.5         python3-orderedset=2.0         python3-psutil=5.4.3         python3-pympler=0.5         vim:
#10 0.557 Hit:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease
#10 0.654 Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
#10 0.762 Hit:3 http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease
#10 0.871 Hit:4 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease
#10 0.871 Get:5 https://repo.sovrin.org/deb xenial InRelease [28.4 kB]
#10 0.967 Fetched 28.4 kB in 0s (44.2 kB/s)
#10 0.967 Reading package lists...
#10 1.454 Reading package lists...
#10 1.930 Building dependency tree...
#10 2.007 Reading state information...
#10 2.018 E: Unable to locate package python3-pyzmq
#10 2.018 E: Unable to locate package indy-plenum
#10 2.018 E: Unable to locate package indy-node
#10 2.018 E: Unable to locate package python3-indy-crypto
#10 2.018 E: Unable to locate package libindy-crypto
#10 2.018 E: Unable to locate package python3-orderedset
#10 2.018 E: Version '5.4.3' for 'python3-psutil' was not found
#10 2.018 E: Unable to locate package python3-pympler
------
executor failed running [/bin/sh -c apt-get update -y && apt-get install -y         python3-pyzmq=${python3_pyzmq_ver}         indy-plenum=${indy_plenum_ver}         indy-node=${indy_node_ver}         python3-indy-crypto=${python3_indy_crypto_ver}         libindy-crypto=${indy_crypto_ver}         python3-orderedset=${python3_orderedset_ver}         python3-psutil=${python3_psutil_ver}         python3-pympler=${python3_pympler_ver}         vim]: exit code: 100
ERROR: Service 'indy_pool' failed to build : Build failed

dinbtechit avatar Aug 23 '22 00:08 dinbtechit