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.
Did you run the sudo apt-get install -f
command after you got those errors? That command should install missing dependencies.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With