I haven’t encountered the same error you describe so my suggestion is just a guess. Try running the commands shown here:
http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/
These instructions have bailed me out a couple of times.
Don