LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2014, 12:18 AM   #1
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
debian 32 bit mode missing


Hi all,
I have installed an amd64 debian and my old 32bit apps now cannot be started. Probably I have forgotten to install something (related to multiarch, i386 mode). Currently I have no 32bit libs too, ldd doesn't work with 32bit apps. And I have no idea how to fix it.
 
Old 06-25-2014, 12:25 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you probably need to
Code:
dpkg --add-architecture i386
and then
Code:
apt-get install libfoo:i386
See https://wiki.debian.org/Multiarch/HOWTO for more information.

Evo2.
 
Old 06-25-2014, 12:29 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Are you thinking of multiarch support? Basically that involves installing the multiarch-support package and then reinstalling your 32 bit apps with packages ending in ":i386"
jdk
 
Old 06-25-2014, 12:30 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
dpkg --add-architecture i386 itself did not solve the issue. The question more or less is: what libfoo should I install, how will I know that?
I know that wiki page too, but could not find relevant info....
 
Old 06-25-2014, 12:36 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
The question more or less is: what libfoo should I install, how will I know that?
Pick an example 32bit app that you want and run
Code:
aptitude show appfoo:i386
That will show you want dependencies (including libfoos) are needed for that app. Alternatively you can look up the dependencies on the Debian packages site.
jdk
 
Old 06-25-2014, 12:42 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
Oh yes, that would be the easy case. I have an app with its own install engine (X-Plane is a 64bit app, but the installer/updater of it is a 32bit app ...).
 
Old 06-25-2014, 12:44 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by pan64 View Post
The question more or less is: what libfoo should I install, how will I know that?
Does ldd not show the missing libraries? If not, what does it report?

Evo2.
 
Old 06-25-2014, 12:45 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
ldd simply dies: it is not an executable.... file recognizes file type, but ldd cannot handle. Probably this should have been fixed first.

Last edited by pan64; 06-25-2014 at 12:47 AM.
 
Old 06-25-2014, 12:50 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by pan64 View Post
ldd simply dies: it is not an executable....
then what is it?

Quote:
file recognizes file type,
Care to share that information?

Quote:
but ldd cannot handle. Probably this should have been fixed first.
What does it report?

Evo2.
 
Old 06-25-2014, 12:56 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
file told: it is an ELF 32 bit stripped ...
ldd told: not an executable ...

for me it looks like file based on its magic can recognize file type correctly, but if I tried to execute any 32bit app the only respond I got is: not an executable. So my debian is unable to handle that 32bit code (cannot execute, cannot ldd....) at all.
 
Old 06-25-2014, 01:49 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

as a sanity check could you try installing some 32 executable from the repositories?
Code:
apt-get install less:i386
ldd /bin/less
less /usr/share/doc/less/README.Debian
Evo2.
 
1 members found this post helpful.
Old 06-27-2014, 12:16 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
yes, thanks, that was a good tip, but actually I cannot install libc6-i386 because there are dependency conflicts again.
 
Old 06-27-2014, 12:22 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by pan64 View Post
yes, thanks, that was a good tip, but actually I cannot install libc6-i386 because there are dependency conflicts again.
Ouch, then I think you are in trouble. Pretty much everything needs libc6 at some level. If you are going to pursue this further I think you should start by posting the output when you try to install libc6-i386 and perhaps explaining if there is anything special about this machine.

Evo2.
 
Old 06-29-2014, 10:41 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,265

Original Poster
Rep: Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420Reputation: 7420
root@suni:/# apt-get install less:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
less:i386 : Depends: libc6:i386 (>= 2.11) but it is not going to be installed
Depends: libtinfo5:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@suni:/# apt-get install libtinfo5:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libtinfo5:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@suni:/# apt-get install libc6:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
discover-data gcj-4.7-base geany-common git-man gnome-commander-data klibc-utils libklibc libpthread-stubs0 libpthread-stubs0-dev libwireshark-data libx11-doc
linux-headers-3.2.0-4-common linux-headers-3.2.0-4-common-rt mc-data mysql-workbench-data qemu-keymaps qt4-doc squid-common squid-langpack squid3-common
vim-gui-common vim-runtime x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xen-hypervisor-4.1-amd64 xorg-sgml-doctools xtrans-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gcc-4.7-base:i386 libc6-i686:i386 libgcc1:i386 multiarch-support:i386
Suggested packages:
glibc-doc:i386 locales:i386
The following packages will be REMOVED:
(... 1603 packages ...)
The following NEW packages will be installed:
gcc-4.7-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386 multiarch-support:i386
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libstdc++6 (due to apt) debian-archive-keyring (due to apt) gnupg (due to apt) base-files
base-passwd bash debianutils (due to bash) dash (due to bash) libtinfo5 (due to bash) bsdutils coreutils dpkg (due to coreutils) install-info (due to coreutils)
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) zlib1g (due to dpkg)
tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to
e2fsprogs) util-linux (due to e2fsprogs) findutils grep gzip hostname login libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login)
mount libmount1 (due to mount) libsepol1 (due to mount) ncurses-bin perl-base sed sysvinit initscripts (due to sysvinit) sysv-rc (due to sysvinit) sysvinit-utils
(due to sysvinit) tzdata (due to util-linux) debconf (due to util-linux) libncurses5 (due to util-linux) libslang2 (due to util-linux)
0 upgraded, 5 newly installed, 1603 to remove and 0 not upgraded.
Need to get 5,554 kB of archives.
After this operation, 4,645 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] no
Abort.



root@suni:/# apt-get install libc6-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc6-i386 : Depends: libc6 (= 2.13-38+deb7u1) but 2.18-4 is to be installed
E: Unable to correct problems, you have held broken packages.

Last edited by pan64; 06-29-2014 at 10:43 AM.
 
Old 06-30-2014, 12:04 AM   #15
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I think perhaps this is happening because you have some packages on hold. Can you confirm? Eg
Code:
dpkg --get-selections |grep -w hold
If there is something on hold, does it really need to be?

Also can you say what version of Debian you are running and confirm that the packages are kept current (apart from any specific held packages)?

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install OpenSUSE 32 bit and CentOS 64 bit in Dualboot Mode GMaK007 Linux - Newbie 7 10-25-2013 06:04 AM
[SOLVED] Compilation of library in 32 bit mode on 64 bit servers gaurav.rustagi Programming 2 01-25-2012 05:43 AM
[SOLVED] building shared libary in 32 bit mode on 64 bit machine using -m32 option gaurav.rustagi Linux - Software 3 01-24-2012 09:03 AM
[SOLVED] building shared libary in 32 bit mode on 64 bit machine using -m32 option gaurav.rustagi Linux - Newbie 1 01-24-2012 07:54 AM
Displaying 8-bit images in 24-bit mode and vice versa yrraja Linux - General 4 04-29-2003 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration