温馨提示×

Ubuntu如何运行AppImage

小樊
48
2026-07-17 03:34:49
栏目: 智能运维

Ubuntu 上运行 AppImage 非常简单,按下面步骤操作即可:


一、下载 AppImage 文件

例如:

example.AppImage

二、赋予执行权限(必须)

AppImage 默认没有执行权限,需要先赋予:

方法 1:命令行(推荐)

chmod +x example.AppImage

然后运行:

./example.AppImage

方法 2:图形界面

  1. 右键 AppImage 文件
  2. 选择 属性(Properties)
  3. 权限(Permissions) 中勾选
    允许作为程序执行(Allow executing file as program)
  4. 双击运行

三、常见运行方式

1️⃣ 直接运行

./example.AppImage

2️⃣ 带参数运行

./example.AppImage --help

3️⃣ 解压 AppImage(可选)

./example.AppImage --appimage-extract

会生成 squashfs-root 目录,可用于调试。


四、Ubuntu 22.04 / 24.04 常见问题

❌ 双击无反应

原因通常是 缺少 FUSE

解决方法:

sudo apt update
sudo apt install fuse libfuse2

如果是 Ubuntu 24.04(无 fuse):

sudo apt install libfuse2t64

五、集成到系统菜单(可选)

使用 AppImageLauncher(推荐)

sudo add-apt-repository ppa:appimagelauncher-team/stable
sudo apt update
sudo apt install appimagelauncher

安装后:

  • 第一次运行 AppImage 会提示 集成到系统
  • 自动生成菜单图标

六、无法运行的其他排查

1️⃣ 架构不匹配

uname -m
  • x86_64 → 需要 x86_64 AppImage
  • ARM 设备需要 ARM 版本

2️⃣ 依赖缺失

尝试:

./example.AppImage --appimage-extract

然后查看内部依赖。


七、总结(最简流程)

chmod +x xxx.AppImage
./xxx.AppImage

如果你愿意,可以告诉我:

  • ✅ Ubuntu 版本(20.04 / 22.04 / 24.04)
  • ✅ 具体 AppImage 名称

我可以给你 针对性的解决方案

0