$sudo rm /var/lib/dpkg/statoverride
Look at "statoverride", its not "stateoverride"
$sudo rm /var/lib/dpkg/lock
Ubuntu uses dpkg, debian package management system. It is derived from Debian. So it is
present on your system.
$sudo dpkg --configure -a
$sudo apt-get -f install
June 2005 Stephan789, using Debian Etch, posted this question
You should mention the link of the thread where you found the above commands.