Skip to content

Instantly share code, notes, and snippets.

@nareshganesan
Created December 6, 2017 15:55
Show Gist options
  • Save nareshganesan/86b9145e41d7612439c5e0a3a3423dc2 to your computer and use it in GitHub Desktop.
Save nareshganesan/86b9145e41d7612439c5e0a3a3423dc2 to your computer and use it in GitHub Desktop.
Install vscode Ubuntu 16.04
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
@nt242298
Copy link

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.

@lsh1088
Copy link

lsh1088 commented Apr 9, 2024

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)

@nt242298
Copy link

nt242298 commented Apr 9, 2024

Love You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment