Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-build issue: "Package 'libpng12-dev' has no installation candidate" #6

Open
torfinnberset opened this issue Aug 7, 2019 · 2 comments

Comments

@torfinnberset
Copy link

There's an error when performing docker build, seemingly by a package which has been removed:

$ docker build -t "kitware/cdash-docker" .

Sending build context to Docker daemon  119.8kB
Step 1/10 : FROM php:7.0-apache
 ---> aa67a9c9814f
Step 2/10 : LABEL maintainer="Omar Padron <omar.padron@kitware.com>"
 ---> Using cache
 ---> 2b951716908f
Step 3/10 : RUN curl -sL https://deb.nodesource.com/setup_6.x | bash                        && apt-get install -y git libbz2-dev libfreetype6-dev libjpeg62-turbo-dev         libmcrypt-dev libpng12-dev libpq-dev libxslt-dev libxss1 nodejs unzip wget     zip                                                                         && docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql                && docker-php-ext-configure gd --with-freetype-dir=/usr/include/                                              --with-jpeg-dir=/usr/include/                   && docker-php-ext-install -j$(nproc) bcmath bz2 gd pdo_mysql pdo_pgsql xsl     && pecl install xdebug-2.5.5                                                   && docker-php-ext-enable xdebug                                                && (                                                                                echo '544e09ee 996cdf60 ece3804a bc52599c'                                   ; echo '22b1f40f 4323403c 44d44fdf dd586475'                                   ; echo 'ca9813a8 58088ffb c1f233e9 b180f061'                                   ) | tr -d "\\n " | sed 's/$/  -/g' > checksum                               && curl -o - 'https://getcomposer.org/installer'                               |  tee composer-setup.php                                                      |  sha384sum -c checksum                                                       && rm checksum                                                                 || ( rm -f checksum composer-setup.php && false )                              && php composer-setup.php --install-dir=/usr/local/bin --filename=composer     && php -r "unlink('composer-setup.php');"                                      && composer self-update --no-interaction
 ---> Running in 6a9ca735facb

## Installing the NodeSource Node.js 6.x LTS Boron repo...


## Populating apt-get cache...

+ apt-get update
Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [501 kB]
Ign:2 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 [27.4 kB]
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 [7082 kB]
Fetched 7917 kB in 3s (2372 kB/s)
Reading package lists...

## Installing packages required for setup: apt-transport-https lsb-release gnupg...

+ apt-get install -y apt-transport-https lsb-release gnupg > /dev/null 2>&1

## Confirming "stretch" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK

## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...

+ echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Get:2 https://deb.nodesource.com/node_6.x stretch InRelease [4608 B]
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:4 https://deb.nodesource.com/node_6.x stretch/main amd64 Packages [1007 B]
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch Release
Fetched 5615 B in 0s (11.8 kB/s)
Reading package lists...

## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn


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 curl -sL https://deb.nodesource.com/setup_6.x | bash                        && apt-get install -y git libbz2-dev libfreetype6-dev libjpeg62-turbo-dev         libmcrypt-dev libpng12-dev libpq-dev libxslt-dev libxss1 nodejs unzip wget     zip                                                                         && docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql                && docker-php-ext-configure gd --with-freetype-dir=/usr/include/                                              --with-jpeg-dir=/usr/include/                   && docker-php-ext-install -j$(nproc) bcmath bz2 gd pdo_mysql pdo_pgsql xsl     && pecl install xdebug-2.5.5                                                   && docker-php-ext-enable xdebug                                                && (                                                                                echo '544e09ee 996cdf60 ece3804a bc52599c'                                   ; echo '22b1f40f 4323403c 44d44fdf dd586475'                                   ; echo 'ca9813a8 58088ffb c1f233e9 b180f061'                                   ) | tr -d "\\n " | sed 's/$/  -/g' > checksum                               && curl -o - 'https://getcomposer.org/installer'                               |  tee composer-setup.php                                                      |  sha384sum -c checksum                                                       && rm checksum                                                                 || ( rm -f checksum composer-setup.php && false )                              && php composer-setup.php --install-dir=/usr/local/bin --filename=composer     && php -r "unlink('composer-setup.php');"                                      && composer self-update --no-interaction' returned a non-zero code: 1
@hjmjohnson
Copy link

See PR #5 which seems to address this failure.

@nadav74
Copy link

nadav74 commented Sep 27, 2019

The correct fix is to replace libpng12-dev with libpng-dev per this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants