I’m trying to add an extension to a postgres image. Above a part from my Dockerfile:
FROM postgres:9.6
RUN apt-get update \
&& apt-get -y install postgres-server-dev-all \
&& rm -rf /var/lib/apt/lists/*
I got an error after the update which is :
E: Unable to locate package postgres-server-dev-all
The command '/bin/sh -c apt-get update && apt-get -y install postgres-server-dev-all && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
I’m using ubuntu 16.04LTS and docker version:
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:40 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:16:13 2018
OS/Arch: linux/amd64
Experimental: false
How can I fix that?