Many software products, especially the commercial ones, are distributed as 32-bit packages. This means that they won't be installed on your 64-bit system unless you clearly specify that you want to override the architecture dependency.
If you're using Ubuntu or any other Debian based distribution, this post will teach you how to install 32-bit deb packages on your 64-bit OS.
Is it possible to run 32-bit applications on 64-bit OS?
In Unix world, yes: it is quite possible to run 32-bit binaries on 64-bit OS. There should generally be no problem, but there are, as always, a few caveats:
- your 64-bit system may need some 32-bit libraries installed just to make some old 32-bit software work (use getlibs in Ubuntu)
- even if 32-bit application runs on your 64-bit system, it will still have the 32-bit limitations
- some (especially commercial) software has hard-coded architecture checks which will prevent them from working in 64-bit mode. Although it's a rather rare case, it still may happen and it probably means the developers had a really good reason for putting such limitations in
Why 32-bit packages don't install on 64-bit by default
One of the main reasons is that if a certain software is provided in 32-bit configuration, it's very likely to be available in 64-bit one as well. In Unix especially so, since a properly coded application can very easily be compiled for both architectures, especially if you have a 32-bit application and it's only a matter of recompiling it in 64-bit.
It's always best to have 64-bit version of the software, as it will run better and enjoy most optimal performance by running in the native mode and using 64-bit libraries of your OS.
The default behaviour is to let you know that you're trying to install an architecturally incompatible piece of software, which should motivate you to double-check the availability of a 64-bit version. For example, this is what I get when installing a Skype for Linux on my Ubuntu 7.10 64-bit desktop:
ubuntu# dpkg -i ./skype-debian_2.0.0.63-1_i386.deb dpkg: error processing ./skype-debian_2.0.0.63-1_i386.deb (--install): package architecture (i386) does not match system (amd64) Errors were encountered while processing: ./skype-debian_2.0.0.63-1_i386.deb
How To Install 32-bit Debian Packages on 64-bit System
Since I know there isn't a 64-bit distribution of Skype, I would still like to install the package as it should work just fine. And the way to do this is to specify a –force-architecture option in dpkg command line:
ubuntu# dpkg -i --force-architecture ./skype-debian_2.0.0.63-1_i386.deb dpkg - warning, overriding problem because --force enabled: package architecture (i386) does not match system (amd64) Selecting previously deselected package skype. (Reading database ... 124455 files and directories currently installed.) Unpacking skype (from .../skype-debian_2.0.0.63-1_i386.deb) ... Setting up skype (2.0.0.63-1) ...
As you can see, we're getting a warning, but the install went through just fine.
Warning: there's a few further steps to get Skype working in 64-bit Ubuntu, so don't take the above as a Skype how-to, these steps are out of the scope of this post though.
iansane says
Where would one look for steps that are out of the scope of this post? Other than the -force–architecture command, this isn't very informative. Thanks though.
Isn't there a possibility of some applications really screwing up the system when forcing it like this?
I know this isn't a place to ask questions. These are more like questions any newbie should research before just forcing things I think.
Gleb Reys says
Hi there!
Thanks for leaving a comment!
If you're interested in my opinion or want to ask the readers of this blog, please sign up and ask on the https://www.unixtutorial.org/forums.
Thanks!
Justin says
Found this on skype forum:
http://forum.skype.com/index.php?showtopic=158301&pid=762281&st=0&#entry762281
Gleb Reys says
Thanks, Justin!
Anu Philip says
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
google-talkplugin_current_amd64-fixed.deb
what are the possible action to be taken to this problem,which have been encountered while installing google+ hangout plugins, as am using ubuntu 11.10
Anu Philip says
dpkg: error processing google-talkplugin_current_amd64-fixed.deb (–install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
google-talkplugin_current_amd64-fixed.deb
CØSMØS★ says
Thanks. Doesn't actually help me much yet though.