# 如何在 Linux 上安装 Cursor AI 编辑器（2025 年更新）

By [wildcard注册](https://paragraph.com/@wildcard-4) · 2025-03-03

---

Cursor 是一款以 AI 为核心的代码编辑器，支持 Windows、Mac 和 Linux 平台。它旨在通过 AI 辅助编程，帮助开发者更高效地编写代码。虽然我在 Mac 上安装 Cursor 非常顺利，但在 Ubuntu Linux 上却遇到了一些困难。经过一番研究，我成功解决了问题。以下是详细的安装步骤。

第一步：下载 Cursor
-------------

访问 [Cursor 官网](https://cursor.so/) 并点击 **“下载”** 按钮。

![Cursor AI 编辑器](https://storage.googleapis.com/papyrus_images/363db5739bdb1b259db116af6bdbbdb6999877ac0ebe377ecb29dac3aab87012.webp)

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](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 正在运行并拥有自定义图标](https://storage.googleapis.com/papyrus_images/7e0f184b18ad4f30e867a9e76276be0913639c1f10f04005c10372138a0b17f5.webp)

Cursor 正在运行并拥有自定义图标

> 如果图标未显示，请注销并重新登录。

👉 [野卡 WildCard | 一分钟注册，轻松订阅海外线上服务](https://bit.ly/yekapay)

---

*Originally published on [wildcard注册](https://paragraph.com/@wildcard-4/linux-cursor-ai-2025)*
