Created
December 6, 2017 15:55
-
-
Save nareshganesan/86b9145e41d7612439c5e0a3a3423dc2 to your computer and use it in GitHub Desktop.
Install vscode Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
# install vs code | |
sudo apt-get update | |
sudo apt-get install code # or code-insiders |
You can install an older version of vscode,
sudo apt install aptitude
sudo aptitude install code
reject other options and select yes when prompted to install the older version of code (1.11.2)
Love You
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i@bi-body-1:~$ sudo apt-get install code
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
code : Depends: libc6 (>= 2.28) but 2.23-0ubuntu11.3 is to be installed
Depends: libgssapi-krb5-2 (>= 1.17) but 1.13.2+dfsg-5ubuntu2.2 is to be installed
Depends: libnss3 (>= 2:3.30) but 2:3.28.4-0ubuntu0.16.04.14 is to be installed
Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.