Install VS Code on Gnoppix 25

Debian and Ubuntu based distributions

  • The easiest way to install Visual Studio Code for Gnoppix is to download and install the .deb package (64-bit), either through the graphical software center if it’s available, or through the command line with:

sudo apt install ./<file>.deb

If you’re on an older Gnoppix 23, you will need to run this instead:

# sudo dpkg -i <file>.deb # sudo apt-get install -f

Install dependencies

When you install the .deb package, it prompts to install the apt repository and signing key to enable auto-updating using the system’s package manager.

  • To automatically install the apt repository and signing key, such as on a non-interactive terminal, run the following command first:

echo “code code/add-microsoft-repo boolean true” | sudo debconf-set-selections

To manually install the apt repository:

  1. Run the following script to install the signing key:
sudo apt-get install wget gpg wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo install -D -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft.gpg rm -f microsoft.gpg

Create a /etc/apt/sources.list.d/vscode.sources file with the following contents to add a reference to the upstream package repository:

Types: deb
URIs: https://packages.microsoft.com/repos/code
Suites: stable
Components: main
Architectures: amd64,arm64,armhf
Signed-By: /usr/share/keyrings/microsoft.gpg

Lastly, update the package cache and install the package:

sudo apt update && apt install apt-transport-https code # or code-insiders

Note

Due to the manual signing process and the publishing system we use, the Debian repo could lag behind by up to three hours and not immediately get the latest version of VS Code.