我正在尝试对Macports进行selfupdate
,但是却收到以下消息:
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/