Clean unwanted files after an incomplete download, Ubuntu 12.04.2

Try to execute these commands. They will help to clear/fix broken packages and also try to install required library packages needed to run packages efficiently:

  1. Fix using Command Line:

    sudo apt-get autoremove
    sudo apt-get --purge remove
    sudo apt-get autoclean
    sudo apt-get clean
    sudo apt-get -f install
    
  2. Fix using Synaptic Package Manager:

    • Fist install synaptic package manager if you don't have already installed:

      sudo apt-get install synaptic
      
    • Then open synaptic package manager -> click Custom Filters down-left -> click Broken top-left, it will list all broken packages try to all broken packages. Also if any residual packages are there on more option you will get as residual packages.

Hope it works for you.