macOS M1Pro 安装 chntpw 工具

chntpw介绍

chntpw 工具是用来修改位于 boot.wim 文件第一个索引(或分区)中的注册表。

在macOS中安装 Windows虚拟机的时候一般会用到

我们采用Homebrew来安装chntpw,需要确保电脑上已经安装好Homebrew

因为Homebrew无法在核心仓库中找到 chntpw,所以无法直接通过brew install chntpw安装,需要使用tap(第三方仓库)或自定义的 Homebrew 来安装

采用sidneys/homebrew/chntpw安装

UUP推荐的安装方法,在UUP网站中可以找到各个通道的Windows系统版本。

复制代码
brew tap sidneys/homebrew
brew install sidneys/homebrew/chntpw

安装无报错就成功了。不过我在安装中遇到了问题,提示报错:

复制代码
==> make test
Last 15 lines from /Users/jakema/Library/Logs/Homebrew/[email protected]/03.make:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8752670124:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8752670124:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8752670124:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2

这种情况下,该tap无法正常使用,需要换一下tap,在该issue中有热心网友提供了替代办法

js 复制代码
brew tap minacle/chntpw  
brew install minacle/chntpw/chntpw

实测可用

相关推荐
qq_368019661 小时前
Mac下Ollama安装与设置:开启本地大模型之旅
macos
mingyuewu6 小时前
MAC安装docker 后提示com.docker.vmnetd”将对您的电脑造成伤害
macos·docker·容器
前端 贾公子8 小时前
Mac 设置静态IP的方法 和 Mac 设置静态IP后 无法联网
tcp/ip·macos·智能路由器
djs0071711 小时前
mac环境 若依node版本兼容设置
macos
1024小神11 小时前
theos工具来编译xcode的swiftUI项目为ipa文件
macos·swiftui·xcode
喾颛顼12 小时前
Mac下小智AI本地环境部署
人工智能·经验分享·macos
watersink21 小时前
基于大模型的pc版语音对话问答
ide·macos·xcode
Alger_Hamlet21 小时前
OmniGraffle Pro for Mac思维导图
macos
Alger_Hamlet21 小时前
Ae After Effects2024 for Mac 视频处理
macos
Python之栈21 小时前
Python 3.13 正式支持 iOS:移动开发的新篇章
python·macos·objective-c·cocoa