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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-25-2014, 12:18 AM
|
#1
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
|
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.
|
|
|
06-25-2014, 12:25 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
|
|
06-25-2014, 12:29 AM
|
#3
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
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
|
|
|
06-25-2014, 12:30 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
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....
|
|
|
06-25-2014, 12:36 AM
|
#5
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
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
|
|
|
06-25-2014, 12:42 AM
|
#6
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
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 ...).
|
|
|
06-25-2014, 12:44 AM
|
#7
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by pan64
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.
|
|
|
06-25-2014, 12:45 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
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.
|
|
|
06-25-2014, 12:50 AM
|
#9
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by pan64
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.
|
|
|
06-25-2014, 12:56 AM
|
#10
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
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.
|
|
|
06-25-2014, 01:49 AM
|
#11
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
06-27-2014, 12:16 AM
|
#12
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
yes, thanks, that was a good tip, but actually I cannot install libc6-i386 because there are dependency conflicts again.
|
|
|
06-27-2014, 12:22 AM
|
#13
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by pan64
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.
|
|
|
06-29-2014, 10:41 AM
|
#14
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
Original Poster
|
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.
|
|
|
06-30-2014, 12:04 AM
|
#15
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|