Another application seems to be using the package system at this time. You must close all other package managers before you will be able to install or remove any packages.
sudo apt-get install -f
sudo apt-configure -f