port selfupdate: “macPorts sources: command execution failed”

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

    I faced the same issue.But I used to this method in the after.

    Go to: $prefix/etc/macports/sources.conf (my path is like this):

    /opt/local/etc/macports/sources.conf 
    

    comment out the rsync entry, and add a new entry as follows:

    #rsync://rsync.macports.org/release/tarballs/ports.tar [default]
    https://distfiles.macports.org/ports.tar.gz [default]
    

    After that you can run:

    sudo port -d sync
    

    It's also explained on MacPorts.com.

提交回复
热议问题