subprocess installed post-installation script returned error exit status 1
And found a solution here
What I did to recover from this problem;
- Go to /var/lib/dpkg/info
- Find the related package problem ended with *.postinst
- Delete that particular file
- Try apt-get update again, should be working