Why can't I run this file that definitely exists?

Asked by Asa Ayers

I'm posting a question because I can't figure out which package I should file a bug against. I'm running 12.10 and everything is up to date. I have an executable that BASH and DASH both report that the file doesn't exist if I attempt to run it, but any other command sees it. The same file works correctly under Ubuntu 11.10.

Renaming the file doesn't make a difference. Moving it to ~/bin allows it to auto-complete with "spaz<tab>" but then reports the file doesn't exist.

BASH:
asa@asa:~/Downloads$ file ./spaz-linux-humblebundle-09182012-bin
./spaz-linux-humblebundle-09182012-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
asa@asa:~/Downloads$ ls -la ./spaz-linux-humblebundle-09182012-bin
-rwxr-xr-x 1 asa asa 157466422 Sep 19 21:07 ./spaz-linux-humblebundle-09182012-bin
asa@asa:~/Downloads$ ./spaz-linux-humblebundle-09182012-bin
bash: ./spaz-linux-humblebundle-09182012-bin: No such file or directory

DASH:
$ file ./spaz-linux-humblebundle-09182012-bin
./spaz-linux-humblebundle-09182012-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
$ ls -la ./spaz-linux-humblebundle-09182012-bin
-rwxr-xr-x 1 asa asa 157466422 Sep 19 21:07 ./spaz-linux-humblebundle-09182012-bin
$ ./spaz-linux-humblebundle-09182012-bin
dash: 4: ./spaz-linux-humblebundle-09182012-bin: not found

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ia32-libs Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

Hi ,

take a look at this : http://www.youtube.com/watch?v=Gn6sBs_s9O0

I hope it helps you to figure it out.

Thanks

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

OR

maybe first you must do the file executable by giving the correct rights.

chmod a+x Downloads/spaz-linux-humblebundle-09182012-bin

and then run with

cd Downloads
./spaz-linux-humblebundle-09182012-bin

Thanks

Revision history for this message
Asa Ayers (asa-ayers) said :
#3

The file is already executable. Here are the permissions.

-rwxr-xr-x 1 asa asa 157466422 Sep 19 21:07 ./spaz-linux-humblebundle-09182012-bin

Revision history for this message
Asa Ayers (asa-ayers) said :
#4

I've tried the software center for previous humble games and it's always been totally unstable requiring several attempts to install each game. My question is less about how do I install spaz but more about why is it I have a completely valid file that Ubuntu refuses to run. If it's happening here it will happen with something else.

The file command shows it is an executable file, my ls shows that it has the execute permission and the file exists.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Can you give the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
Asa Ayers (asa-ayers) said :
#6

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu quantal (development branch)
Release: 12.10
Codename: quantal
Linux asa 3.5.0-15-generic #22-Ubuntu SMP Wed Sep 19 20:01:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

You are trying to use a 32bit file in a 64bit OS. Is there not a 64bit binary for the file?

Revision history for this message
Asa Ayers (asa-ayers) said :
#8

There is not, but it does run on a different 64-bit machine of mine with an older version of Ubuntu. Here is the lsb_release -a; uname -a for the machine where the exact same file does run.

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Linux jeni 3.0.0-24-generic #40-Ubuntu SMP Tue Jul 24 15:38:25 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Try:

chmod +x ~/Downloads/spaz-linux-humblebundle-09182012-bin
sudo ~/Downloads/spaz-linux-humblebundle-09182012-bin

Does it now run? If not, what is output?

Thanks

Revision history for this message
Asa Ayers (asa-ayers) said :
#10

asa@asa:~/Downloads$ chmod +x ~/Downloads/spaz-linux-humblebundle-09182012-bin
asa@asa:~/Downloads$ sudo ~/Downloads/spaz-linux-humblebundle-09182012-bin
[sudo] password for asa:
sudo: unable to execute /home/asa/Downloads/spaz-linux-humblebundle-09182012-bin: No such file or directory

Initially I thought this could be some kind of security change on the Kernel. I thought the kernel might detect foreign files and not run them similar to how Windows detects downloaded files and prompts. This doesn't seem to be the case though as I was able to install Rochard by downloading an running it. I almost filed a bug against BASH but then I tested and DASH has the same issue. My other other suspect has been the filesystem, nothing odd there:

asa@asa:~/Downloads$ mount
/dev/sdb2 on / type ext4 (rw,errors=remount-ro)
... SNIP ...
/dev/sda1 on /home type ext4 (rw)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

can you give the output of:

ls ~/Downloads

Thanks

Revision history for this message
Asa Ayers (asa-ayers) said :
#12

I think you're on to something with it being 32-bit. I just downloaded the binaries for Super Meat Boy, Windosil, and Avadon. All 3 use 32-bit installers and have the same problem. I also went and checked Rochard and it's a 64-bit binary.

asa@asa:~/Downloads$ ls -la ~/Downloads
total 1982144
drwxr-xr-x 4 asa asa 4096 Sep 23 16:32 .
drwxr-xr-x 36 asa asa 4096 Sep 23 09:58 ..
-rw-rw-r-- 1 asa asa 68204273 Sep 22 20:44 AmnesiaOST_MP3.zip
drwxrwxrwx 3 asa asa 4096 May 26 08:10 Amnesia The Dark Descent OST (MP3)
-rw-rw-r-- 1 asa asa 21051716 Sep 22 20:43 Anomaly_Warzone_Earth_Soundtrack_mp3s.zip
-rwxr-xr-x 1 asa asa 109767395 Sep 23 16:22 avadon-linux-1331768904-bin
-rw-rw-r-- 1 asa asa 445954 Sep 20 08:25 doctrine-dbal-2.3.0-0-g30dc433.zip
-rwxr-xr-x 1 asa asa 292595843 Sep 19 21:19 dustforce-linux-1347954459.sh
-rw-rw-r-- 1 asa asa 34025748 Sep 18 00:32 google-chrome-stable_current_amd64.deb
-rw-rw-r-- 1 asa asa 1378 Sep 18 08:26 lplinux.tar.bz2
drwxr-xr-x 6 asa asa 4096 Sep 20 22:10 rejoystick-0.8.1
-rw-rw-r-- 1 asa asa 19216 Sep 20 22:11 rejoystick_0.8.1-1_i386.deb
-rw-rw-r-- 1 asa asa 437792 Sep 20 21:53 rejoystick-0.8.1.tar.gz
-rw-rw-r-- 1 asa asa 908487049 Sep 19 23:46 rochard-linux-1347958759-124rc6-64bit.tar.gz
-rw-rw-r-- 1 asa asa 86141012 Sep 22 20:44 rochard_-_original_videogame_soundtrack_mp3.zip
-rwxr-xr-x 1 asa asa 157466422 Sep 19 21:07 spaz-linux-humblebundle-09182012-bin
-rw-rw-r-- 1 asa asa 157466422 Sep 23 10:09 spaz-linux-humblebundle-09182012-bin (1)
-rwxr-xr-x 1 asa asa 174416543 Sep 23 16:32 supermeatboy-linux-06072012-bin
-rw-rw-r-- 1 asa asa 24061 Sep 23 12:40 Transactions.ofx
-rwxr-xr-x 1 asa asa 19100900 Sep 23 16:29 Windosill-linux-1.0.7-1334787847

Revision history for this message
Asa Ayers (asa-ayers) said :
#13

Thank you so much for your help. I tried installing ia32-libs and now it works. I've not marked the problem as Solved though because I'd really like to file a bug report so that people get some kind of "ia32-libs missing" error instead of the totally false "no such file or directory" error. Do you have any idea where this bug report should go? The kernel? Not sure about reporting it against ia32-libs since the problem results from it not being installed.

Revision history for this message
Best Sam_ (and-sam) said :
#14

ia32-libs is a transitional package. Over time libs are converted to multiarch. Please note comments from vorlon in bug 900512.

Revision history for this message
Asa Ayers (asa-ayers) said :
#15

Thanks Sam_, that solved my question.

Revision history for this message
Asa Ayers (asa-ayers) said :
#16

This definitely has nothing to do with nautilus as it was never involved. Maybe you selected the wrong package?

Revision history for this message
Sam_ (and-sam) said :
#17

Asa Ayers, no idea who assigned the question to nautilus, I've assigned it yesterday to ia32-libs.
You can always change it yourself by click on 'edit question' at the top right hand side.