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

**URL:** <https://discuss.elastic.co/t/trying-to-build-logstash-5-5-1-docker-image-but-fail-due-to-missing-libzmq5-package/97079>\
**Category:** Logstash\
**Created:** [August 15, 2017, 9:16am UTC](https://discuss.elastic.co/t/trying-to-build-logstash-5-5-1-docker-image-but-fail-due-to-missing-libzmq5-package/97079 "2017-08-15T09:16:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [August 15, 2017, 9:16am UTC](https://discuss.elastic.co/t/trying-to-build-logstash-5-5-1-docker-image-but-fail-due-to-missing-libzmq5-package/97079/1 "2017-08-15T09:16:28Z")

</div>

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](http://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](http://security.debian.org) jessie/updates InRelease [63.1 kB]  
Get:2 [http://security.debian.org](http://security.debian.org) jessie/updates/main amd64 Packages [555 kB]  
Ign [http://deb.debian.org](http://deb.debian.org) jessie InRelease  
Get:3 [http://deb.debian.org](http://deb.debian.org) jessie-updates InRelease [145 kB]  
Get:4 [http://deb.debian.org](http://deb.debian.org) jessie-backports InRelease [166 kB]  
Get:5 [http://deb.debian.org](http://deb.debian.org) jessie Release.gpg [2373 B]  
Get:6 [http://deb.debian.org](http://deb.debian.org) jessie-updates/main amd64 Packages [17.8 kB]  
Get:7 [http://deb.debian.org](http://deb.debian.org) jessie-backports/main amd64 Packages [1169 kB]  
Get:8 [http://deb.debian.org](http://deb.debian.org) jessie Release [148 kB]  
Get:9 [http://deb.debian.org](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

---

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [August 17, 2017, 12:47pm UTC](https://discuss.elastic.co/t/trying-to-build-logstash-5-5-1-docker-image-but-fail-due-to-missing-libzmq5-package/97079/2 "2017-08-17T12:47:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 14, 2017, 12:47pm UTC](https://discuss.elastic.co/t/trying-to-build-logstash-5-5-1-docker-image-but-fail-due-to-missing-libzmq5-package/97079/3 "2017-09-14T12:47:29Z")

</div>

Closed on September 14, 2017, 12:47pm UTC

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