我已尝试以下步骤,但它对我不起作用:
(1) wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
(2) sudo tar -xzf postman.tar.gz -C/opt
(3) rm postman.tar.gz
(4) sudo ln -s/opt/Postman/Postman/usr/bin/postman
引用: How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit? 。 当我尝试步骤 4 时,遇到以下错误: “ln:无法创建符号链接(symbolic link)'/usr/bin/postman':文件存在”
然后我搜索了更多信息,然后尝试了这个命令:
sudo unlink/usr/bin/utserver
输出这些错误“unlink:无法取消链接'/usr/bin/utserver':没有这样的文件或目录”。
我再次尝试了另一个命令sudo rm/usr/bin/utserver
然后输出这些错误“rm:无法删除'/usr/bin/utserver':没有这样的文件或目录”
。
感谢您的帮助。
最佳答案
错误只是说您尝试创建的符号链接(symbolic link)已经存在......所以只需将其删除
ls -la /usr/bin/postman # issue this to confirm it exists
sudo rm /usr/bin/postman # remove it if it exists
现在只需再次运行您的 (4) 命令
sudo ln -s /opt/Postman/Postman /usr/bin/postman
通过发出确认安装有效
which postman # if installed it will say : /usr/bin/postman
关于ubuntu - 如何在 Ubuntu 上安装 Postman Native?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48687296/