uname -i is not reliable, use dpkg --print-architecture instead.