在 Linux 上使用 Postman 崩溃/报错,常见原因和对应解决办法如下(按出现频率排序):
Postman 基于 Electron,依赖一些原生库。
典型报错:
error while loading shared librarieslibnss3 / libgtk / libasound 相关错误解决:
sudo apt update
sudo apt install -y \
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
libxdamage1 libxfixes3 libxrandr2 libgbm1 \
libpango-1.0-0 libcairo2 libasound2
Linux 下 Electron 容易因显卡驱动或 Wayland 崩溃。
解决:
postman --disable-gpu --no-sandbox
或创建快捷方式加参数:
./Postman/Postman --disable-gpu --no-sandbox
如果你用的是 Wayland(如 Ubuntu 22.04+ 默认)
解决:
export GDK_BACKEND=x11
postman
解压版 Postman 常因权限不足崩溃。
解决:
chmod -R 755 Postman
./Postman/Postman
表现:
解决(重置配置):
rm -rf ~/.config/Postman
rm -rf ~/.cache/Postman
⚠️ 会清空本地配置,不影响账号数据
Snap 版 Postman 在 Linux 上稳定性较差。
建议:
sudo snap remove postman
Postman 吃内存,低配机器易崩。
检查:
free -h
dmesg | grep -i oom
postman
postman --disable-gpu --no-sandbox
rm -rf ~/.config/Postman
你可以把 具体报错信息(终端输出 / 崩溃日志)发给我,我可以精确定位原因。
常见日志位置:
~/.config/Postman/logs/
我也可以帮你判断是 系统问题 / Postman Bug / 硬件问题。