- Hands-On Serverless Computing
- Kuldeep Chowhan
- 166字
- 2025-04-04 16:32:06
Debian and Ubuntu-based distributions
The easiest way to install VS Code on Debian/Ubuntu-based distributions is to download and install the 64-bit .deb package from https://go.microsoft.com/fwlink/?LinkID=760868. If you have the graphical software center available, then install the 64-bit .deb package from there, and if it is not available then install it using the command line:
sudo dpkg -i <file>.deb
sudo apt-get install -f # Install dependencies
The .deb package installation will automatically install the apt repository and it will also install the signing key which enables auto-updating using the regular system mechanism. You can download the 32-bit .deb package and .tar.gz binaries from https://code.visualstudio.com/Download
The repository and key can also be installed manually using the following script:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
Then run the following commands to update the package cache and install the package:
sudo apt-get update
sudo apt-get install code # or code-insiders