I'm completely new to Linux and wanted to experiment a little, so I don't really know what I'm doing. I am on working Ubuntu 18.04 and I have been unable to get Visual Studio Code to start again, even though it was working before. Trying to launch it through the application menu only resulted in a short loading animation followed by nothing. Launching it through the terminal issued
/usr/lib/snapd/snap-confine: error while loading shared libraries: libudev.so.1: failed to map segment from shared object.
I already tried to reinstall it. But attempting it through the terminal somehow didn't work at all
manuel@Manuel-Ubuntu:~$ sudo dpkg --remove visual-studio-code
dpkg: warning: ignoring request to remove visual-studio-code which isn't installed. According to the Ubuntu Software center it was installed.
I tried the suggestion by @karel snap-confine refuses to launch application to avoid permission attack, which didn't help my problem.