Apport aptget returning E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution 1:

You need to reinstall pycompile, try this

sudo apt purge apport # purge apport
sudo apt reinstall python-minimal # reinstall python-minimal
sudo apt install apport # install apport
sudo dpkg --configure -a && sudo apt-get install -f # resume last APT session

purging apport makes sure that you can start a clean fresh installation of apport and re-install python-minimal installs pycompile, which is needed for apport