Package libgconf-2-4 is not installed : Visual Studio Code Ubuntu

Package libgconf-2-4 is not installed : Visual Studio Code Ubuntu

Recently while trying to install Visual Studio Code on my Ubuntu machine I encoutered the following error :

Package libgconf-2-4 is not installed

I’m trying to install Visual Studio Code from the .deb packages downloaded from the official Visual Studio Code website.

Launch the Ubuntu terminal and navigate to the folder where the .deb package is downloaded. Execute the following command to install the .deb package.

# install .deb package for visual code
sudo dpkg -i code_1.29.0-1542008808_amd64.deb

If you encounter the following error :

Package libgconf-2-4 is not installed

simply, execute the following command to install the missing dependencies and you should be good to go.

# to install missing dependencies
sudo apt-get install -f

Hope it helps !!