Possible Solutions
A workaround is:
As administrator "root" we look at the following folder:
/ Var / lib / dpkg / info
Now delete the files that reference the program in question, ie those starting the program name.
Thereupon launched synaptic and search the program that gave error. This program will eliminate or marked for update as appropriate, ie; as it was before, we marked and click Apply.
Now if you delete or update.
And again synaptic function correctly again, and we can install, uninstall, completely remove.
==================================================
1st Solution
Running in a root terminal mode command:
apt-get remove "package-name"
if you return the following message:
dpkg: error processing "package-name" (--remove):
subprocess post-removal script returned error exit code 127
Errors were encountered while processing:
"Name-of-pack"
E: Sub-process / usr / bin / dpkg returned an error code (1)
We close the terminal and proceed to the 2nd solution.
==================================================
2nd Solution
1- We open one of these file manager (Nautilus, Konqueror, dolphin, etc ...) with root privileges
2- We are located in the / var / lib / dpkg / info
3- In this folder delete all files that refer to "name-of-package".
4- Close the file manager to open before (nautilus, konqueror or dolphin, etc ...) and run synaptic.
5- Now look for "name-of-pack", mark to remove and apply.
Now works correctly synaptic leaves install, uninstall, delete, etc.
==================================================
3rd Solution
Inside the file / var / lib / dpkg / status replace the line "package-name"
Status: install reinstreq half-installed
by this other line
Status: install ok installed
and assume that this is already solved.