【发布时间】:2019-04-10 01:04:17
【问题描述】:
我需要在我们的服务器上使用ports 安装一个新包。
服务器升级到 macOS 10.13.6,但 MacPorts 仍然落后两个操作系统。
所以,我跟着 MacPorts migration instructions 信了。
唯一不寻常的事情是当我运行port -qv installed > myports.txt 命令来捕获我安装的包时,它转储了这些警告:
Warning: MacPorts is configured to use an unsigned source for the ports tree. Please edit sources.conf and change 'rsync://rsync.macports.org/release/ports/' to 'rsync://rsync.macports.org/release/tarballs/ports.tar'.
Warning: MacPorts is configured to use an unsigned source for selfupdate. Please edit macports.conf and change the rsync_dir setting to match macports.conf.default.
所以,我编辑了macports.conf 中的rsync_dir 设置以匹配macports.conf.default 中的行:
#rsync_dir macports/release/tarballs/base.tar
(注意:我已经尝试过使用# 和不使用#)
我编辑了sources.conf 文件,所以它是这样的
rsync://rsync.macports.org/release/tarballs/ports.tar [default]
然而
当我进入迁移的最后一步时——使用 sudo ./restore_ports.tcl myports.txt 重新安装我以前安装的所有软件包——我得到了这个:
Warning: Skipping apache2 (not in the ports tree)
Warning: Skipping apr (not in the ports tree)
Warning: Skipping apr-util (not in the ports tree)
Warning: Skipping awstats (not in the ports tree)
Warning: Skipping bzip2 (not in the ports tree)
Warning: Skipping curl (not in the ports tree)
Warning: Skipping curl-ca-bundle (not in the ports tree)
Warning: Skipping db46 (not in the ports tree)
Warning: Skipping db48 (not in the ports tree)
Warning: Skipping db_select (not in the ports tree)
Warning: Skipping expat (not in the ports tree)
Warning: Skipping fetchmail (not in the ports tree)
Warning: Skipping fontconfig (not in the ports tree)
Warning: Skipping freetype (not in the ports tree)
... about a 50 more
所以显然什么都没有会重新安装。
我应该完全卸载 MacPorts 并重新开始,还是有一个简单的修复方法?
【问题讨论】:
-
您是否尝试过将
macports.conf.default复制到您的macports.conf上?也就是说,消除所有自定义。 -
没有变化。我将
macports.conf替换为macports.conf.default,将sources.conf替换为sources.conf.default,得到相同的结果。 -
另外请注意,我尝试手动安装一些端口,但我得到了同样的错误:
sudo port install apache2results inError: Port apache2 not found -
我知道您说过您按照信中的说明进行操作,所以:您执行了第 3 步并为 10.13 安装了适当的 MacPorts 包?您确定您正在运行新安装的版本吗? IE。
which port说什么? -
我下载并运行了在Quick Start 页面上找到的MacPorts installer package for 10.13。
which port举报/opt/local/bin/port
标签: macos macports macos-high-sierra