title: can not install software in linux error as dpkg was interrupted
body: <p>I was trying to install mono using following commands,</p>
  
  <ol>
  <li><code>sudo apt-get install mono-*</code></li>
  </ol>
  
  <p>unfortunately, I closed the terminal while it installing. again i started to reinstall but shown error like</p>
  
  <blockquote>
    <p>Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily
    unavailable)</p>
  </blockquote>
  
  <p>I tried below commands for solution,</p>
  
  <ol>
  <li><code>sudo rm /var/lib/apt/lists/lock</code></li>
  <li><code>sudo rm /var/cache/apt/archives/lock</code></li>
  </ol>
  
  <p>But now I am getting the error like</p>
  
  <blockquote>
    <p>dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'
    to correct the problem.</p>
  </blockquote>
  
  <p>how do I fix this one?</p>