gpt4 book ai didi

macports - 端口自更新: "macPorts sources: command execution failed"

转载 作者:行者123 更新时间:2023-12-03 05:23:14 25 4
gpt4 key购买 nike

我正在尝试 self 更新我的 Macport,但收到以下消息:

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing 
MacPorts sources: command execution failed

我检查了我的 /opt/local/bin/macports 并且该目录不存在。相反,它位于 /opt/local/var 中。这可能是问题所在吗?

使用-dt运行,我得到以下结果:

[Users/user] > selfupdate
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
---> Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: Connection refused (61)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/base/ /opt/local/var/macports/sources/rsync.macports.org/release/base
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

什么是错误 61?有什么想法可以解决这个问题吗?

最佳答案

我最近也遇到了同样的问题,我忘了在 root 下运行命令。如果其他人遇到问题,请务必按如下方式运行命令:

sudo port selfupdate

关于macports - 端口自更新: "macPorts sources: command execution failed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11446923/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com