Issue to install Cursor on a fresh Ubuntu 24.04

Hello, I am trying to install Cursor on a fresh Ubuntu 24.04 and I keep getting this error:

Command: ./cursor-0.33.1x86_64.AppImage

Output:

[15782:0509/084956.875712:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now. You need to make sure that /tmp/.mount_cursorgbp94S/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)

I am not very prolific with AppImage, could you give me any tip to continue the installation?

Thanks.

Its a problem with apparmor you need to create a profile to run Cursor.

github.com/getcursor/cursor

You don’t even need apparmor just locate your AppImage and execute it with the option --appimage-extract. Drop into squashfs-root directory and input chmod 4755./chrome-sandbox as well as chown root:root ./chrome-sandbox. Then just run the “cursor” script from there in your applications widget, of course you have the .desktop or however else you prefer.

Would it not make sense to fix this in the AppImage? The workaround as stated above can be to --appimage-extract, then mv squashfs-root cursor && cd cursor and finally sudo chown root:root chrome-sandbox && sudo chmod 4755 chrome-sandbox.

A solution might be to have the expected ownership and permissions for chrome-sandbox in the AppImage to begin with, so no extraction or AppArmor adjustment is needed.

2 Likes


I did it your way and it installed, ubuntu asked me to reboot the computer and when rebooting it shows like this, I cant access ubuntu anymore. do you know how to fix it?

I feel like Ubuntu 24.04.1 is completely broken. I tried it, gave up and went to 22.04, just not worth the effort right now (unless you are lucky and things are magically working for you)

I have developed a version that provides an interactive selection of specific tasks.

You can select:

  • Option (1): Search for and download the latest version if a newer one is available than what’s currently on your machine.
  • Option (2): Re/install the latest version already downloaded to your machine and create a symbolic link to the executable with an icon.
  • Option (3): Configure AppArmor for the safe execution of the newly installed or updated version.

For more details, view the code and its explanation in my gist:

cursor_appimage_manager.sh

I hope this can help someone.

Good luck!

4 Likes

This is awesome, thank you for publishing

Edit: I might have spoke too soon.

@jorcelinojunior The desktop app is appearing but refuses to launch

1 Like

Once I installed fuse everything worked:

sudo apt install libfuse2
1 Like

Thank you for properly code-blocking that, I’m new to forums hah.

I entirely agree, I’m not familiar enough with AppImages to determine if you are allowed to compile something to have a file be owned by the users root though.

@heydan98 what do you mean by “I did it your way”. I assume because Ubuntu asked you to reboot that you are talking about the AppArmor way as changing the appimage shouldn’t have had to do anything system-wide. If you have issues otherwise though feel free to send a message I don’t mind troubleshooting if I can assist in any way.

@heydan98 man I have the exact same problem right now with my system. I have just installed cursor editor and when I restarted my machine, I got prompted by this screen. I am trying to solve this thing for several hours now. Can someone please help? Also @siegemt