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
summary: Code editing. Redefined.
message: health has not been set
publisher: Visual Studio Code (vscode✓)
Visual Studio Code is a new choice of tool that combines the
simplicity of a code editor with what developers need for the core
I’m not sure what it is as I didn’t add that. The distro is Ubuntu 20.04
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 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 …
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)