My OS specifications are given below:
pegasus@pegasus:~$ uname -r
5.19.0-1007-nvidia-lowlatency
pegasus@pegasus:~$ uname -a
Linux pegasus 5.19.0-1007-nvidia-lowlatency #7-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 25 00:08:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I'd downloaded microsoft-edge-stable[version].deb file using firefox. and installed it using dpkg -i. But the app doesn't run using GUI. When I type microsoft-edge-stable in terminal it gives the following error:
pegasus@pegasus:~/Downloads$ microsoft-edge-stable
[7399:7399:0503/210255.608214:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)
How to get rid of this error and run microsoft edge normally. Again when I use
microsoft-edge-stable --no-sandbox
It runs properly
One other thing to watch out for is apparmor. Check your dmesg log for something like:
[ 283.250675] audit: type=1400 audit(1702938463.134:129): apparmor="DENIED" operation="userns_create" class="namespace" info="User namespace creation restricted" error=-13 profile="unconfined" pid=4483 comm="your-app" requested="userns_create" denied="userns_create"
If that's the case, try:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
It took me a while to figure this one out, as most answers keep referring to the nvidia modules problems, while this was not the case in my situation.
ref: https://github.com/flatpak/flatpak/issues/5462
To make it persist after reboot, add a line to /etc/sysctl.conf
It seems to be a new nvidia kernel that gets installed with the (newest?) GPU's nvidia propietary driver, see this other similar case.
Changed the kernel on boot up to the non-nvidia-kernel, and now Vscode opens normally without having to pass the --no-sandbox parameter.
Edge and Vscode both use Chromium under the hood, so any chromium powered app is probably having this issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With