sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt update
sudo apt install code
Last active
December 29, 2025 20:18
-
-
Save codedeep79/49ac6e9d30785e2284e3761d7d65f829 to your computer and use it in GitHub Desktop.
Install Visual Studio Code in Ubuntu
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - is working fine.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@lance2k
This does not work.
The public key is not available.
/usr/share/keyrings/microsoft.gpgexists.Commands:
sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"sudo apt updateOutput:
How to get it?