{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/php/issues/126","labels_url":"https://api.github.com/repos/docker-library/php/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/php/issues/126/comments","events_url":"https://api.github.com/repos/docker-library/php/issues/126/events","html_url":"https://github.com/docker-library/php/issues/126","id":100108394,"number":126,"title":"[php:5.6-fpm] Latest repository image is broken?","user":{"login":"FelikZ","id":1080269,"avatar_url":"https://avatars.githubusercontent.com/u/1080269?v=3","gravatar_id":"","url":"https://api.github.com/users/FelikZ","html_url":"https://github.com/FelikZ","followers_url":"https://api.github.com/users/FelikZ/followers","following_url":"https://api.github.com/users/FelikZ/following{/other_user}","gists_url":"https://api.github.com/users/FelikZ/gists{/gist_id}","starred_url":"https://api.github.com/users/FelikZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelikZ/subscriptions","organizations_url":"https://api.github.com/users/FelikZ/orgs","repos_url":"https://api.github.com/users/FelikZ/repos","events_url":"https://api.github.com/users/FelikZ/events{/privacy}","received_events_url":"https://api.github.com/users/FelikZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-10T16:29:08Z","updated_at":"2015-09-14T05:20:12Z","closed_at":"2015-08-13T09:16:52Z","body":"I have extended php:5.6-fpm Dockerfile with official [nginx Dockerfile](https://github.com/nginxinc/docker-nginx/blob/master/Dockerfile) instructions in order to get single container.\r\n\r\nThis works great until today, when I have updated base image using `docker pull php:5.6-fpm`.\r\n\r\nNow I am **unable** to successfully build **from official** `php:5.6-fpm`. If I am building `php:5.6-fpm` itself **from the source** and then build my image from fresh build then it **works great** as expected.\r\n\r\nSo something is wrong in the downloaded image.\r\n\r\nHere is Dockerfile to reproduce it (cutted version):\r\n```Dockerfile\r\n    FROM php:5.6-fpm                                                                                                                                                                                                \r\n                                                                                                                                                                                                                    \r\n    ENV NGINX_VERSION 1.9.3-1~jessie                                                                                                                                                                                \r\n                                                                                                                                                                                                                    \r\n    # nginx                                                                                                                                                                                                         \r\n    RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62                                                                                                           \r\n    RUN echo \"deb http://nginx.org/packages/mainline/debian/ jessie nginx\" >> /etc/apt/sources.list                                                                                                                 \r\n                                                                                                                                                                                                                    \r\n    RUN apt-get update && apt-get install -y \\                                                                                                                                                                      \r\n        git \\                                                                                                                                                                                                       \r\n        libfreetype6-dev \\                                                                                                                                                                                          \r\n        libjpeg62-turbo-dev \\                                                                                                                                                                                       \r\n        libmcrypt-dev \\                                                                                                                                                                                             \r\n        libpng12-dev \\                                                                                                                                                                                              \r\n        libmcrypt-dev \\                                                                                                                                                                                             \r\n        zlib1g-dev \\                                                                                                                                                                                                \r\n        libssl-dev \\                                                                                                                                                                                                \r\n        libmysqlclient-dev \\                                                                                                                                                                                        \r\n        libyaml-dev \\                                                                                                                                                                                               \r\n        curl \\                                                                                                                                                                                                      \r\n        ca-certificates nginx=${NGINX_VERSION} && \\                                                                                                                                                                 \r\n        pecl install yaml && \\                                                                                                                                                                                      \r\n        rm -rf /var/lib/apt/lists/* && \\                                                                                                                                                                            \r\n        apt-get clean   \r\n```\r\n\r\nHere is the log with an error:\r\n\r\n    Building app...\r\n    Step 0 : FROM php:5.6-fpm\r\n     ---> cd612335b29e\r\n    Step 1 : ENV NGINX_VERSION 1.9.3-1~jessie\r\n     ---> Using cache\r\n     ---> 12c059d20829\r\n    Step 2 : RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62\r\n     ---> Using cache\r\n     ---> 4ca6cb43f01a\r\n    Step 3 : RUN echo \"deb http://nginx.org/packages/mainline/debian/ jessie nginx\" >> /etc/apt/sources.list\r\n     ---> Using cache\r\n     ---> 1b842e932250\r\n    Step 4 : RUN apt-get update && apt-get install -y     git     libfreetype6-dev     libjpeg62-turbo-dev     libmcrypt-dev     libpng12-dev     libmcrypt-dev     zlib1g-dev     libssl-dev     libmysqlclient-dev     libyaml-dev     curl     ca-certificates nginx=${NGINX_VERSION} &&     pecl install yaml &&     rm -rf /var/lib/apt/lists/* &&     apt-get clean\r\n     ---> Running in a3885d95333d\r\n    Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]\r\n    Get:2 http://httpredir.debian.org jessie InRelease [134 kB]\r\n    Ign http://nginx.org jessie InRelease\r\n    Get:3 http://httpredir.debian.org jessie-updates InRelease [123 kB]\r\n    Get:4 http://security.debian.org jessie/updates/main amd64 Packages [157 kB]\r\n    Get:5 http://nginx.org jessie Release.gpg [287 B]\r\n    Get:6 http://httpredir.debian.org jessie/main amd64 Packages [9038 kB]\r\n    Get:7 http://nginx.org jessie Release [2307 B]\r\n    Get:8 http://nginx.org jessie/nginx amd64 Packages [827 B]\r\n    Get:9 http://httpredir.debian.org jessie-updates/main amd64 Packages [3616 B]\r\n    Fetched 9523 kB in 5s (1655 kB/s)\r\n    Reading package lists...\r\n    Reading package lists...\r\n    Building dependency tree...\r\n    Reading state information...\r\n    ca-certificates is already the newest version.\r\n    curl is already the newest version.\r\n    The following extra packages will be installed:\r\n      git-man less libbsd0 libcurl3-gnutls libedit2 liberror-perl libexpat1\r\n      libfreetype6 libjpeg62-turbo libmcrypt4 libmysqlclient18 libpng12-0 libpopt0\r\n      libssl-doc libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1\r\n      libyaml-0-2 mysql-common openssh-client patch rsync xauth\r\n    Suggested packages:\r\n      gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email\r\n      git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn mcrypt\r\n      libyaml-doc ssh-askpass libpam-ssh keychain monkeysphere ed diffutils-doc\r\n      openssh-server\r\n    Recommended packages:\r\n      ssh-client\r\n    The following NEW packages will be installed:\r\n      git git-man less libbsd0 libcurl3-gnutls libedit2 liberror-perl libexpat1\r\n      libfreetype6 libfreetype6-dev libjpeg62-turbo libjpeg62-turbo-dev\r\n      libmcrypt-dev libmcrypt4 libmysqlclient-dev libmysqlclient18 libpng12-0\r\n      libpng12-dev libpopt0 libssl-dev libssl-doc libx11-6 libx11-data libxau6\r\n      libxcb1 libxdmcp6 libxext6 libxmuu1 libyaml-0-2 libyaml-dev mysql-common\r\n      nginx openssh-client patch rsync xauth zlib1g-dev\r\n    0 upgraded, 37 newly installed, 0 to remove and 1 not upgraded.\r\n    Need to get 15.0 MB of archives.\r\n    After this operation, 62.3 MB of additional disk space will be used.\r\n    Get:1 http://security.debian.org/ jessie/updates/main libexpat1 amd64 2.1.0-6+deb8u1 [80.0 kB]\r\n    Get:2 http://security.debian.org/ jessie/updates/main mysql-common all 5.5.44-0+deb8u1 [74.3 kB]\r\n    Get:3 http://security.debian.org/ jessie/updates/main libmysqlclient18 amd64 5.5.44-0+deb8u1 [664 kB]\r\n    Get:4 http://httpredir.debian.org/debian/ jessie/main libpopt0 amd64 1.16-10 [49.2 kB]\r\n    Get:5 http://httpredir.debian.org/debian/ jessie/main libbsd0 amd64 0.7.0-2 [67.9 kB]\r\n    Get:6 http://nginx.org/packages/mainline/debian/ jessie/nginx nginx amd64 1.9.3-1~jessie [480 kB]\r\n    Get:7 http://security.debian.org/ jessie/updates/main libmysqlclient-dev amd64 5.5.44-0+deb8u1 [948 kB]\r\n    Get:8 http://httpredir.debian.org/debian/ jessie/main libedit2 amd64 3.1-20140620-2 [85.1 kB]\r\n    Get:9 http://httpredir.debian.org/debian/ jessie/main libcurl3-gnutls amd64 7.38.0-4+deb8u2 [251 kB]\r\n    Get:10 http://security.debian.org/ jessie/updates/main libssl-dev amd64 1.0.1k-3+deb8u1 [1272 kB]\r\n    Get:11 http://httpredir.debian.org/debian/ jessie/main libpng12-0 amd64 1.2.50-2+b2 [172 kB]\r\n    Get:12 http://httpredir.debian.org/debian/ jessie/main libfreetype6 amd64 2.5.2-3 [466 kB]\r\n    Get:13 http://security.debian.org/ jessie/updates/main libssl-doc all 1.0.1k-3+deb8u1 [1138 kB]\r\n    Get:14 http://httpredir.debian.org/debian/ jessie/main libxau6 amd64 1:1.0.8-1 [20.7 kB]\r\n    Get:15 http://httpredir.debian.org/debian/ jessie/main libxdmcp6 amd64 1:1.1.1-1+b1 [24.9 kB]\r\n    Get:16 http://httpredir.debian.org/debian/ jessie/main libxcb1 amd64 1.10-3+b1 [44.4 kB]\r\n    Get:17 http://httpredir.debian.org/debian/ jessie/main libx11-data all 2:1.6.2-3 [126 kB]\r\n    Get:18 http://httpredir.debian.org/debian/ jessie/main libx11-6 amd64 2:1.6.2-3 [729 kB]\r\n    Get:19 http://httpredir.debian.org/debian/ jessie/main libxext6 amd64 2:1.3.3-1 [52.7 kB]\r\n    Get:20 http://httpredir.debian.org/debian/ jessie/main libxmuu1 amd64 2:1.1.2-1 [23.3 kB]\r\n    Get:21 http://httpredir.debian.org/debian/ jessie/main libyaml-0-2 amd64 0.1.6-3 [50.4 kB]\r\n    Get:22 http://httpredir.debian.org/debian/ jessie/main less amd64 458-3 [124 kB]\r\n    Get:23 http://httpredir.debian.org/debian/ jessie/main openssh-client amd64 1:6.7p1-5 [691 kB]\r\n    Get:24 http://httpredir.debian.org/debian/ jessie/main patch amd64 2.7.5-1 [109 kB]\r\n    Get:25 http://httpredir.debian.org/debian/ jessie/main liberror-perl all 0.17-1.1 [22.4 kB]\r\n    Get:26 http://httpredir.debian.org/debian/ jessie/main git-man all 1:2.1.4-2.1 [1266 kB]\r\n    Get:27 http://httpredir.debian.org/debian/ jessie/main git amd64 1:2.1.4-2.1 [3624 kB]\r\n    Get:28 http://httpredir.debian.org/debian/ jessie/main zlib1g-dev amd64 1:1.2.8.dfsg-2+b1 [206 kB]\r\n    Get:29 http://httpredir.debian.org/debian/ jessie/main libpng12-dev amd64 1.2.50-2+b2 [248 kB]\r\n    Get:30 http://httpredir.debian.org/debian/ jessie/main libfreetype6-dev amd64 2.5.2-3 [640 kB]\r\n    Get:31 http://httpredir.debian.org/debian/ jessie/main libjpeg62-turbo amd64 1:1.3.1-12 [116 kB]\r\n    Get:32 http://httpredir.debian.org/debian/ jessie/main libjpeg62-turbo-dev amd64 1:1.3.1-12 [455 kB]\r\n    Get:33 http://httpredir.debian.org/debian/ jessie/main libmcrypt4 amd64 2.5.8-3.3 [71.2 kB]\r\n    Get:34 http://httpredir.debian.org/debian/ jessie/main libmcrypt-dev amd64 2.5.8-3.3 [92.9 kB]\r\n    Get:35 http://httpredir.debian.org/debian/ jessie/main libyaml-dev amd64 0.1.6-3 [59.7 kB]\r\n    Get:36 http://httpredir.debian.org/debian/ jessie/main rsync amd64 3.1.1-3 [390 kB]\r\n    Get:37 http://httpredir.debian.org/debian/ jessie/main xauth amd64 1:1.0.9-1 [38.2 kB]\r\n    /usr/bin/perl: error while loading shared libraries: libperl.so.5.18: cannot open shared object file: No such file or directory\r\n    Fetched 15.0 MB in 13s (1102 kB/s)\r\n    Selecting previously unselected package libpopt0:amd64.\r\n    (Reading database ... 12163 files and directories currently installed.)\r\n    Preparing to unpack .../libpopt0_1.16-10_amd64.deb ...\r\n    Unpacking libpopt0:amd64 (1.16-10) ...\r\n    Selecting previously unselected package libbsd0:amd64.\r\n    Preparing to unpack .../libbsd0_0.7.0-2_amd64.deb ...\r\n    Unpacking libbsd0:amd64 (0.7.0-2) ...\r\n    Selecting previously unselected package libedit2:amd64.\r\n    Preparing to unpack .../libedit2_3.1-20140620-2_amd64.deb ...\r\n    Unpacking libedit2:amd64 (3.1-20140620-2) ...\r\n    Selecting previously unselected package libcurl3-gnutls:amd64.\r\n    Preparing to unpack .../libcurl3-gnutls_7.38.0-4+deb8u2_amd64.deb ...\r\n    Unpacking libcurl3-gnutls:amd64 (7.38.0-4+deb8u2) ...\r\n    Selecting previously unselected package libexpat1:amd64.\r\n    Preparing to unpack .../libexpat1_2.1.0-6+deb8u1_amd64.deb ...\r\n    Unpacking libexpat1:amd64 (2.1.0-6+deb8u1) ...\r\n    Selecting previously unselected package libpng12-0:amd64.\r\n    Preparing to unpack .../libpng12-0_1.2.50-2+b2_amd64.deb ...\r\n    Unpacking libpng12-0:amd64 (1.2.50-2+b2) ...\r\n    Selecting previously unselected package libfreetype6:amd64.\r\n    Preparing to unpack .../libfreetype6_2.5.2-3_amd64.deb ...\r\n    Unpacking libfreetype6:amd64 (2.5.2-3) ...\r\n    Selecting previously unselected package mysql-common.\r\n    Preparing to unpack .../mysql-common_5.5.44-0+deb8u1_all.deb ...\r\n    Unpacking mysql-common (5.5.44-0+deb8u1) ...\r\n    Selecting previously unselected package libmysqlclient18:amd64.\r\n    Preparing to unpack .../libmysqlclient18_5.5.44-0+deb8u1_amd64.deb ...\r\n    Unpacking libmysqlclient18:amd64 (5.5.44-0+deb8u1) ...\r\n    Selecting previously unselected package libxau6:amd64.\r\n    Preparing to unpack .../libxau6_1%3a1.0.8-1_amd64.deb ...\r\n    Unpacking libxau6:amd64 (1:1.0.8-1) ...\r\n    Selecting previously unselected package libxdmcp6:amd64.\r\n    Preparing to unpack .../libxdmcp6_1%3a1.1.1-1+b1_amd64.deb ...\r\n    Unpacking libxdmcp6:amd64 (1:1.1.1-1+b1) ...\r\n    Selecting previously unselected package libxcb1:amd64.\r\n    Preparing to unpack .../libxcb1_1.10-3+b1_amd64.deb ...\r\n    Unpacking libxcb1:amd64 (1.10-3+b1) ...\r\n    Selecting previously unselected package libx11-data.\r\n    Preparing to unpack .../libx11-data_2%3a1.6.2-3_all.deb ...\r\n    Unpacking libx11-data (2:1.6.2-3) ...\r\n    Selecting previously unselected package libx11-6:amd64.\r\n    Preparing to unpack .../libx11-6_2%3a1.6.2-3_amd64.deb ...\r\n    Unpacking libx11-6:amd64 (2:1.6.2-3) ...\r\n    Selecting previously unselected package libxext6:amd64.\r\n    Preparing to unpack .../libxext6_2%3a1.3.3-1_amd64.deb ...\r\n    Unpacking libxext6:amd64 (2:1.3.3-1) ...\r\n    Selecting previously unselected package libxmuu1:amd64.\r\n    Preparing to unpack .../libxmuu1_2%3a1.1.2-1_amd64.deb ...\r\n    Unpacking libxmuu1:amd64 (2:1.1.2-1) ...\r\n    Selecting previously unselected package libyaml-0-2:amd64.\r\n    Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ...\r\n    Unpacking libyaml-0-2:amd64 (0.1.6-3) ...\r\n    Selecting previously unselected package less.\r\n    Preparing to unpack .../archives/less_458-3_amd64.deb ...\r\n    Unpacking less (458-3) ...\r\n    Selecting previously unselected package openssh-client.\r\n    Preparing to unpack .../openssh-client_1%3a6.7p1-5_amd64.deb ...\r\n    Unpacking openssh-client (1:6.7p1-5) ...\r\n    Selecting previously unselected package patch.\r\n    Preparing to unpack .../patch_2.7.5-1_amd64.deb ...\r\n    Unpacking patch (2.7.5-1) ...\r\n    Selecting previously unselected package liberror-perl.\r\n    Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...\r\n    Unpacking liberror-perl (0.17-1.1) ...\r\n    Selecting previously unselected package git-man.\r\n    Preparing to unpack .../git-man_1%3a2.1.4-2.1_all.deb ...\r\n    Unpacking git-man (1:2.1.4-2.1) ...\r\n    Selecting previously unselected package git.\r\n    Preparing to unpack .../git_1%3a2.1.4-2.1_amd64.deb ...\r\n    Unpacking git (1:2.1.4-2.1) ...\r\n    Selecting previously unselected package zlib1g-dev:amd64.\r\n    Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2+b1_amd64.deb ...\r\n    Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2+b1) ...\r\n    Selecting previously unselected package libpng12-dev:amd64.\r\n    Preparing to unpack .../libpng12-dev_1.2.50-2+b2_amd64.deb ...\r\n    Unpacking libpng12-dev:amd64 (1.2.50-2+b2) ...\r\n    Selecting previously unselected package libfreetype6-dev.\r\n    Preparing to unpack .../libfreetype6-dev_2.5.2-3_amd64.deb ...\r\n    Unpacking libfreetype6-dev (2.5.2-3) ...\r\n    Selecting previously unselected package libjpeg62-turbo:amd64.\r\n    Preparing to unpack .../libjpeg62-turbo_1%3a1.3.1-12_amd64.deb ...\r\n    Unpacking libjpeg62-turbo:amd64 (1:1.3.1-12) ...\r\n    Selecting previously unselected package libjpeg62-turbo-dev:amd64.\r\n    Preparing to unpack .../libjpeg62-turbo-dev_1%3a1.3.1-12_amd64.deb ...\r\n    Unpacking libjpeg62-turbo-dev:amd64 (1:1.3.1-12) ...\r\n    Selecting previously unselected package libmcrypt4.\r\n    Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ...\r\n    Unpacking libmcrypt4 (2.5.8-3.3) ...\r\n    Selecting previously unselected package libmcrypt-dev.\r\n    Preparing to unpack .../libmcrypt-dev_2.5.8-3.3_amd64.deb ...\r\n    Unpacking libmcrypt-dev (2.5.8-3.3) ...\r\n    Selecting previously unselected package libmysqlclient-dev.\r\n    Preparing to unpack .../libmysqlclient-dev_5.5.44-0+deb8u1_amd64.deb ...\r\n    Unpacking libmysqlclient-dev (5.5.44-0+deb8u1) ...\r\n    Selecting previously unselected package libssl-dev:amd64.\r\n    Preparing to unpack .../libssl-dev_1.0.1k-3+deb8u1_amd64.deb ...\r\n    Unpacking libssl-dev:amd64 (1.0.1k-3+deb8u1) ...\r\n    Selecting previously unselected package libssl-doc.\r\n    Preparing to unpack .../libssl-doc_1.0.1k-3+deb8u1_all.deb ...\r\n    Unpacking libssl-doc (1.0.1k-3+deb8u1) ...\r\n    Selecting previously unselected package libyaml-dev:amd64.\r\n    Preparing to unpack .../libyaml-dev_0.1.6-3_amd64.deb ...\r\n    Unpacking libyaml-dev:amd64 (0.1.6-3) ...\r\n    Selecting previously unselected package nginx.\r\n    Preparing to unpack .../nginx_1.9.3-1~jessie_amd64.deb ...\r\n    /usr/bin/perl: error while loading shared libraries: libperl.so.5.18: cannot open shared object file: No such file or directory\r\n    dpkg: error processing archive /var/cache/apt/archives/nginx_1.9.3-1~jessie_amd64.deb (--unpack):\r\n     subprocess new pre-installation script returned error exit status 127\r\n    Selecting previously unselected package rsync.\r\n    Preparing to unpack .../rsync_3.1.1-3_amd64.deb ...\r\n    Unpacking rsync (3.1.1-3) ...\r\n    Selecting previously unselected package xauth.\r\n    Preparing to unpack .../xauth_1%3a1.0.9-1_amd64.deb ...\r\n    Unpacking xauth (1:1.0.9-1) ...\r\n    Processing triggers for systemd (215-17+deb8u1) ...\r\n    Errors were encountered while processing:\r\n     /var/cache/apt/archives/nginx_1.9.3-1~jessie_amd64.deb\r\n    E: Sub-process /usr/bin/dpkg returned an error code (1)\r\n    Service 'app' failed to build: The command [/bin/sh -c apt-get update && apt-get install -y     git     libfreetype6-dev     libjpeg62-turbo-dev     libmcrypt-dev     libpng12-dev     libmcrypt-dev     zlib1g-dev     libssl-dev     libmysqlclient-dev     libyaml-dev     curl     ca-certificates nginx=${NGINX_VERSION} &&     pecl install yaml &&     rm -rf /var/lib/apt/lists/* &&     apt-get clean] returned a non-zero code: 100\r\n"},"comment":{"url":"https://api.github.com/repos/docker-library/php/issues/comments/139963019","html_url":"https://github.com/docker-library/php/issues/126#issuecomment-139963019","issue_url":"https://api.github.com/repos/docker-library/php/issues/126","id":139963019,"user":{"login":"k0377","id":1057526,"avatar_url":"https://avatars.githubusercontent.com/u/1057526?v=3","gravatar_id":"","url":"https://api.github.com/users/k0377","html_url":"https://github.com/k0377","followers_url":"https://api.github.com/users/k0377/followers","following_url":"https://api.github.com/users/k0377/following{/other_user}","gists_url":"https://api.github.com/users/k0377/gists{/gist_id}","starred_url":"https://api.github.com/users/k0377/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0377/subscriptions","organizations_url":"https://api.github.com/users/k0377/orgs","repos_url":"https://api.github.com/users/k0377/repos","events_url":"https://api.github.com/users/k0377/events{/privacy}","received_events_url":"https://api.github.com/users/k0377/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T05:20:12Z","updated_at":"2015-09-14T05:20:12Z","body":"I've the same probem. Stop all containers and removing all images doesn't help. :crying_cat_face: "}}