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?
Its a problem with AppArmor, and for now, you’ll need to create a profile to run Cursor.
We are working with the ToDesktop team to try and get a better solution than this, but this is an issue affect a lot of apps, and there’s not a good solution currently!
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.
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)
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
I ran into this before and ended up completely re-installing Ubuntu. I’m going to use Windsurf until Cursor prioritises something as basic and foundational as installation.
I’m not sure if you managed to solve the issue. The thing is, if you installed fuse and libfuse2 to use Cursor, this caused the uninstallation of key system packages, leaving the graphical environment inoperable. If you run this command, you’ll see:
I created a script that solves most of the common issues Linux users face with the Cursor .AppImage application, making everything easier! No more visiting the website to look for new versions or manually repeating tasks every time you want to update—this script handles all .AppImage-related updates and configurations for you.
See Cursor Setup Wizard in action below and see how it streamlines the entire process:
For full details and instructions, check out the repository's README.md. Here's a quick overview:
Highlights include:
Simplifies Cursor .AppImage management: Fetch updates, manage configurations, and resolve common issues effortlessly.
One command updates: Use the alias cursor-setup in your terminal to check for updates and install the latest .AppImage version anytime.
Optimized defaults: Works out of the box with pre-configured settings tailored for most users.
Customizable paths and themes: Easily modify paths, icons, and even colors to suit your preferences.
Multi-shell support: Automatically adds aliases for Bash and Zsh for quick access.
Detailed feedback: Logs every step of the process for transparency and easier troubleshooting.
Automatic version checks: Fetches the latest version online and compares its MD5 hash with your local version to ensure you're always up-to-date.
Comprehensive setup: Downloads the latest .AppImage, fetches the icon, creates desktop shortcuts, sets up AppArmor, and configures the "cursor" terminal command.