Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macports的自我更新,通过Macports安装软件包_Macports - Fatal编程技术网

Macports的自我更新,通过Macports安装软件包

Macports的自我更新,通过Macports安装软件包,macports,Macports,`Macports selfupdate在安装了Xcode(6.2)和命令行工具的Mac OS 10.9.5上失败。我尝试了两个版本的Macports,即2.3.0和2.3.3。 $port-v MacPorts 2.3.0 1. Error is rsync fails to connect to sources on macports.org. I have the firewall turned off on the mac machine though. I was looking fo

`Macports selfupdate在安装了Xcode(6.2)和命令行工具的Mac OS 10.9.5上失败。我尝试了两个版本的Macports,即2.3.0和2.3.3。 $port-v MacPorts 2.3.0

1. Error is rsync fails to connect to sources on macports.org. I have the firewall turned off on the mac machine though. I was looking for https://rsync.macports.org/release/tarballs/base.tar  on browser, the path does not exist. It may the sources are not available for rsync to sync them to local system. please advise on how to perform port selfupdate.

$ sudo /usr/bin/port -v selfupdate
--->  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/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
Error: Error synchronizing MacPorts sources: command execution failed
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /usr/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

2. packages are not found using port command
$ sudo port -v install samba3
Error: Port samba3 not found

Thanks in advance.`

RSYNC不是HTTP,使用HTTP打开URL不会得到相同的结果,因为RSYNC.macports.org上的HTTP服务器不提供您请求的文件

您的问题是常见问题解答,请访问:

如果端口自更新不起作用或rsync服务器拒绝连接,我该怎么办?

首先尝试
sudo port-d selfupdate
以显示所有错误。如果与rsync服务器的连接失败,您可能会被防火墙或其他网络控制软件阻止

一些防火墙,如PeerGuardian,会阻止与某些公司IP地址的连接,以防止软件“打电话回家”并侵犯您的隐私。我们的主rsync服务器由Apple Inc.托管。自我更新需要rsync连接才能下载文件,但这将被阻止。为了解决这个问题,您需要临时禁用或白名单rsync.macports.org。另一种选择是使用非苹果托管的服务器

黑名单条目是苹果公司的所有子网,即17.0.0.0/8。禁用此选项或为rsync.macports.org创建白名单例外。PeerGuardian将过滤您的网络连接,即使它不是作为应用程序运行的。通过在终端中键入以下命令,可以在运行selfupdate命令之前禁用PeerGuardian,但在执行此操作之前,请确保停止与PeerGuardian关联的所有进程

sudo-kextunload-b xxx.qnation.PeerGuardian

如果运行LittleSnitch,请为rsync(
/usr/bin/rsync
)创建一个规则,该规则允许连接到服务器主机名
rsync.macports.org
、端口873(rsync)、协议6(TCP)。确保该规则已启用

如果不可能通过防火墙,您可以使用其他方法,这些方法更为手动: