sha256sum: 'standard input': no properly formatted SHA256 checksum lines found
schildbach opened this issue · 2 comments
schildbach commented
The Debian version 0.21 of the Dockerfile doesn't build. The Alpine version works fine however.
$ docker build .
Sending build context to Docker daemon 11.78kB
Step 1/14 : FROM debian:bullseye-slim
---> ea64efa816a4
Step 2/14 : LABEL maintainer.0="João Fonseca (@joaopaulofonseca)" maintainer.1="Pedro Branco (@pedrobranco)" maintainer.2="Rui Marinho (@ruimarinho)"
---> Using cache
---> 15a8ce17693e
Step 3/14 : RUN useradd -r bitcoin && apt-get update -y && apt-get install -y curl gnupg gosu && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
---> Using cache
---> f61f20f6723a
Step 4/14 : ARG TARGETPLATFORM
---> Using cache
---> 0bf4c77a1c41
Step 5/14 : ENV BITCOIN_VERSION=0.21.0
---> Using cache
---> 0b54f3af2755
Step 6/14 : ENV BITCOIN_DATA=/home/bitcoin/.bitcoin
---> Using cache
---> 25ea885588f4
Step 7/14 : ENV PATH=/opt/bitcoin-${BITCOIN_VERSION}/bin:$PATH
---> Using cache
---> 3fa7becd1624
Step 8/14 : RUN set -ex && if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-linux-gnu; fi && if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-linux-gnu; fi && if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-linux-gnueabihf; fi && for key in 01EA5486DE18A882D4C2684590C8019E36C2E964 ; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" || gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ; done && curl -SLO https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz && curl -SLO https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc && gpg --verify SHA256SUMS.asc && grep " bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz" SHA256SUMS.asc | sha256sum -c - && tar -xzf *.tar.gz -C /opt && rm *.tar.gz *.asc && rm -rf /opt/bitcoin-${BITCOIN_VERSION}/bin/bitcoin-qt
---> Running in 334bd0f86a60
+ [ = linux/amd64 ]
+ [ = linux/arm64 ]
+ [ = linux/arm/v7 ]
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 01EA5486DE18A882D4C2684590C8019E36C2E964
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 90C8019E36C2E964: public key "Wladimir J. van der Laan (Bitcoin Core binary release signing key) <laanwj@gmail.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
+ curl -SLO https://bitcoin.org/bin/bitcoin-core-0.21.0/bitcoin-0.21.0-.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 156 0 0:00:01 0:00:01 --:--:-- 156
+ curl -SLO https://bitcoin.org/bin/bitcoin-core-0.21.0/SHA256SUMS.asc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1769 100 1769 0 0 1989 0 --:--:-- --:--:-- --:--:-- 1987
+ gpg --verify SHA256SUMS.asc
gpg: Signature made Thu Jan 14 12:35:31 2021 UTC
gpg: using RSA key 90C8019E36C2E964
gpg: Good signature from "Wladimir J. van der Laan (Bitcoin Core binary release signing key) <laanwj@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 01EA 5486 DE18 A882 D4C2 6845 90C8 019E 36C2 E964
+ grep bitcoin-0.21.0-.tar.gz SHA256SUMS.asc
+ sha256sum -c -
sha256sum: 'standard input': no properly formatted SHA256 checksum lines found
The command '/bin/sh -c set -ex && if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-linux-gnu; fi && if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-linux-gnu; fi && if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-linux-gnueabihf; fi && for key in 01EA5486DE18A882D4C2684590C8019E36C2E964 ; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" || gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ; done && curl -SLO https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz && curl -SLO https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc && gpg --verify SHA256SUMS.asc && grep " bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz" SHA256SUMS.asc | sha256sum -c - && tar -xzf *.tar.gz -C /opt && rm *.tar.gz *.asc && rm -rf /opt/bitcoin-${BITCOIN_VERSION}/bin/bitcoin-qt' returned a non-zero code: 1
ruimarinho commented
Hi @schildbach -- it seems you've hit this problem before. See #99.
schildbach commented
Ah sorry, I forgot.