Trying to build logstash 5.5.1 docker image but fail due to missing libzmq5 package

(Mathias) #1


I try to upgrade logstash from 5.4.0 which use libzmq3 to logstash 5.5.1 which uses libzmg5.
I fail to build the contianer due to missing package "E: Unable to locate package libzmq5".

docker build --label=cran-5g/Dockerfiles-makefile --label logstash-base-0.1.4-logstash5.5.1 -t logstash-base
Sending build context to Docker daemon 6.656 kB
Step 1 : FROM openjdk:8-jre
---> 407a6774b2b5
Step 2 : RUN apt-get update && apt-get install -y --no-install-recommends apt-transport-https libzmq5 && rm -rf /var/lib/apt/lists/*
---> Running in 05cda474c8d1
Get:1 jessie/updates InRelease [63.1 kB]
Get:2 jessie/updates/main amd64 Packages [555 kB]
Ign jessie InRelease
Get:3 jessie-updates InRelease [145 kB]
Get:4 jessie-backports InRelease [166 kB]
Get:5 jessie Release.gpg [2373 B]
Get:6 jessie-updates/main amd64 Packages [17.8 kB]
Get:7 jessie-backports/main amd64 Packages [1169 kB]
Get:8 jessie Release [148 kB]
Get:9 jessie/main amd64 Packages [9063 kB]
Fetched 11.3 MB in 2s (4202 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libzmq5
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends apt-transport-https libzmq5 && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Using libzmq3 instead of libzmq5 makes build work but I do not know the consequences?

Br Mathias

(Mathias) #2

The problem was that my registry was not clean.
There was an old base image with old version of libzmq.

Cleaning the registry solved the problem.

Br Mathias

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.