No such file or directory error when trying to open a file in terminal

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Kulagin
Level 1
Level 1
Posts: 3
Joined: Thu Oct 17, 2019 5:40 am

No such file or directory error when trying to open a file in terminal

Post by Kulagin » Thu Oct 17, 2019 5:44 am

Trying to open file in terminal and it doesn't want to open it. Here's screenshot:
Image

File is clearly present. So how do I open it?

User avatar
Pjotr
Level 21
Level 21
Posts: 13757
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: No such file or directory error when trying to open a file in terminal

Post by Pjotr » Thu Oct 17, 2019 5:50 am

Don't open a bomb! :lol:

When you're a suicide terrorist, try this:

Code: Select all

~/Desktop/bomb
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
Flemur
Level 17
Level 17
Posts: 7333
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: No such file or directory error when trying to open a file in terminal

Post by Flemur » Thu Oct 17, 2019 12:51 pm

Pjotr wrote:
Thu Oct 17, 2019 5:50 am
Don't open a bomb! :lol:
When you're a suicide terrorist, try this:

Code: Select all

~/Desktop/bomb
I recently got the same strange "no such file or directory" [**Edit] on a file that was definitely there (on a minimal ubuntu system that I was building up) and, for some reason I don't understand, it was caused by the lack of 32-bit libraries. (!?)

I think he's doing this (poster has the same "no such file" error):
https://stackoverflow.com/questions/264 ... untu-linux
"Here's a Linux/IA32 binary bomb that you can try out for yourself. The feature that notifies the grading server has been disabled, so feel free to explode this bomb with impunity."

The offered solutions are to install lsb-core and/or some 32 bit libraries.

**Edit: I was trying to run the 'wine' executable without having the 32-bit dependencies installed (wine itself is installed on a separate partition, 4 OSs use it /opt/wine-stable -> /mnt/DATA/wine-stable, but each OS has the dependencies installed normally...except the one where I got the "no such file" error).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Kulagin
Level 1
Level 1
Posts: 3
Joined: Thu Oct 17, 2019 5:40 am

Re: No such file or directory error when trying to open a file in terminal

Post by Kulagin » Thu Oct 17, 2019 4:06 pm

Pjotr wrote:
Thu Oct 17, 2019 5:50 am
Don't open a bomb! :lol:

When you're a suicide terrorist, try this:

Code: Select all

~/Desktop/bomb
Doesn't work:
Image
Flemur wrote:
Thu Oct 17, 2019 12:51 pm
I recently got the same strange "no such file or directory" [**Edit] on a file that was definitely there (on a minimal ubuntu system that I was building up) and, for some reason I don't understand, it was caused by the lack of 32-bit libraries. (!?)

I think he's doing this (poster has the same "no such file" error):
https://stackoverflow.com/questions/264 ... untu-linux
"Here's a Linux/IA32 binary bomb that you can try out for yourself. The feature that notifies the grading server has been disabled, so feel free to explode this bomb with impunity."

The offered solutions are to install lsb-core and/or some 32 bit libraries.

**Edit: I was trying to run the 'wine' executable without having the 32-bit dependencies installed (wine itself is installed on a separate partition, 4 OSs use it /opt/wine-stable -> /mnt/DATA/wine-stable, but each OS has the dependencies installed normally...except the one where I got the "no such file" error).
So what do I do to run the file? I tried sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 and get this:
Image

And I tried sudo apt-get install lsb-core, it installed this one and I still get same error when I try to open the file:
Image

I attached the file if you guys want to try it. And yes, I use 64-bit version, I downloaded and installed it today, and I don't know Linux at all.
Attachments
bomb.tar
(30 KiB) Downloaded 23 times

User avatar
Flemur
Level 17
Level 17
Posts: 7333
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: No such file or directory error when trying to open a file in terminal

Post by Flemur » Thu Oct 17, 2019 4:35 pm

Kulagin wrote:
Thu Oct 17, 2019 4:06 pm
I attached the file if you guys want to try it. And yes, I use 64-bit version, I downloaded and installed it today, and I don't know Linux at all.
Works for me, because I'm special.

Code: Select all

$ tar xvf bomb.tar
bomb
$: ./bomb
Welcome to my fiendish little bomb. You have 6 phases with
which to blow yourself up. Have a nice day!
Bite me.  [<-- I entered]

BOOM!!!
The bomb has blown up.
$
Edit

Code: Select all

$ ldd bomb
	linux-gate.so.1 =>  (0xf76ee000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7513000)
	/lib/ld-linux.so.2 (0xf76ef000)
$
??

Code: Select all

$ ldd -v bomb
	linux-gate.so.1 =>  (0xf7705000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf752a000)
	/lib/ld-linux.so.2 (0xf7706000)

	Version information:
	./bomb:
		libc.so.6 (GLIBC_2.1) => /lib/i386-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/i386-linux-gnu/libc.so.6
	/lib/i386-linux-gnu/libc.so.6:
		ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Kulagin
Level 1
Level 1
Posts: 3
Joined: Thu Oct 17, 2019 5:40 am

Re: No such file or directory error when trying to open a file in terminal

Post by Kulagin » Sat Oct 19, 2019 12:53 pm

Flemur wrote:
Thu Oct 17, 2019 4:35 pm
Works for me, because I'm special.
I gave up and installed 32-bit system and it runs it just fine.
But how do I run it on a 64-bit version? Image

User avatar
Flemur
Level 17
Level 17
Posts: 7333
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: No such file or directory error when trying to open a file in terminal

Post by Flemur » Sat Oct 19, 2019 1:03 pm

Kulagin wrote:
Sat Oct 19, 2019 12:53 pm
Flemur wrote:
Thu Oct 17, 2019 4:35 pm
Works for me, because I'm special.
I gave up and installed 32-bit system and it runs it just fine.
But how do I run it on a 64-bit version? Image
AFAIK, my 32bit libraries, which let "bomb" run properly, are the result of installing wine (I have 89 "i386" packages, but I've never explicitly installed any 32-bit anything). So you might
-- install wine, then uninstall it and leave the dependencies installed.
-- do some more internet searching ... is this for a class? The prof/teacher might be able to help.
-- start a new thread with more accurate question, like "which 32 bit libraries do I need to run this?"
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Post Reply

Return to “Newbie Questions”