Solving E: Sub-process /usr/bin/dpkg returned an error code(1)
Some Ubuntu users may had experienced this problem. And it’s can’t be fixed by simply typing sudo dpkg –configure -a . I got a way to resolve it, but users must be remember that I am not responsible for any trouble caused by this solution. I tried, and it works on my PC.
How to resolve it?
First Delete (sudo rm) /var/lib/dpkg/info/"unwanted-package-name".postrm
And over here, the unwanted-package-name is the package that causing the main problem, when the problem is appeared, you will know where the package that causing the problem.
After that, type this following codes respectively on the terminal.
sudo apt-get clean all
sudo apt-get update //run it twice
sudo apt-get upgrade
Note that for safety reason, please backup those files that I defined above.
I hope this solution could resolve your problem. Any trouble please do share over the comment box or the discussion page in AFL Facebook Page.