Skip to content

Can't install ANTs using Neurodocker due to Dropbox link error 403 #635

Open
@astewartau

Description

@astewartau

I tried to install ANTs v2.3.4 in my neurodocker recipe, and got this in my output. It points to the address https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz which no longer exists.

#17 [10/27] RUN apt-get update -qq     && apt-get install -y -q --no-install-recommends            ca-certificates            curl            unzip     && rm -rf /var/lib/apt/lists/*     && echo "Downloading ANTs ..."     && mkdir -p /opt/ants-2.3.4     && curl -fsSL https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz     | tar -xz -C /opt/ants-2.3.4 --strip-components 1
#17 11.60 Reading package lists...
#17 13.73 Building dependency tree...
#17 14.21 Reading state information...
#17 14.74 ca-certificates is already the newest version (20230311ubuntu0.18.04.1).
#17 14.74 curl is already the newest version (7.58.0-2ubuntu3.24).
#17 14.74 unzip is already the newest version (6.0-21ubuntu1.2).
#17 14.74 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
#17 14.76 Downloading ANTs ...
#17 15.37 curl: (22) The requested URL returned error: 403 
#17 15.38 
#17 15.38 gzip: stdin: unexpected end of file
#17 15.38 tar: Child returned status 1
#17 15.38 tar: Error is not recoverable: exiting now
#17 ERROR: process "/bin/sh -c apt-get update -qq     && apt-get install -y -q --no-install-recommends            ca-certificates            curl            unzip     && rm -rf /var/lib/apt/lists/*     && echo \"Downloading ANTs ...\"     && mkdir -p /opt/ants-2.3.4     && curl -fsSL https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz     | tar -xz -C /opt/ants-2.3.4 --strip-components 1" did not complete successfully: exit code: 2
------
 > importing cache manifest from ghcr.io/***/qsmxt_7.0.0:
------
------
 > [10/27] RUN apt-get update -qq     && apt-get install -y -q --no-install-recommends            ca-certificates            curl            unzip     && rm -rf /var/lib/apt/lists/*     && echo "Downloading ANTs ..."     && mkdir -p /opt/ants-2.3.4     && curl -fsSL https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz     | tar -xz -C /opt/ants-2.3.4 --strip-components 1:
#17 14.74 ca-certificates is already the newest version (20230311ubuntu0.18.04.1).
#17 14.74 curl is already the newest version (7.58.0-2ubuntu3.24).
#17 14.74 unzip is already the newest version (6.0-21ubuntu1.2).
#17 14.74 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
#17 14.76 Downloading ANTs ...
#17 15.37 curl: (22) The requested URL returned error: 403 
#17 15.38 
#17 15.38 gzip: stdin: unexpected end of file
#17 15.38 tar: Child returned status 1
#17 15.38 tar: Error is not recoverable: exiting now
------
qsmxt_7.0.0.Dockerfile:80
--------------------
  79 |         PATH="/opt/ants-2.3.4:$PATH"
  80 | >>> RUN apt-get update -qq \
  81 | >>>     && apt-get install -y -q --no-install-recommends \
  82 | >>>            ca-certificates \
  83 | >>>            curl \
  84 | >>>            unzip \
  85 | >>>     && rm -rf /var/lib/apt/lists/* \
  86 | >>>     && echo "Downloading ANTs ..." \
  87 | >>>     && mkdir -p /opt/ants-2.3.4 \
  88 | >>>     && curl -fsSL https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz \
  89 | >>>     | tar -xz -C /opt/ants-2.3.4 --strip-components 1
  90 |     ENV PATH="/opt/dcm2niix-v1.0.20240202/bin:$PATH"
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update -qq     && apt-get install -y -q --no-install-recommends            ca-certificates            curl            unzip     && rm -rf /var/lib/apt/lists/*     && echo \"Downloading ANTs ...\"     && mkdir -p /opt/ants-2.3.4     && curl -fsSL https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz     | tar -xz -C /opt/ants-2.3.4 --strip-components 1" did not complete successfully: exit code: 2
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions