我正在尝试使用 dpkg 安装 verneMQ MQTT 代理。当我尝试以下命令时,我收到此错误:
命令 :sudo dpkg -i vernemq_<%= latest_version() %>-1_amd64.deb
错误 :
dpkg: warning: '/opt/local/bin/gnutar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
如果我这样做echo $PATH
,我会得到所有这些路径信息:
/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/username/Library/Android/sdk:/Users/username/Library/Android/sdk/platform-tools:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home:/opt/local/bin/gnutar
请建议我该如何解决这个错误