port selfupdate: “macPorts sources: command execution failed”

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

    I was behind a firewall. Tried on a different network and it worked.

    0 讨论(0)
  • 2021-01-30 20:26

    I faced the same issue. The main problem was my network. Because the NETWORK Port was blocked for;

    rsync://rsync.macports.org/release/tarballs/ports.tar

    Try to use use another network.

    0 讨论(0)
  • 2021-01-30 20:27

    Update for Mavericks: to ensure the XCode command line tools are installed, open a terminal and run xcode-select –-install, then follow the instructions in the resulting pop-up window:

    • accept license

    Of course, this is in addition to the other tips such as making sure to run sudo port selfupdate.

    0 讨论(0)
  • 2021-01-30 20:27

    If anybody else is having this issue and they've recently updated XCode, the root of my problem was that Command Line Tools had been omitted from the latest build.

    Opening XCode and installing Command Line Tools via the XCode preference panel fixed this error being thrown by MacPorts.

    0 讨论(0)
  • 2021-01-30 20:29

    for someone who's problem still exists, maybe you've forgot agree the Xcode license:

    # sudo xcodebuild license
    

    remember to look through and type 'agree' in the end.

    0 讨论(0)
提交回复
热议问题