Terminal Sandbox Issue Popup

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On launch, Cursor IDE shows an error in the bottom-left of the window: “Terminal sandbox could not start. This may be caused by an AppArmor configuration on your Linux system (kernel 6.2+).” The terminal sandbox does not work. This appears to be caused by Ubuntu’s AppArmor restriction on unprivileged user namespaces, with no AppArmor profile shipped for Cursor.

Steps to Reproduce

Install Cursor IDE on [Ubuntu 26.04.1 LTS] with kernel [Linux 7.0.0-38-generic]
Launch Cursor IDE
Look at the bottom-left of the window: the sandbox error appears

Expected Behavior

No popups and everything working fine

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 3.27.12
VS Code Extension API: 1.128.0
Commit: df132ffba90dfc15a12e6b8f020ba4e5d026c4b0
Date: 2026-10-23T02:27:47.076Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Linux x64 7.0.0-38-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @iamaakashbasnet,

That popup means the agent’s terminal sandbox couldn’t start, so agent commands fall back to asking for your approval before they run. The rest of Cursor isn’t affected. On Ubuntu 26.04 the sandbox needs Cursor’s AppArmor profile, and only the .deb package installs it. The AppImage doesn’t include one.

If you’re on the AppImage, switching to the .deb from Cursor · Download is the simplest fix. If you already installed the .deb:

  1. Run sudo apparmor_parser -r /etc/apparmor.d/cursor-sandbox
  2. Run sudo aa-status | grep cursor_sandbox and check that cursor_sandbox is listed
  3. Fully quit Cursor (every window) and open it again

If you don’t need the sandbox, “Don’t Show Again” on the popup hides it for that workspace. If it still appears after those steps, let me know which package you installed and what step 2 printed.