I got this error when i installed some libraries. This is how i fixed
Just disable apport
Open this file using this command
sudo gksu gedit /etc/default/apport
change "enabled" from "1" to "0", then save the file.
You can always re-enable it later on if you want, by changing "enabled" from "0" back to "1", or you can enable Apport temporarily, using the following command:
sudo service apport start force_start=1