Ubuntu 安装 Visual Studio Code
直接下载deb包安装失败,具体原因不明。通过官网提供的添加repository的方式安装成功:
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'
之后,
sudo apt-get update
sudo apt-get install code # or code-insiders
就可以安装成功了。