julianxhokaxhiu / docker-woocommerce

PHP Docker for Woocommerce on Steroids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package 'libpng12-dev' has no installation candidate

d3v-null opened this issue · comments

Hi there,
I can only get your container to build when I replace the package libpng12-dev in the Dockerfile with libpng-dev as this issue explains. https://github.com/deskpro/deskpro-docker/issues/1

Here is the output when I try to build the container without the changes.

❱ docker version
Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:05:26 2018
 OS/Arch:           darwin/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:13:46 2018
  OS/Arch:          linux/amd64
  Experimental:     true
❱ docker build .
Sending build context to Docker daemon  70.66kB
Step 1/13 : FROM php:7.1-apache
7.1-apache: Pulling from library/php
be8881be8156: Already exists
69a25f7e4930: Already exists
65632e89c5f4: Already exists
cd75fa32da8f: Already exists
15bc7736db11: Already exists
b2c40cef4807: Already exists
f3507e55e5eb: Already exists
e6006cdfa16b: Already exists
a3ed406e3c88: Already exists
56f65b65ac41: Pull complete
afbec29b0bb6: Pull complete
9ec3a30826f7: Pull complete
164c70e1e858: Pull complete
32192c53042f: Pull complete
Digest: sha256:bc97986289c9397560aad8ee05ed572f88cd42d9df6aab5a05f54ea5627db013
Status: Downloaded newer image for php:7.1-apache
 ---> a1368f6caa3e
Step 2/13 : MAINTAINER Julian Xhokaxhiu <info [at] julianxhokaxhiu [dot] com>
 ---> Running in 5cc6b9f23407
Removing intermediate container 5cc6b9f23407
 ---> 9a2ad960db28
Step 3/13 : LABEL Description="PHP Docker for Woocommerce on Steroids" Vendor="Julian Xhokaxhiu" Version="0.2"
 ---> Running in 73d652411b87
Removing intermediate container 73d652411b87
 ---> ed75fae106a3
Step 4/13 : RUN a2enmod rewrite   && a2enmod headers
 ---> Running in 8c0434be22fd
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart
Enabling module headers.
To activate the new configuration, you need to run:
  service apache2 restart
Removing intermediate container 8c0434be22fd
 ---> 4e0633f1e23c
Step 5/13 : RUN apt-get update   && apt-get install -y libpng12-dev libjpeg-dev libxml2-dev libxslt-dev libgraphicsmagick1-dev graphicsmagick   && rm -rf /var/lib/apt/lists/*   && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr   && docker-php-ext-install gd json mysqli pdo pdo_mysql opcache gettext exif calendar soap xsl sockets wddx
 ---> Running in 7143a0111eff
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [386 kB]
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5148 B]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7099 kB]
Fetched 7796 kB in 5s (1323 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libpng12-dev' has no installation candidate
The command '/bin/sh -c apt-get update   && apt-get install -y libpng12-dev libjpeg-dev libxml2-dev libxslt-dev libgraphicsmagick1-dev graphicsmagick   && rm -rf /var/lib/apt/lists/*   && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr   && docker-php-ext-install gd json mysqli pdo pdo_mysql opcache gettext exif calendar soap xsl sockets wddx' returned a non-zero code: 100

Thanks.

Sorry, saw it only now. I managed to fix it the other day. Feel free to try it now :)