迁移后,MacPorts不会重新安装任何内容。怎么修?

时间:2019-04-10 01:04:17

标签: macos macports macos-high-sierra

我需要在服务器上使用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.

因此,我在rsync_dir中编辑了macports.conf设置以匹配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并重新开始,还是有一个简单的修复程序?

1 个答案:

答案 0 :(得分:1)

我有同样的问题。我的conf文件没有自定义设置,但日期为2012。因此,我制作了旧文件的副本,并用在安装最新版本时安装的.default版本的副本替换了每个旧文件。完成此操作后,未签名的源错误将消失。显然,这些文件的旧版本具有过时的设置,键等。因此,除非您出于特定原因修改了conf文件,否则这是一个简单的解决方法。