Installing VS Code in Linux
The automated script
Save this script in your ~/Downloads folder as vscode.sh
sudo apt-get install wget gpg apt-transport-https -y
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt update
sudo apt install code -y
Then run the following commands in the terminal:
cd ~/Downloads
chmod +x ./install_vscode.sh
sh ./vscode.sh
it should work.
Solution to install VS Code in Linux
Save this script in your ~/Downloads folder as vscode.sh
sudo apt-get install wget gpg apt-transport-https -y
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt update
sudo apt install code -y
Then run the following commands in the terminal:
cd ~/Downloads
chmod +x ./install_vscode.sh
sh ./vscode.sh
it should work.
Solution to install VS Code in Linux
Comments
Post a Comment