port selfupdate: “macPorts sources: command execution failed”

后端 未结 11 1876
梦毁少年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:09

    I too had the same error. It is because the network connection is rejected. If you are using University/Company WiFi or public connection, firewall would be refusing the connection.

    As you can see from the output of -dt "rsync: failed to connect to rsync.macports.org: Connection refused (61)"

    There are workarounds available which are provided on the macports site:

    1) Using svn.

    2) If svn fails too, you can try using Daily tarball.

    You can test the changes by running "sudo port -d sync"

    Note: If the https fails, you can replace it with http. But doing so is not recommended, as you will be fetching from insecure connection.

提交回复
热议问题