I got this error again.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I followed this
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.
First I deleted everything in /var/cache/apt/archives and got the same error
Then I deleted all file in both the directories
and got the same error.
Is it because I use apt-fast and aria2 instead or apt-get?
Let me delete contents of those two directories and check using apt-get instead of apt-fast custom dist-upgrade script.
I deleted the contents of those two directories and instead of trying
sudo apt-get update && time sudo apt-fast dist-upgrade
sudo apt-get update && time sudo apt-get dist-upgrade
and it worked.
So aria2 download is causing some sort of problem. Any suggestion?