Why doesn't a 32bit .deb package install on 64bit Ubuntu?
        Posted  
        
            by codebox_rob
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by codebox_rob
        
        
        
        Published on 2010-06-12T06:44:59Z
        Indexed on 
            2010/06/12
            6:53 UTC
        
        
        Read the original article
        Hit count: 221
        
My .deb package, built on 32-bit Ubuntu and containing executables compiled with gcc, won't install on the 64-bit version of the OS (the error message says 'Wrong architecture i386'). This is confusing to me because I thought that in general 32-bit software worked on 64-bit hardware, but not vice-versa.
Will it be possible for me to produce a .deb file that I can install on a 64-bit OS, using my 32-bit machine? Is it just a matter of using the appropriate compiler flags to produce the executables (and if so what are they), or is the .deb file itself somehow specific to one processor architecture?
© Stack Overflow or respective owner