How do I install Cursor on Ubuntu Linux? I have executed as follows:
mylaptop@mylaptop-HP-250-G7-Notebook-PC:~/Downloads$ chmod +x Cursor-0.47.9-x86_64.AppImage
mylaptop@mylaptop-HP-250-G7-Notebook-PC:~/Downloads$ ./Cursor-0.47.9-x86_64.AppImage
The setuid sandbox is not running as root. Common causes:
An unprivileged process using ptrace on it, like a debugger.
A parent process set prctl(PR_SET_NO_NEW_PRIVS, …)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[8245:0325/210326.979319:FATAL:zygote_host_impl_linux.cc(207)] Check failed: . : Invalid argument (22)
Trace/breakpoint trap (core dumped)
mylaptop@mylaptop-HP-250-G7-Notebook-PC:~/Downloads$
I know that I can do it with --no-sandbox but it is unsafe method. Is there any alternative?
I have noticed there is long discussion on another thread but it suggests running it from other user’s private repository. Is there any official document on Cursor website what is the recommended way?
I toggled the run as a program thing, and checked that my libfuse2 is current. Nothing happens if I try to run via right click on file, on terminal I get the “[9798:0327/121158.396117:FATAL:credentials.cc(131)] Check failed: . : Permission denied (13)”
and with sudo it requires the no-sandbox, and I’d not prefer to install it that way. I’m on 24.04 LTS.
I haven’t tested this yet, but the community has been putting a lot of work into a script for installing and updating Cursor on Ubuntu based distros. Script to Install Cursor on Ubuntu easily
I’ve solved the issue by creating /etc/apparmor.d/cursor file and restarting my machine. The content of the file is as follows:
abi <abi/4.0>,
include <tunables/global>
profile cursor /home/mylaptop/Downloads/Cursor-0.47.9-x86_64.AppImage flags=(unconfined) {
userns,
include if exists <local/cursor>
}
But to be honest, I don’t fully understand why it helped. If you use it, use it at your own risk. Of course the path to the file must be changed to reflect your location.