【问题标题】:macports Found broken file(s)macports 发现损坏的文件
【发布时间】:2014-01-08 22:32:11
【问题描述】:

每次安装新包时,我都会看到以下错误消息:

--->  Found 1 broken file(s), matching files to ports
Warning: No port py24-scipy found in the index; can't rebuild
--->  Broken files found, but all associated ports are not in the index and so cannot be rebuilt.

在我做了“端口升级过时”后它进入了这种状态。

我很确定我没有使用 py24-scipy(我使用 py27),所以我只想找到触发警告的文件并将其删除。

我尝试运行“port install XXX -d”,看看它是否会告诉我损坏的文件在哪里,但它没有。

【问题讨论】:

  • 我会尝试“port installed py24-scipy”来查看它是否已安装,如果是,请执行“port uninstall py24-scipy”。就像你说的,它可能不再使用了。

标签: macports


【解决方案1】:

根据@Vortexfive 的评论(谢谢),这解决了问题:

SCML-JRichardson:pdf2html5 jric$ port installed py24-scipy
The following ports are currently installed:
  py24-scipy @0.11.0_0+gcc45 (active)

这很奇怪:

SCML-JRichardson:pdf2html5 jric$ port installed all | grep scipy
py-scipy @0.11.0_0
py-scipy @0.13.2_0 (active)
py27-scipy @0.11.0_0+gcc45
py27-scipy @0.13.2_0+gcc45 (active)

不管怎样,

Password:
--->  Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
--->    py-scipy @0.11.0_0
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first.
Please see the log file for port py24-scipy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24- scipy_0.11.0_0+gcc45/py24-scipy/main.log
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45
--->  Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
--->    py-scipy @0.11.0_0
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first.

尝试停用 py-scipy,这样它就不会阻止 py24-scip 删除

SCML-JRichardson:pdf2html5 jric$ sudo port deactivate py-scipy
--->  Deactivating py-scipy @0.13.2_0
--->  Cleaning py-scipy

卸载 py24-scipy - bt 不起作用,因为 py-scipy 仍然存在

SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy
--->  Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
--->    py-scipy @0.11.0_0
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first.
Please see the log file for port py24-scipy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24-scipy_0.11.0_0+gcc45/py24-scipy/main.log
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45
--->  Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
--->    py-scipy @0.11.0_0
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first.

现在尝试同时删除 py24-scipy py-scipy@0.11.0_0

SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy py-scipy@0.11.0_0
--->  Uninstalling py-scipy @0.11.0_0
--->  Cleaning py-scipy
--->  Deactivating py24-scipy @0.11.0_0+gcc45
--->  Cleaning py24-scipy
--->  Uninstalling py24-scipy @0.11.0_0+gcc45
--->  Cleaning py24-scipy
SCML-JRichardson:pdf2html5 jric$ sudo port activate py-scipy
--->  Computing dependencies for py-scipy
--->  Activating py-scipy @0.13.2_0
--->  Cleaning py-scipy

【讨论】:

  • 请注意,您可能在某个阶段错误地安装了 py-scipy,而不是使用版本化版本。我认为该错误是由从 macports 中删除过时的 py24-scipy 引起的
猜你喜欢
  • 2010-09-25
  • 1970-01-01
  • 2011-07-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-03-31
  • 2019-04-17
  • 2015-04-23
相关资源
最近更新 更多