macports发现损坏的文件

时间:2014-01-08 22:32:11

标签: macports

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

--->  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”,看看它是否会显示损坏文件的位置,但它没有。

1 个答案:

答案 0 :(得分:0)

基于@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