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

packages missing while running bootstrap/build_docker_images.sh #2

Open
kchsieh opened this issue Feb 14, 2015 · 3 comments
Open

packages missing while running bootstrap/build_docker_images.sh #2

kchsieh opened this issue Feb 14, 2015 · 3 comments

Comments

@kchsieh
Copy link

kchsieh commented Feb 14, 2015

Getting the following error when running bootstrap/build_docker_images.sh

building the Docker image for gerrit
Sending build context to Docker daemon 1.268 MB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:trusty
---> 5ba9dab47459
Step 1 : MAINTAINER Christian Posta [email protected]
---> Using cache
---> 3abd41210d79
Step 2 : ENV GERRIT_HOME /home/gerrit
---> Using cache
---> 6ec43a11575f
Step 3 : ENV GERRIT_USER gerrit
---> Using cache
---> 256512dde324
Step 4 : ENV GERRIT_WAR /home/gerrit/gerrit.war
---> Using cache
---> c4c310fb2581
Step 5 : RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
---> Using cache
---> dd86b31142f8
Step 6 : RUN apt-get update
---> Using cache
---> bf32745154f9
Step 7 : RUN apt-get upgrade -y
---> Using cache
---> 8ce0a49ca13c
Step 8 : RUN useradd -m ${GERRIT_USER}
---> Using cache
---> f99806922195
Step 9 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes tzdata tzdata-java openjdk-6-jre-headless sudo git-core supervisor vim-tiny
---> Running in 56af5dd36ccf
Reading package lists...
Building dependency tree...
Reading state information...
E: Package 'openjdk-6-jre-headless' has no installation candidate
E: Unable to locate package supervisor
Package openjdk-6-jre-headless 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:
icedtea-netx-common icedtea-netx default-jre-headless

2015/02/13 20:41:42 The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes tzdata tzdata-java openjdk-6-jre-headless sudo git-core supervisor vim-tiny] returned a non-zero code: 100

@kchsieh
Copy link
Author

kchsieh commented Feb 16, 2015

When I changed the file /gerrit-docker/Dockerfile by adding $(lsb_release -sc) in line 13, like this:
RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) trusty main universe" > /etc/apt/sources.list

I got more information in the error message:
$ sudo docker build -t fabric8:gerrit .
[sudo] password for kchsieh:
Sending build context to Docker daemon 1.268 MB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:trusty
---> 5ba9dab47459
Step 1 : MAINTAINER Christian Posta [email protected]
---> Using cache
---> 3abd41210d79
Step 2 : ENV GERRIT_HOME /home/gerrit
---> Using cache
---> 6ec43a11575f
Step 3 : ENV GERRIT_USER gerrit
---> Using cache
---> 256512dde324
Step 4 : ENV GERRIT_WAR /home/gerrit/gerrit.war
---> Using cache
---> c4c310fb2581
Step 5 : RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) trusty main universe" > /etc/apt/sources.list
---> Running in e5261ccd0aeb
---> c10594e7e833
Removing intermediate container e5261ccd0aeb
Step 6 : RUN apt-get update
---> Running in d662331f37b9
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty Release
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'trusty/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
2015/02/16 14:55:20 The command [/bin/sh -c apt-get update] returned a non-zero code: 100

@kchsieh
Copy link
Author

kchsieh commented Feb 17, 2015

Just tried the install on a different vm which has centos 6.5, this time got a different error message:

$ ./build_docker_images.sh
Building the docker images in /home/kchsieh/ceposta-devops-ose
building the Docker image for gerrit
Sending build context to Docker daemon 1.268 MB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:trusty
Pulling repository ubuntu
5ba9dab47459: Download complete
511136ea3c5a: Download complete
27d47432a69b: Download complete
5f92234dcf1e: Download complete
51a9c7c1f8bb: Download complete
Status: Downloaded newer image for ubuntu:trusty
---> 5ba9dab47459
Step 1 : MAINTAINER Christian Posta [email protected]
---> Running in d7b9c045499d
---> eab70494993a
Removing intermediate container d7b9c045499d
Step 2 : ENV GERRIT_HOME /home/gerrit
---> Running in ca074fa7df44
---> e663155f5d59
Removing intermediate container ca074fa7df44
Step 3 : ENV GERRIT_USER gerrit
---> Running in 4ce5b8b5b31a
---> aaf9f067b9d9
Removing intermediate container 4ce5b8b5b31a
Step 4 : ENV GERRIT_WAR /home/gerrit/gerrit.war
---> Running in 9e374adecc24
---> becae814fa6d
Removing intermediate container 9e374adecc24
Step 5 : RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
---> Running in 0ef503a3b23a
---> e6c0ff33b5bb
Removing intermediate container 0ef503a3b23a
Step 6 : RUN apt-get update
---> Running in d696b71ee275
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty Release
Get:1 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:2 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Fetched 9332 kB in 10s (924 kB/s)
Reading package lists...
---> eba9ac545cdf
Removing intermediate container d696b71ee275
Step 7 : RUN apt-get upgrade -y
---> Running in 30b24d8042e0
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
---> 9d8218764c5b
Removing intermediate container 30b24d8042e0
Step 8 : RUN useradd -m ${GERRIT_USER}
---> Running in 3769901ead08
---> a161056a1671
Removing intermediate container 3769901ead08
Step 9 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes tzdata tzdata-java openjdk-6-jre-headless sudo git-core supervisor vim-tiny
---> Running in 84fcf33508c8
Reading package lists...
Building dependency tree...
Reading state information...
sudo is already the newest version.
vim-tiny is already the newest version.
tzdata is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
tzdata-java : Depends: tzdata (= 2014b-1) but 2014i-0ubuntu0.14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
lxc-start: lxc_start.c: main: 342 The container failed to start.
lxc-start: lxc_start.c: main: 346 Additional information can be obtained by setting the --logfile and --logpriority options.
2015/02/17 09:55:22 The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes tzdata tzdata-java openjdk-6-jre-headless sudo git-core supervisor vim-tiny] returned a non-zero code: 100

@christian-posta
Copy link
Owner

sorry i missed this issue! can you try again? i've updated the images since this and fixed this issue

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

2 participants