Error running sudo apt-get -f install

Solution 1:

http://www.iasptk.com/ubuntu-fix-broken-package-best-solution

After trying

sudo dpkg --configure -a

and

sudo apt-get install -f

the problem of a broken package still exist the solution is to edit the dpkg status file manually.

sudo gedit /var/lib/dpkg/status  

(you can use vi or nano instead of gedit)

Locate the corrupt package, and remove the whole block of information about it and save the file.

if this dont help u...go through

http://ubuntuforums.org/showthread.php?t=1642173

http://www.linuxquestions.org/questions/debian-26/sub-process-usr-bin-dpkg-returned-an-error-code-1-a-171107/