title: Cannot get debconf version after delete /var/lib/dpkg
body: <p>As a new ubuntu user, I just make a mistaken. 
  I've deleted a folder /var/lib/dpkg/ instead of /var/lib/dpkg/lock.</p>
  
  <p>Now when I execute apt-get -f install then it will display error message:</p>
  
  <pre><code>...
  E: Cannot get debconf version. Is debconf installed?
  debconf: apt-extracttemplates failed: No such file or directory
  ...
  </code></pre>
  
  <p>I've try this tutorial: <a href="http://people.adams.edu/~cdmiller/posts/Ubuntu-dpkg-recovery/" rel="nofollow">http://people.adams.edu/~cdmiller/posts/Ubuntu-dpkg-recovery/</a> but still no luck.</p>
  
  <p>How can I fix this issue?</p>