windows - "An error occurred while trying to copy a file: The source file is corrupted."
问题描述
How can I solve this error during installation of git-bash on Windows?
I have downloaded git-bash and I want to install it but when it show me that error like the picture down below:
An error occurred while trying to copy a file:
The source file is corrupted.
解决方案
如果在完全重新启动后,相同的安装过程仍然失败,您可以选择:
- 以可移植形式解压缩最新版本:
PortableGit-2.27.0-64-bit.7z.exe
- 将其文件夹添加到您的 %PATH%
我一般会补充:
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
推荐阅读
- azure - 如何获取 Azure 资源组中存在的磁盘快照列表的 VM 名称
- vue.js - 在 Vuetify 数据表中添加类?
- message - 如何在消息队列集成模式中构建数据完整性检查?
- unity3d - 如何为标签、图层游戏对象部分编写自定义检查器?
- python - Flask 中的本地客户端时间
- javascript - 让节点服务器监听连接是否危险?
- chef-infra - 神秘:厨师客户/刀:他们忽略了knife.rb和client.rb中的任何错误
- swift - 如何在 SwiftUI 中定位崩溃 EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
- python - 根据许多条件创建列
- python - 如何根据音频进行直方图均衡?