title: How to remove an incomplete package by using apt-get?
body: <p>I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of 233 M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.<br>
    However here comes a problem: now every time I execute <code>apt-get</code> I will get a hint of <code>Incomplete dependency</code> and be asked to download the package above. If I execute <code>sudo apt-get remove android-studio</code> an error will occur:</p>
  
  <pre><code>dpkg: error processing package android-studio (--remove):
  package is in a very bad inconsistent state; you should
  reinstall it before attempting a removal
  An error occurred when processing:
  android-studio
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  </code></pre>
  
  <p>My <code>apt-get</code> was stuck. So how can I remove an incomplete package entirely?</p>