انتقل إلى المحتوى الرئيسي

تثبيت Cursor على Ubuntu 24.04

السؤال​

مرحباً، أحاول تثبيت Cursor على نظام Ubuntu 24.04 جديد وأستمر في الحصول على هذا الخطأ:

الأمر: ./cursor-0.33.1x86_64.AppImage

المخرجات:

[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)

أنا لست خبيراً في AppImage، هل يمكنك تقديم أي نصيحة لمواصلة التثبيت؟

الإجابة​

هذه المشكلة متعلقة بـ AppArmor. تحتاج إلى إنشاء ملف تعريف لتشغيل Cursor. بدلاً من ذلك، يمكنك تشغيله باستخدام خيار --no-sandbox، والذي يجب أن يعمل بشكل جيد:

./cursor-0.40.1x86_64.AppImage --no-sandbox

إذا كنت تفضل إصلاح الأذونات، يمكنك تشغيل الأوامر التالية:

sudo chmod 4755 /tmp/.mount_cursormtBVFd/chrome-sandbox
sudo chown root:root /tmp/.mount_cursormtBVFd/chrome-sandbox

هذا يجب أن يحل المشكلة على نظام Ubuntu 24.04 الخاص بك.

المصدر​

@https://forum.cursor.com/t/cursor-install-ubuntu-24-04/4838