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

Container does not start. #15

Closed
robertnac opened this issue Dec 20, 2018 · 8 comments
Closed

Container does not start. #15

robertnac opened this issue Dec 20, 2018 · 8 comments

Comments

@robertnac
Copy link

Container does not start. I get the following output:

E: Package 'apt-utils' has no installation candidate
E: Unable to locate package nano
E: Unable to locate package wget
E: Package 'dialog' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package git
E: Unable to locate package libcurl3-dev
E: Unable to locate package zip
ERROR: Service 'webserver' failed to build: The command '/bin/sh -c apt-get -y install apt-utils nano wget dialog build-essential git curl libcurl3 libcurl3-dev zip' returned a non-zero code: 100

@narendravaghela
Copy link
Member

@robertnac Which branch are you using?

@robertnac
Copy link
Author

robertnac commented Dec 21, 2018 via email

@rohdef
Copy link

rohdef commented Dec 28, 2018

I get something more or less identical, checkout out 7.2.x as described in the readme:

rohdef@kaylee ~/g/docker-compose-lamp> docker-compose up -d
Creating network "docker-compose-lamp_default" with the default driver
Building mysql
Step 1/1 : FROM mysql:5.7
 ---> ae6b78bedf88
Successfully built ae6b78bedf88
Successfully tagged docker-compose-lamp_mysql:latest
WARNING: Image for service mysql was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building webserver
Step 1/27 : FROM php:7.2-apache
 ---> ae0cd2ac1555
Step 2/27 : RUN apt-get -y update --fix-missing
 ---> Using cache
 ---> d43489184fa6
Step 3/27 : RUN apt-get upgrade -y
 ---> Using cache
 ---> 7c897de86ce0
Step 4/27 : RUN apt-get -y install apt-utils nano wget dialog
 ---> Running in f5ad6a051cc5
Reading package lists...
Building dependency tree...
Reading state information...
Package dialog 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

Package apt-utils 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
However the following packages replace it:
  apt

E: Package 'apt-utils' has no installation candidate
E: Unable to locate package nano
E: Unable to locate package wget
E: Package 'dialog' has no installation candidate
ERROR: Service 'webserver' failed to build: The command '/bin/sh -c apt-get -y install apt-utils nano wget dialog' returned a non-zero code: 100

@rohdef
Copy link

rohdef commented Dec 29, 2018

I've tested it in both Ubuntu 18.04 and 18.10 btw.

@rohdef
Copy link

rohdef commented Dec 29, 2018

Tried doing an install on a complete clean system, output changed slightly. It also had the following warnings:

e60049bf081a: Pull complete
Digest: sha256:44f9190e4ac97d6f67aa100aeb1559b283d7859f276a4d01d770e74d76b71f45
Status: Downloaded newer image for php:7.2-apache
 ---> 342a9fa6554c
Step 2/27 : RUN apt-get -y update --fix-missing
 ---> Running in 2d0d40449b25
Err:1 http://deb.debian.org/debian stretch InRelease
  Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security stretch/updates InRelease
  Temporary failure resolving 'security.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Err:4 http://security.debian.org/debian-security buster/updates InRelease
  Temporary failure resolving 'security.debian.org'
Err:5 http://deb.debian.org/debian buster InRelease
  Temporary failure resolving 'deb.debian.org'
Err:6 http://deb.debian.org/debian buster-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 2d0d40449b25
 ---> d5868f20638a
Step 3/27 : RUN apt-get upgrade -y
 ---> Running in 6606883ba0fe

@rohdef
Copy link

rohdef commented Dec 29, 2018

Ooook, turns out the docker in the apt repositories is outdated. Got it up and running now. I uninstalled the docker and docker-composer from apt, then installed using snap in stead

@narendravaghela
Copy link
Member

@robertnac Could you please try the solution proposed by @rohdef ?

I am closing it. Please reopen if the issue is still present.

@danilopimenta
Copy link

danilopimenta commented May 1, 2019

@robertnac and @narendravaghela
try put this on bin/webserver/Dockerfile

RUN echo deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse \
         deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse \
         deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse \
         deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse \
         deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse >> /etc/apt/sources.list

it Work for me

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

4 participants