title: Installing libssl-dev on ubuntu for ruby 2.0
body: <p>I tryed to install ruby 2.0 with rbenv on Ubuntu 12.04:</p>
  
  <pre><code>rbenv install 2.0.0-p247
  </code></pre>
  
  <p>Now I got the following error message:</p>
  
  <pre><code>Installing ruby-2.0.0-p247...
  
  BUILD FAILED
  
  Inspect or clean up the working tree at /tmp/ruby-build.20130801100032.13868
  Results logged to /tmp/ruby-build.20130801100032.13868.log
  
  Last 10 log lines:
  installing default gems:      /home/chris/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
                            bigdecimal 1.2.0
                            io-console 0.4.2
                            json 1.7.7
                            minitest 4.3.2
                            psych 2.0.0
                            rake 0.9.6
                            rdoc 4.0.0
                            test-unit 2.0.0.0
  The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
  </code></pre>
  
  <p>In this <a href="https://stackoverflow.com/questions/16404186/installing-ruby-2-0-0-p0-with-rbenv-build-failed%20question">Question</a> Sam Ruby said I should install libssl-dev and I try it with:</p>
  
  <pre><code>sudo apt-get install libssl-dev
  </code></pre>
  
  <p>Now I got this error:</p>
  
  <pre><code>dpkg: Fehler: Parsen der Datei »/var/lib/dpkg/available«, nahe Zeile 10:
   package name fehlt
  E: Sub-process /usr/bin/dpkg returned an error code (2)
  </code></pre>
  
  <p>Could somebody explain me what is the problem and how can I solve it, please.</p>