Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing gconf2 dependency with Ubuntu 17.04 (Zesty) #24945

Closed
vide opened this issue Apr 18, 2017 · 8 comments
Closed

Missing gconf2 dependency with Ubuntu 17.04 (Zesty) #24945

vide opened this issue Apr 18, 2017 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux verified Verification succeeded
Milestone

Comments

@vide
Copy link

vide commented Apr 18, 2017

Ubuntu 17.04 doesn't ship anymore by default gconf2 (it uses dconf), so on a fresh Ubuntu 17.04 install you get this error after installing VSCode:

$ code
/usr/share/code/bin/../code: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

this is easily fixed by:

$ sudo apt install libgconf-2-4

but the dep should nonetheless be in the .deb package (or maybe Electron/VSCode should use dconf too, but that's another story)

EDIT: fixed package name

@mjbvz mjbvz added the linux Issues with VS Code on Linux label Apr 18, 2017
@Tyriar
Copy link
Member

Tyriar commented Apr 18, 2017

Hmm, I'm running Ubuntu 17.04 and I don't have that installed. Any idea why I'm not experiencing it?

~/dev/Microsoft/vscode @master +1/-1
❯ dpkg -s libgconf2-4
dpkg-query: package 'libgconf2-4' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

@Tyriar Tyriar added install-update VS Code installation and upgrade system issues info-needed Issue requires more information from poster labels Apr 18, 2017
@vide
Copy link
Author

vide commented Apr 18, 2017

Sorry, my bad, you should apt install libgconf-2-4, libgconf2-4 is a virtual, transictional package, so if you don't have it installed, nothing breaks. You should indeed have libgconf-2-4 installed, which is the package that provides /usr/lib/x86_64-linux-gnu/libgconf-2.so.4

@Tyriar
Copy link
Member

Tyriar commented Apr 18, 2017

@vide oh I only put that there because apt install libgconf-2-4 was going to install a new package:

~/dev/Microsoft/vscode @master +1/-1
❯ sudo apt install libgconf2-4
[sudo] password for daniel:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libgconf2-4
0 to upgrade, 1 to newly install, 0 to remove and 12 not to upgrade.

@vide
Copy link
Author

vide commented Apr 19, 2017

@Tyriar the output you pasted means that you already had libgconf-2-4 installed (otherwise it would be pulled by libgconf2-4), that maybe you installed with something else (I think that any electron app needs gconf2). But on a pristine Ubuntu 17.04 gconf2 is not installed anymore, leading to the error I reported

@Tyriar
Copy link
Member

Tyriar commented Apr 19, 2017

@vide oh? I'm confused?

It says 1 to newly install in the output, 0 to upgrade. Doesn't that mean it's not installed?

@vide
Copy link
Author

vide commented Apr 20, 2017

@Tyriar you missed the edit on the original post: try to install the libgconf-2-4 package, please. Please note the extra dash between libgconf and 2.

@Tyriar
Copy link
Member

Tyriar commented Apr 21, 2017

Doh, my bad.

@Tyriar Tyriar added this to the April 2017 milestone Apr 21, 2017
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Apr 21, 2017
@Tyriar Tyriar closed this as completed in 43e059e Apr 21, 2017
@Tyriar
Copy link
Member

Tyriar commented Apr 21, 2017

@vide related to this is #13089, right now we're not specifying many dependencies for the .deb. If you know of a nice way of getting the actual package names (eg. libgconf-2-4 not libgconf-2.so.4) that I could run I can go ahead and do that. That's the only thing blocking me there.

@Tyriar Tyriar added the verified Verification succeeded label Apr 27, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants