MAC macport上安装软件的流水账1 [特殊字符]

发布时间:2026/10/15 1:30:20
MAC macport上安装软件的流水账1 [特殊字符] 流水账自从用了mac 安装软件成了难题不是homebrew就是 macport 关键是这俩的源都要修正成国内源国内源又不是什么包 都有每次换来换去 着实不好用。喏又来个wget安装前的问题port更新出错。mac 上通过docker compose up -d安装milvus。 先下载wget 、更新macport 报错错误日志(base) ➜ milvus-standalone sudo port -v selfupdat Password: Warning: port definitions are more than two weeks old, consider updating them by running port selfupdate. --- Checking for newer releases of MacPorts % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 63 100 63 0 0 273 0 --:--:-- --:--:-- --:--:-- 273 MacPorts base version 2.12.5 installed, MacPorts base version 2.12.5 available. --- MacPorts base is already the latest version --- Updating the ports tree Synchronizing local ports tree from rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ | 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 | | bravo | | This storage server is sponsored by | | Huawei Inc. | | | | TUNA acknowledges the contribution from Huawei | | to open source software and communities | | | receiving file list ... rsync: [sender] change_dir /release/ports (in macports) failed: No such file or directory (2) done sent 21 bytes received 9 bytes 60.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(1404) [receiver2.6.9] Command failed: /usr/bin/rsync -rtzvl --delete-after --exclude/PortIndex* rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ /opt/local/var/macports/sources/mirrors.tuna.tsinghua.edu.cn/macports/release Exit code: 23 Error: Synchronization of the local ports tree failed doing rsync Error: Couldnt sync the ports tree: Synchronization of 1 source failed Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: /opt/local/bin/port: port selfupdate failed: Couldnt sync the ports tree: Synchronization of 1 source failed (base) ➜ milvus-standalone解析根据你提供的报错信息问题出在 MacPorts 的清华源同步配置上。 问题原因 你的 MacPorts 配置尝试从 rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ 同步 ports tree但该路径在服务器上不存在导致 rsync 报错 change_dir ... failed: No such file or directory (2)。 解决方案 你需要将 MacPorts 的源配置文件 sources.conf 中的 rsync 地址修改为正确的路径。 打开配置文件 在终端中执行以下命令使用文本编辑器打开 sources.conf 文件 sudo nano /opt/local/etc/macports/sources.conf 修改 rsync 地址 在文件中找到以 rsync:// 开头的行它可能看起来像这样 rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ [default] 请将其修改为以下正确的地址 rsync://mirrors.tuna.tsinghua.edu.cn/macports/macports-ports/ [default] 注意 主要是将路径中的 release/ports/ 修改为 macports-ports/。 保存并退出 如果你使用的是 nano 编辑器按 Control O 保存然后按 Enter 确认。 接着按 Control X 退出编辑器。 再次尝试更新 修改完成后再次运行更新命令 sudo port -v selfupdate 这次应该可以成功同步 ports tree 了。 当前文件过长, 我已阅读部分内容

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询