I cant update my Zcash node to v4.6.0-1 in Docker

Hi , I use docker to install and set up my zcash node and it seems the install command does not find the newer version:

The value of the variable UPSTREAM_VERSION is v4.6.0-1

ARG UPSTREAM_VERSION
RUN apt-get update && apt-get -y install apt-transport-https wget gnupg2 && \ 
    wget -qO - https://apt.z.cash/zcash.asc | apt-key add - && \
    echo "deb [arch=amd64] https://apt.z.cash/ stretch main" | tee /etc/apt/sources.list.d/zcash.list && \
    apt-get update && apt-get -y install -y zcash=${UPSTREAM_VERSION#v}

The error message:

Get:9 https://apt.z.cash stretch/main amd64 Packages [4987 B]
Fetched 9247 B in 3s (2817 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '4.6.0-1' for 'zcash' was not found

stderr: Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Building zcash.public.dappnode.eth
The command '/bin/sh -c apt-get update && apt-get -y install apt-transport-https wget gnupg2 &&     wget -qO - https://apt.z.cash/zcash.asc | apt-key add - &&     echo "deb [arch=amd64] https://apt.z.cash/ stretch main" | tee /etc/apt/sources.list.d/zcash.list &&     apt-get update && apt-get -y install -y zcash=${UPSTREAM_VERSION#v}' returned a non-zero code: 100
Service 'zcash.public.dappnode.eth' failed to build
1 Like

The Debian version string is “4.6.0+1”.

This is because Debian’s version number specification disallows hyphens if there is no debian_revision, so e.g. “4.6.0-1” is not a valid version number.

We intend to avoid this in future by changing the convention for hotfix version numbers so that they increment the “micro” version (after the second ‘.’) and no longer contain any hyphen, e.g. 4.6.0-1 would instead have been 4.6.1.

7 Likes

Thank you very much! no problem using 4.6.0+1

2 Likes