Thanks. Worked for me.
The only one that worked for me.
Thanks a ton! In case anyone’s wondering this script also works if you need to downgrade cursor b/c an update completely breaks something, like 0.46.0 did with debugging for me
I moved to other alternative softwares ( i.e. wind…f it is banned to mention its name ) just because there is no simple apt package and it is hard to update everytime. It is not hard to create apt repo for ubuntu! I hope their team make it easier to update or adopt community developed scripts officially, or support ubuntu updates.
Hey, we are currently working on an APT package, a rough ETA right now would be ~2 weeks but don’t hold me to this!
We’re just finalizing our rollout of 0.46, then this is our next area of work!
Just wanted to chime in and say thanks for putting the effort in to make an APT package available! I’ve been using the --no-sandbox
workaround for now, but the package will be much more convenient.
You are the best! Awesome solution, this should be in the official website.
In Ubuntu 24.04, unprivileged user namespaces are restricted by default (for security).
Cursor (and many Electron apps) needs these namespaces for its internal sandbox, so it fails to start.
Fix Options:
- Edit the desktop file to disable sandbox:
Edit/usr/share/applications/cursor.desktop
, modify theExec
line:
Exec=cursor --no-sandbox %U
This works but disables security isolation.
2. Temporarily allow namespaces until reboot:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
Works for all apps but reduces system security.
3. Permanently allow namespaces (less recommended):
Add this to /etc/sysctl.conf
:
kernel.apparmor_restrict_unprivileged_userns=0
Then:
sudo sysctl -p
- Recommended - AppArmor exception for Cursor only:
Create/etc/apparmor.d/local/usr.bin.cursor
:
capability userns,
Reload AppArmor:
sudo apparmor_parser -r /etc/apparmor.d/usr.bin.cursor
This allows only Cursor to use user namespaces, keeping the system more secure.
This issue affects many apps using Electron/Chromium, so you might see the same with Codium, VSCode, etc.
You can try this
Thanks a ton, works for me on 24.04
Thanks, works for me on 24.04
I have to install libfuse2.0 to make it work
sudo apt install libfuse2
One big issue is that if you access this URL which should give you the latest version:
https://downloader.cursor.sh/linux/appImage/x64
It actually gives you 0.45.x version! Cursor guys, please fix this ,this should not be so hard??
best regards!
The latest version is on Downloads | Cursor - The AI Code Editor
Are there any updates related to this?
Can we please have deb files for Cursor. Something that Windsurf is doing right.
Both vscode, windsurf and others just deliver deb files for people to download. Its not that hard.
Hey, I think we’ll be able to provide that soon.
If that is true, then I most likely will go for Cursor instead of Windsurf.
I’m still waiting for it, I would love to go for Cursor Pro and pay. But I won’t until I can get rid of this appimage which is causing me quite some stupid errors.
Could you give an ETA when you expect to have a Debian repository / deb files?
Are we talking this month? Months? Years? I know people are requesting deb files since 2023.
i made a simple script . you can use it . it might be helpful.
and feel free to submit a Pull Request. Thanks