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


(Mathias) #1

Hi,

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 sekidocker.rnd.ki.sw.ericsson.se/proj_tb5g_devel/cran/logstash-base:0.1.4-logstash5.5.1 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 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://security.debian.org jessie/updates/main amd64 Packages [555 kB]
Ign http://deb.debian.org jessie InRelease
Get:3 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:4 http://deb.debian.org jessie-backports InRelease [166 kB]
Get:5 http://deb.debian.org jessie Release.gpg [2373 B]
Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [17.8 kB]
Get:7 http://deb.debian.org jessie-backports/main amd64 Packages [1169 kB]
Get:8 http://deb.debian.org jessie Release [148 kB]
Get:9 http://deb.debian.org 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.