title: Cannot (apt-get) install packages inside docker
body: <p>I installed ubuntu  14.04 virtual machine and run docker(1.11.2). I try to build sample image (<a href="https://github.com/giantswarm/sparkexample" rel="noreferrer">here</a>).</p>
  
  <p>docker file :</p>
  
  <pre><code>FROM java:8 
  
  # Install maven
  RUN apt-get update  
  RUN apt-get install -y maven
  ....
  </code></pre>
  
  <p>I get following error:</p>
  
  <pre><code>Step 3: RUN apt-get update
   --&gt; Using cache
   ---&gt;64345sdd332
  Step 4: RUN apt-get install -y maven
   ---&gt; Running in a6c1d5d54b7a
  Reading package lists...
  Reading dependency tree...
  Reading state information...
  E: Unable to locate package maven
  INFO[0029] The command [/bin/sh -c apt-get install -y maven] returned a non-zero code:100
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/x4AXD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x4AXD.png" alt="enter image description here"></a></p>
  
  <p>following solutions I have tried, but no success.</p>
  
  <blockquote>
    <ol>
    <li><p>restarted docker <a href="https://stackoverflow.com/questions/30856801/apt-get-not-working-in-dockerfile">here</a></p></li>
    <li><p>run as <code>apt-get -qq -y install curl</code> <a href="https://stackoverflow.com/questions/27273412/cannot-install-packages-inside-docker-ubuntu-image">here</a> :same error :(</p></li>
    </ol>
  </blockquote>
  
  <p>how can i view detailed error message ?
  a
  any way to fix the issue?</p>