Code file of Vsocode not excute on Ubuntu 24.04 LTS

Hi everyone,
I am Akash Biswas , I wrote this post to get help from Foss community
I’m recently update my Ubuntu from previous Its version, Now I am running version 24.04 Its , As a programmer we need vs-code alot but after updating I Found that , I can’t run code file on VSCODE directory

already gave permission to the code (sudo chmod +x code). for execute the file
properly

you can see my terminal image I provided.

If Anyone know the Solution please reply on my post Thank you

I think it needs to be 4755.
The 4 means the program can be executed as root
so chmod 4755 filename
may fix it.

1 Like

still doesn’t work

There’s a lot more wrong than just execute permission on a binary…

That kinda looks like you’re trying to run it as a portable app…

Did you actually install it? Last time I use Microsoft VS-Code on Linux I had to download a DEB file and install it… I see you can download it as a tar.gz archive - is that how you put it in that folder…

I have ZERO idea of what your issue is - sorry. I can only suggest you try installing the DEB download package for your platform.

Maybe also provide out put of

file code
and
ld code
Also maybe :

cat /etc/os-release
uname -a

Which version did you download from here :

Looking at the output of you terminal screenshot did you download the .tar.gz for x64?

Also - if you want any help - can I suggest you help us by pasting the TEXT content of that terminal instead of a bitmap screenshot and format it as “Preformatted text” (ctrl+e or the “</>” button :
image

1 Like