MacPorts 找不到端口

MacPorts 找不到端口

问题

MacPorts 找不到任何端口。示例:

sudo port install wget
Error: Port wget not found


类似问题

在这篇文章中,尝试通过 MacPorts 安装 coreutils:“错误:未找到端口 coreutils”sync,@Different55 建议进行和的诊断selfupdate,正如@mm49307 在此帖子中所做的那样:未找到 Macports 端口

同步

sudo port -v sync
Password:
--->  Updating the ports tree
Synchronizing local ports tree from 
rsync://rsync.macports.org/macports/release/tarballs/ports.tar
rsync: failed to connect to rsync.macports.org: No route to host (65)
rsync error: error in socket IO (code 10) at 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-
51/rsync/clientserver.c(106) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzvl --delete-after --
include=/ports.tar --include=/ports.tar.rmd160 --exclude=* 
rsync://rsync.macports.org/macports/release/tarballs/  /opt/local/var
/macports/sources/rsync.macports.org/macports/release/tarba
lls
Exit code: 10
Error: Synchronization of the local ports tree failed doing rsync
port sync failed: Synchronization of 1 source failed

自我更新

sudo port -v selfupdate
Password:
--->  Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: No route to host (65)
rsync error: error in socket IO (code 10) at 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-
51/rsync/clientserver.c(106) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzvl --delete-after 
rsync://rsync.macports.org/macports/release/tarballs/base.tar 
 /opt/local/var/macports/sources/rsync.macports.org/macports/
release/tarballs
Exit code: 10


环境

MacPorts 版本

port -v
MacPorts 2.4.1

操作系统版本

system_profiler SPSoftwareDataType

Software:

System Software Overview:

  System Version: macOS 10.12.5 (16F73)
  Kernel Version: Darwin 16.6.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: *****************
  User Name: ******* (*******)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 7 days 23:42

代理变量

echo $https_proxy 
http://proxyout.***.***:8080
echo $http_proxy 
http://proxyout.***.***:8080

代理设置

设置


问题

如何让 MacPorts 工作?

相关内容