# 如何在 Linux 上安装 Cursor AI 编辑器(2025 年更新) **Published by:** [wildcard注册](https://paragraph.com/@wildcard-4/) **Published on:** 2025-03-03 **URL:** https://paragraph.com/@wildcard-4/linux-cursor-ai-2025 ## Content Cursor 是一款以 AI 为核心的代码编辑器,支持 Windows、Mac 和 Linux 平台。它旨在通过 AI 辅助编程,帮助开发者更高效地编写代码。虽然我在 Mac 上安装 Cursor 非常顺利,但在 Ubuntu Linux 上却遇到了一些困难。经过一番研究,我成功解决了问题。以下是详细的安装步骤。第一步:下载 Cursor访问 Cursor 官网 并点击 “下载” 按钮。Cursor AI 编辑器下载完成后,您会在下载文件夹中看到一个以 .AppImage 结尾的文件。什么是 .AppImage?AppImage 是一种通用的软件包格式,无需传统安装方法即可在 Linux 上运行。第二步:使文件可执行不要直接双击文件!首先,我们需要使其可执行。在终端中执行以下命令: bash chmod +x cursor-0.42.4x86_64.AppImage注意:文件名可能会有所不同,请根据实际情况替换。第三步:解决 FUSE 错误如果运行文件时出现以下错误: bash ./cursor-0.42.4x86_64.AppImage dlopen(): error loading libfuse.so.2 AppImages require FUSE to run. You might still be able to extract the contents of this AppImage if you run it with the --appimage-extract option. See https://github.com/AppImage/AppImageKit/wiki/FUSE for more information该错误表明 .AppImage 需要 FUSE 才能运行。FUSE 是一种机制,允许非特权用户在用户空间创建自己的文件系统。第四步:安装 libfuse2安装 libfuse2 后,再次运行以下命令: bash chmod +x cursor-0.42.4x86_64.AppImage第五步:运行 Cursor现在,您可以通过终端或直接双击文件来运行 Cursor: bash ./cursor-0.42.4x86_64.AppImage如何将 Cursor 添加到应用程序列表第一步:移动文件将文件移动到 /opt 目录: bash sudo mv cursor-0.42.4x86_64.AppImage /opt/cursor.appimage第二步:创建桌面入口创建桌面入口文件: bash sudo nano /usr/share/applications/cursor.desktop 在文件中粘贴以下内容: bash [Desktop Entry] Name=Cursor Exec=/opt/cursor.appimage Icon=/opt/cursor.png Type=Application Categories=Development; 保存并退出: bash ctl + x第三步:添加图标将 .png 图标文件放入 /opt 目录,并命名为 cursor.png。Cursor 正在运行并拥有自定义图标如果图标未显示,请注销并重新登录。👉 野卡 WildCard | 一分钟注册,轻松订阅海外线上服务 ## Publication Information - [wildcard注册](https://paragraph.com/@wildcard-4/): Publication homepage - [All Posts](https://paragraph.com/@wildcard-4/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@wildcard-4): Subscribe to updates