port selfupdate: “macPorts sources: command execution failed”

后端 未结 11 1900
梦毁少年i
梦毁少年i 2021-01-30 19:29

I am trying to selfupdate my Macports, but I am getting the following message:

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizi         


        
11条回答
  •  星月不相逢
    2021-01-30 20:19

    There is no /opt/local/bin/macports. The executable you need is /opt/local/bin/port. (Port files are in /opt/local/var/..., which is correct.)

    Based on the command execution failed:

    • you might have forgotten to run as root.
    • port forks the following programs: rsync, tclsh, openssl, tar, chmod, chown. Are these executable and in the PATH? (Is /opt/local/bin in your PATH as well?)

    If that doesn't help, run port with -dt to get all sorts of debug info. That might help with finding the problem. Append the interesting parts to your question, maybe.

提交回复
热议问题