Ubuntu update/upgrade fails with dpkg error message
Today, my Ubuntu was unable to install update.
I got this error message after trying to update Ubuntu:
duplicate value for `Architecture' field
E: Sub-process /usr/bin/dpkg returned an error code (2)
After some research and trial'n'error, I came up with this solution:
1.Clear the content of the "available" file
# sudo nano /var/lib/dpkg/available
or
# sudo rm /var/lib/dpkg/available
# sudo touch /var/lib/dpkg/available
2. "Reset"
# sudo dpkg --configure -a
# sudo apt-get clean
3. Update/Upgrade again
# sudo apt-get update
# sudo apt-get upgrade
That should be all!
Step 2 may be unnecessary, but I have no way of testing it again… maybe someone with the same or a similar problem can try it without step 2 and let me know?
1364