farera4946
Posts: 2
Joined: Sun May 16, 2021 7:50 am

How to install VSCode on Raspberry Pi Zero W?

Sun May 16, 2021 7:57 am

I've tried all official installation solutions over two days. I've also tried installing VSCodium both the official way by updating the package manager and by just unpacking and installing the .deb.

Every time I try to launch VSCode, I receive an Illegal instruction error. Launching with --verbose prints the same error.

How do I install VSCode or VSCodium on a brand new Raspberry Pi Zero running Raspbian Buster?

User avatar
craigevil
Posts: 208
Joined: Wed Jan 27, 2021 5:22 am
Location: OZ

Re: How to install VSCode on Raspberry Pi Zero W?

Sun May 16, 2021 3:38 pm

vscode is in the raspberrypi repos.

Code: Select all

sudo apt install code
Or for the Insiders version

Code: Select all

sudo apt install code-insiders
if you want vscodium instead follow the steps at: https://vscodium.com/#moreinfo
Raspberry PI 400 Raspberry Pi OS (Unstable) Kernel: 5.10.17-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"

fruitoftheloom
Posts: 26845
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to install VSCode on Raspberry Pi Zero W?

Sun May 16, 2021 3:45 pm

farera4946 wrote:
Sun May 16, 2021 7:57 am
I've tried all official installation solutions over two days. I've also tried installing VSCodium both the official way by updating the package manager and by just unpacking and installing the .deb.

Every time I try to launch VSCode, I receive an Illegal instruction error. Launching with --verbose prints the same error.

How do I install VSCode or VSCodium on a brand new Raspberry Pi Zero running Raspbian Buster?

Always best to read the requirements before wasting your time:

https://code.visualstudio.com/docs/setup/raspberry-pi

System requirements#
VS Code is supported on these Raspberry Pi models running a 32-bit or 64-bit version of Raspberry Pi OS:

Raspberry Pi 3 Model B/B+
Raspberry Pi 4 Model B
Raspberry Pi 400
The information is out there....you just have to let it in.

My other Linux machines: ChromeBox
https://www.aliexpress.com/item/32966393971.html
& Stone Desktop Intel CoreDuo circa 2010

fanoush
Posts: 769
Joined: Mon Feb 27, 2012 2:37 pm

Re: How to install VSCode on Raspberry Pi Zero W?

Sun May 16, 2021 5:09 pm

farera4946 wrote:
Sun May 16, 2021 7:57 am
Every time I try to launch VSCode, I receive an Illegal instruction error.
Yes, Zero is too old architecture for that, same reason why there is no Ubuntu for older armv6 Pi models. Also unfortunately even remote ssh plugin for vscode https://code.visualstudio.com/docs/remote/ssh does not work with Zero either. While the idea of running GUI and vscode directly on Zero is perhaps too optimistic the remote plugin could be more practical, but doesn't work for same reason.

farera4946
Posts: 2
Joined: Sun May 16, 2021 7:50 am

Re: How to install VSCode on Raspberry Pi Zero W?

Sun May 16, 2021 10:08 pm

Thank you all very much for your help, I really appreciate it. I was going off of information from the announcement on the blog https://www.raspberrypi.org/blog/visual ... pberry-pi/ and it doesn't explicitly state the incompatibility of the Zero. I'm a beginner and thought "ARM and ARM64" meant all revisions of ARM processors. Don't mean to sound angry, just saying why I thought I could do it. Thank you again for your help.

fruitoftheloom
Posts: 26845
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to install VSCode on Raspberry Pi Zero W?

Mon May 17, 2021 2:44 am

farera4946 wrote:
Sun May 16, 2021 10:08 pm
Thank you all very much for your help, I really appreciate it. I was going off of information from the announcement on the blog https://www.raspberrypi.org/blog/visual ... pberry-pi/ and it doesn't explicitly state the incompatibility of the Zero. I'm a beginner and thought "ARM and ARM64" meant all revisions of ARM processors. Don't mean to sound angry, just saying why I thought I could do it. Thank you again for your help.

Yes the Blog is poorly written, it should of stated ARMv6 is not supported, hence why I *attempt* to find Official Developer Support for 3rd party software.
The information is out there....you just have to let it in.

My other Linux machines: ChromeBox
https://www.aliexpress.com/item/32966393971.html
& Stone Desktop Intel CoreDuo circa 2010

Return to “Beginners”