title: Unable to correct problems, you have held broken packages
body: <p>I am trying to install ruby on my docker container and I am following <a href="https://github.com/docker-library/ruby/blob/1f19e5d966aadfaac7ce4a9d4db8f982db2fe690/2.3/Dockerfile" rel="nofollow">this</a> one to build the container. When I build for new image the error response </p>
  
  <pre><code>The following packages have unmet dependencies:
  libgdbm-dev : Depends: libc6-dev but it is not going to be installed or
                      libc-dev
  E: Unable to correct problems, you have held broken packages.
  The command '/bin/sh -c set -ex     &amp;&amp; buildDeps='      bison       libgdbm-dev         ruby    '   &amp;&amp; apt-get update   &amp;&amp; apt-get install -y --no-install-recommends $buildDeps    &amp;&amp; rm -rf /var/lib/apt/lists/*  &amp;&amp; curl -fSL -o ruby.tar.gz "http://cache.ruby-   lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz"  &amp;&amp; echo    "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c -    &amp;&amp; mkdir -p /usr/src/ruby   &amp;&amp; tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1   &amp;&amp; rm ruby.tar.gz   &amp;&amp; cd /usr/src/ruby     &amp;&amp; { echo '#define ENABLE_PATH_CHECK 0'; echo; cat file.c; } &gt; file.c.new &amp;&amp; mv file.c.new file.c   &amp;&amp; autoconf     &amp;&amp; ./configure --disable-install-doc    &amp;&amp; make -j"$(nproc)"    &amp;&amp; make install     &amp;&amp; apt-get purge -y --auto-remove $buildDeps    &amp;&amp; gem update --system $RUBYGEMS_VERSION    &amp;&amp; rm -r /usr/src/ruby' returned a non-zero code: 100
  </code></pre>
  
  <p>I have tried to install the packages by replacing <strong>apt-get</strong> with <strong>aptitude</strong> and seems like not working and producing some what same response. In addition to this I  have to use </p>
  
  <blockquote>
    <p>FROM tracer0tong/android-emulator </p>
  </blockquote>
  
  <p>in the begining to install Android emulator . Is there any other way to install ruby along with the Android? All kinda helps are appreciated.</p>