One, the child process has installed the Pre-removal script returned an error number 1 or 2 workaround:
sudo gedit/var/lib/dpkg/status
Find package: <package Name>, such as package:vsftpd
Remove the description of this section and delete it before the next package:xxx. After the archive, the operation will be OK.
Second, the child process has installed the Post-Installation script returned an error number 1 or 2 workaround:
sudo rm/var/lib/dpkg/info/<package name>.*
such as Sudo rm/var/lib/dpkg/info/vsftpd.*, after the archive, then the operation is OK
Troubleshoot problems with installing a new version of the kernel system during kernel upgrade, installation is already present, uninstall is not removed
Child process has installed Pre-removal script returned error number 1 or 2 with child process installed post-installation script returned error number 1 or 2