3

I'm unable since today to start the Postman application that I installed using snap.
I've been running it since years now and it won't start anymore.
I tried starting it from the terminal and it gives me this error +a large stack trace with references to ERR: Display.cpp:1083 ...

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /snap/postman/362/usr/share/postman/resources/app/node_modules/native_modules/build/Release/pty.node)
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
    at Module._extensions..node (node:internal/modules/cjs/loader:1602:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2559)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:16955)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at ./node_modules/node-pty/build/Release/pty.node (/snap/postman/362/usr/share/postman/resources/app/main.js:12:124700)
    at __webpack_require__ (/snap/postman/362/usr/share/postman/resources/app/main.js:751:653121)

I've already run sudo apt update and sudo apt upgrade as well as sudo apt install libc6, but it says it's the latest version. It's running on Ubuntu 22.04.5 LTS.

1
  • 1
    As this is a snap, using apt commands will not resolve the issue. This answer from a few years ago will show you how to revert to (and hold) a previous version of the Postman snap. Commented Dec 1 at 10:03

3 Answers 3

6

This error is caused by the Snap version of Postman, not by your system’s GLIBC. The reason is that the Postman Snap package is bundled with its own older runtime, and it still expects GLIBC_2.28, so upgrading the system does not fix it.

Here is what you can do.

Uninstall Postman

sudo snap remove postman

Download and install Postman

wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzvf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman

Hope this will fix your blocker.

1
  • Thanks, removing the snap app and installing postman from the downloads package fixed it for me. Commented Dec 1 at 10:22
1

The top comment works. I'll add here the missing stuff if you really want to ditch the snap package for the future.

You need a .desktop file, so at /home/your_username/.local/share/applications/postman.desktop add this:

[Desktop Entry]
Name=Postman
Comment=API Development Environment
Exec=/usr/bin/postman
Icon=/path/to/your/postman-icon.png
Terminal=false
Type=Application
Categories=Development;Utility;

Download the icon from: https://www.svgrepo.com/svg/354202/postman-icon

Then to automate the update process create and run this .sh file (don't forget chmod +x your-update-file.sh):

#!/bin/bash
wget https://dl.pstmn.io/download/latest/linux64 -O /tmp/postman.tar.gz
sudo rm -rf /opt/Postman
sudo tar -xzvf /tmp/postman.tar.gz -C /opt
sudo ln -sf /opt/Postman/Postman /usr/bin/postman
sudo rm /tmp/postman.tar.gz
echo "Postman updated successfully."
1
  • Thanks I added the automated update script to my bin/scripts. :) Commented Dec 3 at 10:00
0

Just logout if its already logged in check in top right corner and then logout then open it again it will work fine

New contributor
Mukul Kirti Verma is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.