Vscode is not opening whenever I click on vscode icon nothing happens.
running code . --verbose gives below output.
ERROR: ld.so: object ‘/usr/local/lib/AppProtection/libAppProtection.so’ from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.
/snap/code/92/usr/share/code/chrome_crashpad_handler: /snap/core/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26’ not found (required by /lib/x86_64-linux-gnu/libX11.so.6)
below is the snap info
snap info --verbose code
name: code
summary: Code editing. Redefined.
health:
status: unknown
message: health has not been set
publisher: Visual Studio Code (vscode✓)
store-url: https://snapcraft.io/code
contact: https://twitter.com/code
license: unset
description: |
Visual Studio Code is a new choice of tool that combines the
simplicity of a code editor with what developers need for the core
edit-build-debug cycle.
commands:
well, this is definitely not anything ubuntu would ever ship and the /usr/local/lib/ path indicates it is something you compiled or installed locally (no official package in ubuntu or debian ever puts anything into /usr/local), something modified your system here …
I have cuda installed (for the past 1 year) and for that I need to add the below command in .bashrc.
But This command is there from last 1 year. I didn’t face any issue till today.
i wouldn’t expect cuda to put stuff anywhere else than /usr/local/cuda-11.1, but then i’m not a CUDA expert … the above really looks like something non-cuda related … ld_preload usually means single functions from essential system libs (i.e. glibc) get overridden with a hacked up version of the same function …
Okay. So any steps to follow or to unset this?
Because I tried uninstalling and installing.
Did a Timeshift restore even that didn’t work I hoped it would work because it was working fine yesterday.
I need to use vscode for my coding and work…
well, i have no idea where it comes from or what it is, but if something mangled your system like this it is very likely other things (paths, library search paths etc etc) might have been mangled as well …
yeah, looks like that file has been modified a year ago already … still very suspicious that you do not know about it (and this is a serious security breach if you did not modify the file yourself)
i just installed VSCode on my 20.04 box here for a test and it runs fine … i wonder if anything modified your LD_LIBRARY_PATH so the snap does not find the libc from the core(16) snap anymore (classic snaps are very fragile if it comes to mixing libs like that)