正常进行sudo port selfupdate的时候,可能会遇到一直卡住的情况。
|
1 2 3 |
[~]$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync |
这一般就是服务器的问题。所以需要更换国内服务器进行加速,还好,清华源有。
打开/opt/local/etc/macports/macports.conf,修改:
|
1 2 3 4 5 6 7 8 |
# The rsync server for fetching MacPorts base during selfupdate. This # setting is NOT used when downloading ports trees; ports trees are # configured using the file referenced by sources_conf. See # https://trac.macports.org/wiki/Mirrors#MacPortsSource for a list of # available servers. # rsync_server rsync.macports.org # rsync_server ftp.leg.uct.ac.za rsync_server pek.cn.rsync.macports.org |
再打开/opt/local/etc/macports/sources.conf,修改:
|
1 2 3 4 5 6 7 |
# For proper functionality of various resources (port groups, mirror # sites, etc.), the primary MacPorts source must always be tagged # "[default]", even if switched from the default "rsync://" URL. # rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default] # rsync://ftp.leg.uct.ac.za/pub/packages/macports/release/ports/ [default] rsync://pek.cn.rsync.macports.org/macports/release/tarballs/ports.tar |
这时再更新:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
[~]$ sudo port -v sync Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default ---> Updating the ports tree Synchronizing local ports tree from rsync://pek.cn.rsync.macports.org/macports/release/tarballs/ports.tar +==================================================+ | Tsinghua University | | -= Open Source Mirror Site =- | +--------------------------------------------------+ | Welcome to Tsinghua Open Source Mirror Site. | | | | This mirror is also available on HTTP. | | HTTP [https://mirrors.tuna.tsinghua.edu.cn] | | RSYNC [rsync://mirrors.tuna.tsinghua.edu.cn] | | | | If you have any issues, please contact us | | via GitHub @ https://github.com/tuna/issues | | or IRC at #tuna on freenode | | or Fishroom at https://fishroom.tuna.moe/ | | | | Supported by | | Tsinghua Information Technology Center | | Maintained by | | Tsinghua University TUNA Association | | Service Provided by | | nanomirrors | | This storage server is sponsored by | | Megvii Technology Ltd. | | | | TUNA acknowledges the contribution from | | Megvii and Huawei to open source software and | | communities | | | +==================================================+ receiving file list ... done ./ ports.tar ports.tar.rmd160 sent 112 bytes received 101073238 bytes 949045.54 bytes/sec total size is 101030912 speedup is 1.00 +==================================================+ | Tsinghua University | | -= Open Source Mirror Site =- | +--------------------------------------------------+ | Welcome to Tsinghua Open Source Mirror Site. | | | | This mirror is also available on HTTP. | | HTTP [https://mirrors.tuna.tsinghua.edu.cn] | | RSYNC [rsync://mirrors.tuna.tsinghua.edu.cn] | | | | If you have any issues, please contact us | | via GitHub @ https://github.com/tuna/issues | | or IRC at #tuna on freenode | | or Fishroom at https://fishroom.tuna.moe/ | | | | Supported by | | Tsinghua Information Technology Center | | Maintained by | | Tsinghua University TUNA Association | | Service Provided by | | nanomirrors | | This storage server is sponsored by | | Megvii Technology Ltd. | | | | TUNA acknowledges the contribution from | | Megvii and Huawei to open source software and | | communities | | | +==================================================+ receiving file list ... done PortIndex sent 38 bytes received 2364061 bytes 1576066.00 bytes/sec total size is 18405923 speedup is 7.79 +==================================================+ | Tsinghua University | | -= Open Source Mirror Site =- | +--------------------------------------------------+ | Welcome to Tsinghua Open Source Mirror Site. | | | | This mirror is also available on HTTP. | | HTTP [https://mirrors.tuna.tsinghua.edu.cn] | | RSYNC [rsync://mirrors.tuna.tsinghua.edu.cn] | | | | If you have any issues, please contact us | | via GitHub @ https://github.com/tuna/issues | | or IRC at #tuna on freenode | | or Fishroom at https://fishroom.tuna.moe/ | | | | Supported by | | Tsinghua Information Technology Center | | Maintained by | | Tsinghua University TUNA Association | | Service Provided by | | nanomirrors | | This storage server is sponsored by | | Megvii Technology Ltd. | | | | TUNA acknowledges the contribution from | | Megvii and Huawei to open source software and | | communities | | | +==================================================+ receiving file list ... done PortIndex.rmd160 sent 38 bytes received 626 bytes 442.67 bytes/sec total size is 512 speedup is 0.77 |





最新评论
博主好,路过留言交流一下~我在做源头中转 Twinkle Model(利益相关):GPT 1折、国模 1折(GLM/DeepSeek/Kimi)、满血 Claude,低价稳定。价格全在模型广场 https://big-model.smart-agi.com/model-plaza ,有兴趣可以看看。
博主分享的 Surge 增强模式接管应用分流思路很赞!确实,系统大版本升级后,老牌 Proxifier 由于底层驱动兼容性问题经常莫名崩溃。在 Mac 上有 Surge 这种神器接管,但是在 Windows 平台上,很多人又很难找到兼顾‘轻量分流+稳定不崩溃’的工具:ProxiFyre 依赖 WireSock 内核驱动容易蓝屏且纯命令行,开 TUN 虚拟网卡又会把开发网段和公司 VPN 改乱。 如果是 Windows 用户寻找 Proxifier 替代品,非常推荐关注 Ghost Proxifier Pro: - 纯用户态 Winsock API Hook:完全免安装内核驱动和虚拟网卡,零蓝屏隐患,不改动系统默认网关与路由表; - 智能递归子进程树:很多现代客户端(如播放器、流媒体套件、IDE)会派生子进程,它能自动递归识别并接管流量,杜绝漏代理; - 现代 Fluent 图形界面:直接拖入目标 exe 即可一键绑定 SOCKS5/HTTP 节点,比老版配置规则直观很多。 注:该工具为非开源的独立客户端软件。 - 官网主页:https://ghostproxifier.com - 项目发布:https://github.com/liliBestCoder/ghost-proxifier-pro
曾经最爱之一,还有emlog,zblog
感谢分享经验,谢谢站长!!已收藏
牛牛牛
同样
站长您好,亚马逊云咨询推广资源,望建立联系,可邮件,谢谢。
换友情链接吗?