gpt4 book ai didi

macports 发现损坏的文件

转载 作者:行者123 更新时间:2023-12-02 21:44:45 30 4
gpt4 key购买 nike

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

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

最佳答案

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

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

关于macports 发现损坏的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21008001/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com