[
https://issues.apache.org/jira/browse/SPARK-8954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14622780#comment-14622780
]
Yong Tang commented on SPARK-8954:
--
This failure could be fixed by removing
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >
/etc/apt/sources.list
from the Dockerfile.
A Pull Request
https://github.com/apache/spark/pull/7346
is created. This Pull request also removes /var/lib/apt/lists/* at the end of
the package install i (in docker), which saves about ~30MB of docker images
size.
> Building Docker Images Fails in 1.4 branch
> --
>
> Key: SPARK-8954
> URL: https://issues.apache.org/jira/browse/SPARK-8954
> Project: Spark
> Issue Type: Bug
> Components: Build
>Affects Versions: 1.4.0
> Environment: Docker
>Reporter: Pradeep Bashyal
>
> Docker build on branch 1.4 fails when installing the jdk. It expects
> tzdata-java as a dependency but adding that to the apt-get install list
> doesn't help.
> ~/S/s/d/spark-test git:branch-1.4 ❯❯❯ docker build -t spark-test-base base/
> ◼
> Sending build context to Docker daemon 3.072 kB
> Sending build context to Docker daemon
> Step 0 : FROM ubuntu:precise
> ---> 78cef618c77e
> Step 1 : RUN echo "deb http://archive.ubuntu.com/ubuntu precise main
> universe" > /etc/apt/sources.list
> ---> Using cache
> ---> 2017472bec85
> Step 2 : RUN apt-get update
> ---> Using cache
> ---> 86b8911ead16
> Step 3 : RUN apt-get install -y less openjdk-7-jre-headless net-tools
> vim-tiny sudo openssh-server
> ---> Running in dc8197a0ea31
> Reading package lists...
> Building dependency tree...
> Reading state information...
> 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:
> openjdk-7-jre-headless : Depends: tzdata-java but it is not going to be
> installed
> E: Unable to correct problems, you have held broken packages.
> INFO[0004] The command [/bin/sh -c apt-get install -y less
> openjdk-7-jre-headless net-tools vim-tiny sudo openssh-server] returned a
> non-zero code: 100
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org