This question already has an answer here:

I'm trying to install Visual Studio Code, I downloaded deb file and run it. Ubuntu Software was opened but unfortunately when I tried to click install button nothing happened (this is only happening with third-party software). I didn't even get any error message. What can be the problem?

marked as duplicate by David Foerster, Eric Carvalho, ravery, karel, Videonauth Dec 1 '17 at 2:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I don't know what the cause was, but I had the same issue. I could install other software, like chess. I couldn't install Atom, though.

I managed to install it from terminal, using command (in case you don't have gdebi, first type sudo apt install gdebi-core -y )

sudo gdebi code_XX.XXX.XXXXXXX_amd64.deb

where Xs are the version number. You have to run it from directory where you have the deb file.

Another good way is to do it completely in the terminal and just type sudo dpkg -i vscode.deb where vscode.deb is the deb file that you downloaded.

The simplest way of installing vs code, is to setup a repository

curl | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] stable main" > /etc/apt/sources.list.d/vscode.list'

Then update the package cache and install the package using

sudo apt-get update
sudo apt-get install code # or code-insiders

I found I needed to select "save file" instead of "open with" when downloading the package.

Not the answer you're looking for? Browse other questions tagged or ask your own question.