Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code Installation on Ubuntu 16.04

I used instruction from VSC web page https://code.visualstudio.com/docs/setup/linux

~$ sudo dpkg -i code_1.8.1-1482158209_amd64.deb

But have this error:

(Reading database ... 65442 files and directories currently installed.) Preparing to unpack code_1.8.1-1482158209_amd64.deb ... Unpacking code (1.8.1-1482158209) over (1.8.1-1482158209) ... dpkg: dependency problems prevent configuration of code: code depends on libnotify4; however: Package libnotify4 is not installed. code depends on libnss3; however: Package libnss3 is not installed.

dpkg: error processing package code (--install): dependency problems - leaving unconfigured Processing triggers for mime-support (3.54ubuntu1.1) ... Errors were encountered while processing: code

Thank you.

like image 768
Konstantin111 Avatar asked Jan 26 '17 15:01

Konstantin111


Video Answer


2 Answers

Did you run the sudo apt-get install -f command after you got those errors? That command should install missing dependencies.

like image 163
alexriedl Avatar answered Oct 21 '22 00:10

alexriedl


I had the same issue a couple of weeks ago. This issue raised on VSCode's Github was suspended stating that there wasn't any sufficient information on the issue. I managed to install it anyway by the following way:

sudo apt install libgconf-2-4

The above command installs the missing library.

sudo apt --fix-broken install

Then, do the command to install VSCode.

sudo dpkg -i code_1.25.1-1531323788_amd64.deb

Navigate to the location of the downloaded file while doing the above commands.

like image 5
Aseem Savio Avatar answered Oct 20 '22 23:10

Aseem Savio