Their is 2 way to install visual code the first one and the easy one is to
install it via Ubuntu software however i get
Unable to install "Visual Studio Code": snap "vscode" has "install-snap" change in progress.
And i have failed to fix it
The second one is
to go the site https://code.visualstudio.com/download
and download a version for ubuntu.
And use this command to install after position on downloads folder :
sudo dpkg -i code_1.27.2-1536736588_amd64.deb
the name of file of visual code should be the same as that one you download.
after i get the error
Selecting previously unselected package code.
(Reading database ... 173565 files and directories currently installed.)
Preparing to unpack code_1.27.2-1536736588_amd64.deb ...
Unpacking code (1.27.2-1536736588) ...
dpkg: dependency problems prevent configuration of code:
code depends on libgconf-2-4; however:
Package libgconf-2-4 is not installed.
dpkg: error processing package code (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
code
And fix it using the command i get from this link : https://github.com/resin-io/etcher/is...
sudo apt -y install libgconf2-4
after i retype again the command
sudo dpkg -i code_1.27.2-1536736588_amd64.deb
and it installed successfully
All the command used are :
cd ~/Downloads
sudo dpkg -i code_1.27.2-1536736588_amd64.deb
sudo apt -y install libgconf2-4
#ubuntu
#Visual_Studio_Code
#dependency_problems
#libgconf