Reputation: 19
I am getting this error while installing Visual studio code on ubuntu.
I tried these commands,first three worked but I am getting an error after the fourth one.
umake web visual-studio-code
usage: umake web [-h] {firefox-dev,phantomjs} ... umake web: error: argument framework: invalid choice: 'visual-studio-code' (choose from 'firefox-dev', 'phantomjs')
Upvotes: 1
Views: 13579
Reputation: 29
If you are not able to compile Visual Studio Code, yourself, you can follow these steps to install a compiled binary directly.
First update packages (by code below)
$sudo apt update
$sudo apt install software-properties-common apt-transport-https wget
Now import Microsoft's GPG Key (by code below)
$wget -q https://packages.microsoft.com/keys/microsoft.asc -O- |
sudo apt-key add -
Now enable Visual Code repository (by code below)
$sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Now just install Visual Studio Code (by code below)
$sudo apt update
$sudo apt install code
Upvotes: 2
Reputation: 1497
I don't know the last command, according to ubuntu-make and https://askubuntu.com/a/616363/861358 it should be like this:
umake ide visual-studio-code
Please note that there are also other ways to install Visual Studio Code discribed in the official Documentation:
Installation
Debian and Ubuntu based distributions
The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions 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 Linux distribution, you will need to run this instead: # sudo dpkg -i <file>.deb # sudo apt-get install -f
Install dependencies Installing the .deb package will automatically install the apt repository and signing key to enable auto-updating using the system's package manager. Note that 32-bit and .tar.gz binaries are also available on the download page.
The repository and key can also be installed manually with the following script:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
Then update the package cache and install the package using:
sudo apt-get install apt-transport-https sudo apt-get update apt-get install code # or code-insiders
Upvotes: 3