Whenever I want to upgrade or install any package on Ubuntu 16.04 this error appears!
dpkg: error processing /var/cache/apt/archives/gcc-6-base_6.0.1-ubuntu1_amd64.deb (--unpack):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-6-base_6.0.1-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The uname command outputs as follows:
uname -i
x86_64
uname -a
Linux hossein 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sudo apt-get clean all
andsudo apt-get update
the you can try to install the i386 not sure why is trying to install the 64bit. – Alpy> uname -i x86_64
– Hossein Tahmasbi