Here are some examples of the error messages you might see. We've listed several so you can get a feel for identifying the package causing the errors.
EXAMPLE ERROR MESSAGES:
Package dependency not met. Package Name = kdebase-workspace-data
dpkg: error processing kdebase-workspace-data (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kdebase-workspace-bin
STEP 1. FIX BROKEN PACKAGE MANAGER
sudo dpkg --configure -a
STEP 2a. REINSTALL OR REMOVE PROBLEMATIC PROGRAM(S)
Once you've identified the name of the program(s) causing problems, use the example to remove and reinstall it. This is usually straight-forward and, once the package manager issue is resolved, runs without a hitch. The first line will produce a lot of status messages, then it will ask if you want to continue. The answer is Yes (or Y). You'll get some more lines of messages. When it has successfully completed, issue the second command. You will again see a bunch of status messages, followed by another continue question. Again, answer Yes (or Y). The package installation will continue, finishing with an installation successful message.
sudo apt-get remove
sudo apt-get install
STEP 2b. REPEAT STEP 2a UNTIL ALL BAD PACKAGES ARE REINSTALLED
STEP 3. FIX MAXREPORTS ERROR
At this point, you'll see a list of the crash report files. You may choose to remove all or part of them. Older files are always a safe bet to delete, as this data becomes obsolete rather quickly. Use the examples below as a guide for removing unwanted files.
Example commands to remove files
sudo rm * Remove all files in this directory
sudo rm 2012-08* Remove only files with names beginning with 2012-08
Next, you'll want to clear the directory in which program-specific crash information is stored. Here are the commands to clean that up.
You will be presented with a list of applications that have crash data. You may again wish to remove some or all of these files.
That's it. You've successfully cleaned up your crash data directories. Now you can update your system.
STEP 4. UPDATE SYSTEM
sudo apt-get update
sudo apt-get install -f
Be sure to bookmark this page, as you may have to repeat it some time in the future.