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, 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!

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

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.

This may help you:

Hi!

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:

less /var/log/apt/history.log

Start-Date: 2024-12-24 09:42:23
Commandline: apt install fuse libfuse2
Requested-By: alvarogc (1000)
Install: fuse:amd64 (2.9.9-8.1build1), libfuse2t64:amd64 (2.9.9-8.1build1)
Remove: ntfs-3g:amd64 (1:2022.10.3-1.2ubuntu3), xdg-desktop-portal-gtk:amd64 (1.15.1-1build2), xdg-desktop-portal-gnome:amd64 (46.2-0ubuntu1), gnome-remote-desktop:amd64 (46.3-0ubuntu1), gvfs-fuse:amd64 (1.54.0-1ubuntu2), gnome-shell-extension-desktop-icons-ng:amd64 (46+really47.0.9-1), fuse3:amd64 (3.14.0-5build1), ubuntu-session:amd64 (46.0-1ubuntu4), ubuntu-desktop-minimal:amd64 (1.539.1), nautilus:amd64 (1:46.2-0ubuntu0.2), xdg-desktop-portal:amd64 (1.18.4-1ubuntu2.24.04.1)
End-Date: 2024-12-24 09:42:34

The same thing happened to me, and I managed to fix it as follows:

  1. Access the system CLI with CTRL + ALT + F4.

  2. Manually reinstall the missing packages:

sudo apt install ubuntu-desktop-minimal ubuntu-session gnome-shell-extension-desktop-icons-ng nautilus xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-gnome gvfs-fuse ntfs-3g fuse3

  1. Uninstall libfuse2 and fuse:

sudo apt remove --purge fuse libfuse2

  1. Make sure to reinstall fuse3:

sudo apt install fuse3

  1. Update and repair the system:

sudo apt --fix-broken install

  1. Update the system to ensure everything is up to date:

sudo apt update && sudo apt upgrade

  1. Fully reboot the system:

sudo reboot

With this process, I was able to restore the graphical environment of my Ubuntu 24.04. I hope it works for you too.

Cheers!!

does the fix works ?

@alekswithakayy


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:

Cursor Setup Wizard in Action

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.

Go to the cursor-setup-wizard repository and give it a try! 🚀

If you have any suggestions or run into issues, feel free to open an issue in the repository—I’ll gladly help!