Mac fink 错误 - apt-get 无法运行

问题描述

尝试运行 sudo apt-get dist-upgradefink 更新失败,它似乎对我的 Mac 造成了副作用

Preparing to replace fink 0.41.0-101 (using .../fink_0.43.1-101_darwin-x86%5f64.deb) ...
Unpacking replacement fink ...
Setting up fink (0.43.1-101) ...
Checking system... i386-apple-darwin18.7.0
Use of uninitialized value $gcc in regexp compilation at /sw/lib/perl5/fink/Services.pm line 1344.
Use of uninitialized value $gcc in concatenation (.) or string at /sw/lib/perl5/fink/Bootstrap.pm line 164.
This system was not released at the time this fink release was made. 
Prerelease versions of Mac OS X might work with fink,but there are no
guarantees.
Adding local/injected to the Trees line in fink.conf...
Use of uninitialized value $distroot in string eq at /sw/lib/fink/postinstall.pl line 164.
Use of uninitialized value $distroot in concatenation (.) or string at /sw/lib/fink/postinstall.pl line 196.
ln -s  /sw/fink/10.14
Use of uninitialized value $distroot in concatenation (.) or string at /sw/lib/fink/postinstall.pl line 203.
ln -s 10.14 /sw/fink/dists
Use of uninitialized value $selfupdatetree in concatenation (.) or string at /sw/lib/fink/postinstall.pl line 236.
/bin/mkdir -p /sw/fink/dists/local/injected/finkinfo/update-packages
mkdir: /sw/fink/dists/local/injected/finkinfo/update-packages: Not a directory
### execution of /bin/mkdir Failed,exit code 1
ERROR: Couldn't create directory /sw/fink/dists/local/injected/finkinfo/update-packages
/sw/bin/dpkg: error processing fink (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 fink
E: Sub-process /sw/bin/dpkg returned an error code (1)

现在即使我运行 sudo apt-get update 我也会收到 File not found 错误

Err file: local/main Packages
  File not found
Ign file: local/main Release
Err file: stable/main Packages
  File not found
Ign file: stable/main Release
Err file: local/injected Packages
  File not found
Ign file: local/injected Release
Failed to fetch file:/sw/fink/dists/local/main/binary-darwin-x86_64/Packages  File not found
Failed to fetch file:/sw/fink/dists/stable/main/binary-darwin-x86_64/Packages  File not found
Failed to fetch file:/sw/fink/dists/local/injected/binary-darwin-x86_64/Packages  File not found

背景:我尝试使用 node 安装 nvm,这需要 xz,而我的 Mac (10.14.6) 上没有。 apt-get 也找不到。运行 sudo apt-get update 也没有帮助。我运行了 sudo apt-get dist-upgrade(这不是一个好主意,也不是一个明智的决定)导致了上述 fink 错误

问题:要摆脱这种情况,是否可以返回到以前版本的 fink?我还找不到办法做到这一点。当我运行 fink install fink 0.41.0-101 时,我得到:

Scanning package description files
not a reference at /sw/lib/perl5/fink/Services.pm line 1883.

更新:我尝试删除 fink 并按照 here 所述进行全新安装,但出现类似错误

Checking package... looks good (fink-0.41.0).
Checking system... i386-apple-darwin18.7.0
Use of uninitialized value $gcc in regexp compilation at /Users/Anupam/Downloads/fink-0.41.0/perlmod/fink/Services.pm line 1365.
Use of uninitialized value $gcc in concatenation (.) or string at /Users/Anupam/Downloads/fink-0.41.0/perlmod/fink/Bootstrap.pm line 164.
This system was not released at the time this fink release was made.  Prerelease versions of Mac OS X might work with fink,but there are no guarantees.

..

Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/Anupam/Downloads/fink-0.41.0/bootstrap line 635,<STDIN> line 1.

...

ERROR: Can't create symlink /sw/fink/10.14

我感觉卡住了

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...