【问题标题】:MacPorts reinstalls nothing following migration; how to fix?MacPorts 在迁移后不会重新安装;怎么修?
【发布时间】: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 apache2 results in Error: Port apache2 not found
  • 我知道您说过您按照信中的说明进行操作,所以:您执行了第 3 步并为 10.13 安装了适当的 MacPorts 包?您确定您正在运行新安装的版本吗? IE。 which port 说什么?
  • 我下载并运行了在Quick Start 页面上找到的MacPorts installer package for 10.13which port 举报/opt/local/bin/port

标签: macos macports macos-high-sierra


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-01
    • 2022-11-05
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    相关资源
    最近更新 更多