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 dependencies in debian package #13089

Closed
andyneff opened this issue Sep 30, 2016 · 21 comments · Fixed by #147335
Closed

Missing dependencies in debian package #13089

andyneff opened this issue Sep 30, 2016 · 21 comments · Fixed by #147335
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux on-testplan verified Verification succeeded
Milestone

Comments

@andyneff
Copy link

andyneff commented Sep 30, 2016

  • VSCode Version: 1.5.3
  • OS Version: debian jessie

Steps to Reproduce:

  1. build_deps="curl ca-certificates"
  2. apt-get update
  3. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${build_deps}
  4. curl -L https://go.microsoft.com/fwlink/?LinkID=760868 -o /code.deb
  5. dpkg -i /code.deb
  6. DEBIAN_FRONTEND=noninteractive apt-get install -y -f --no-install-recommends
  7. DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove ${build_deps}
  8. rm -rf /var/lib/apt/lists/* /code.deb

Does not install the following libraries

libgtk-x11-2.0.so.0
libgdk-x11-2.0.so.0
libatk-1.0.so.0
libpangocairo-1.0.so.0
libcairo.so.2
libpango-1.0.so.0
libfreetype.so.6
libfontconfig.so.1
libdbus-1.so.3
libXi.so.6
libXcursor.so.1
libXdamage.so.1
libXrandr.so.2
libXcomposite.so.1
libXext.so.6
libXfixes.so.3
libXrender.so.1
libXtst.so.6
libgconf-2.so.4
libasound.so.2
libcups.so.2
libexpat.so.1

The dependencies of the .deb package are

root@2cb088d9c151:/# apt-cache show code | grep ^Depends
Depends: libnotify4, libnss3
  • Suggestion - Add a similar subset to the dependency list
libgtk2.0
libatk1.0
libpango1.0
libpangocairo-1.0
libcairo2
libfreetype6
libfontconfig1
libdbus-1-3
libxi6
libxcursor1
libxdamage1
libxrandr2
libxcomposite1
libxext6
libxfixes3
libxrender1
libxtst6
libgconf-2-4
libasound2
libcups2
libexpat1

and now

libxss1
@Tyriar Tyriar added install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux labels Sep 30, 2016
@Tyriar Tyriar self-assigned this Sep 30, 2016
@Tyriar Tyriar added this to the Backlog milestone Sep 30, 2016
@Tyriar Tyriar added the debt Code quality issues label Dec 13, 2016
@Tyriar Tyriar modified the milestones: January 2017, Backlog Dec 13, 2016
@vith
Copy link

vith commented Dec 18, 2016

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

In my case I only needed to install libgconf-2-4 manually, on elementary OS 0.4 (uses Ubuntu 16.04 repos).

@bencdelaney
Copy link

bencdelaney commented Jan 26, 2017

/usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

This was on 32-bit Ubuntu 12.04, after installing code_1.8.1-1482159060_i386.deb. Installing libxss1 fixed my problem.

@ericblade
Copy link

Ubuntu 16.04.2 required me to perform:

sudo apt-get install libgtk2.0-0 libxss-dev libgconf-2-4 libasound2

after installing the code package to get it to work (i started with a system that was configured only for text usage)

@0xabu
Copy link
Contributor

0xabu commented Nov 15, 2017

As a minor tweak to the workaround above, I don't think you necessarily need/want the -dev packages. I got it working on Ubuntu server 16.04 with just:
sudo apt install libgtk2.0-0 libxss1 libasound2

@figuerres
Copy link

current deb vs code installed , installed the libs
now when i type code -verbose all i see is a version number and a code of some kind but no error message and no ui.

i am running wsl / ubuntu and xeyes / xclock / xclalc all work with xming on the machine.
any idea what i am missing ?

@Tyriar
Copy link
Member

Tyriar commented Dec 14, 2017

@figuerres we don't support the Linux binary on WSL and I wouldn't have expected it to ever work reliably.

@figuerres
Copy link

@Tyriar
i have seen that some folks had it work, so i am trying it.

here is a question: what IS supported ?
the whole thing is confusing as heck to me.....

if i want to use the linux tools it seems like a mess, the two file systems and which can read what and which can run what.....
i am starting to feel that i should just run a linux box for stuff and forget this linux on windows hack.

just too many quirks...

@Tyriar
Copy link
Member

Tyriar commented Dec 14, 2017

@figuerres AFAIK that while it's possible, WSL was not designed to launch Linux GUI apps under Windows. It's primary purpose is to bring cli tools to Windows. When you install VS Code on Windows it will install a shell script to the path which will launch the Windows version, this is supported.

I tend to generally agree with you that it's too quirky atm which is why I'm sticking with Powershell until WSL is more mature and better support is added to vscode.

Also the correct issue to discuss this on is #13138 (of which you have participated), please keep discussion over there to keep things organized. This issue is specifically about dependencies declared in the deb.

@rzhao271
Copy link
Contributor

Upstream PR ref electron/electron#34077

@rzhao271 rzhao271 modified the milestones: June 2022, July 2022 Jun 27, 2022
@deepak1556 deepak1556 removed electron-18-update help wanted Issues identified as good community contribution opportunities labels Jul 5, 2022
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jul 19, 2022
rzhao271 added a commit that referenced this issue Jul 20, 2022
@bpasero bpasero moved this from 🏃 In Progress to ✔️ Done / Deferred in Electron Integration Jul 21, 2022
@connor4312 connor4312 added the verified Verification succeeded label Jul 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 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 insiders-released Patch has been released in VS Code Insiders install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux on-testplan verified Verification succeeded
Projects
Archived in project
Electron Integration
  
✔️ Done / Deferred
Development

Successfully merging a pull request may close this issue.