Reputation: 61
I am trying to install vscode onto my raspberry pi.
I have tried going to the vscode website to download it, but when I try to install it I get the error "failed to install file". I am not sure what to do.
Upvotes: -1
Views: 6504
Reputation: 734
Install 1.93.x version
apt update
apt install wget gpg
cd home/
wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/code_1.93.1-1726079302_amd64.deb
apt install ./code_1.93.1-1726079302_amd64.deb
Upvotes: -1
Reputation: 169
There is a distro for Raspberry Pi, Jetson Nano and similar ARM A Linux devices.
wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add -
curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash
If you want to type code
instead of code-oss
, then:
cd /usr/bin && sudo ln -s code-oss code
Upvotes: 0
Reputation: 473
Not officially supported, but you can install this unofficial build, open up a terminal on the Pi:
sudo su
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
More information here
If it fails to install (authentication issues), you can force it with:
sudo apt install code-oss libnspr4 libnss3 libsecret-1-0 libsecret-common libxkbfile1 --allow-unauthenticated
Upvotes: 0
Reputation: 11
It's simply not supported at this time. The linux versions made available on the official download page are for Linux PCs, not Raspberry Pis. The error you get belies this incompatibility. The only means of getting Code on a Pi is via unofficial ports, as outlined in the link provided by the other answerer.
Upvotes: 1