安装后缺少 cygwin 软件包二进制文件

安装后缺少 cygwin 软件包二进制文件

我已经使用 cygwin 和它的包管理器好几个月了,没有出现任何问题。

今天我尝试安装“curl”+“jq”(Bin),虽然它没有抛出错误并显示为“已安装”,但二进制文件却丢失了。

验证包是否已列为已安装: curl 安装

将视图更改为“选择”: curl 和 jq 选择了

日志输出:

$ /cygdrive/c/Users/MYUSER/Downloads/setup-x86_64.exe -BM
Starting cygwin install, version 2.893
User has NO backup/restore rights
Current Directory: C:\Users\MYUSER\Desktop
Could not open Service control manager
root: C:\cygwin64 user
Selected local directory: C:\Users\MYUSER\Desktop
net: Proxy
site: ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/
solving: 0 tasks, update: yes, use test packages: no
Augmented Transaction List: is empty
solving: 0 tasks, update: no, use test packages: no
Augmented Transaction List: is empty
Augmented Transaction List: is empty
running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_man-db.sh"
Ending cygwin install

我尝试使用以下方法进行 rebaseall:

$ /usr/bin/rebase-trigger full

二进制文件已下载但无法复制到其目标位置。我仔细检查了“从互联网安装”是否已选中。

重新安装软件包:

<snip>
solving: 0 tasks, update: no, use test packages: no
Augmented Transaction List: is empty
Augmented Transaction List: is empty
solving: 2 tasks, update: no, use test packages: no
Augmented Transaction List: is empty
Augmented Transaction List:
   0   erase                                            curl            7.59.0-1
   1 install                                            curl            7.59.0-1
   2   erase                                              jq               1.5-3
   3 install                                              jq               1.5-3
Uninstalling curl
Uninstalling jq
Extracting from file://C:\Users\MYUSER\Desktop/ftp%3a%2f%2fftp.fau.de%2fcygwin%2f/x86_64/release/curl/curl-7.59.0-1.tar.xz
Extracting from file://C:\Users\MYUSER\Desktop/ftp%3a%2f%2fftp.fau.de%2fcygwin%2f/x86_64/release/jq/jq-1.5-3.tar.xz
running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_man-db.sh"
note: Installation Complete
Ending cygwin install

PATH 中仍然没有 curl 或 jq。也许有人有办法解决这个问题。

答案1

已修复!安装路径是自定义的(在我的用户目录中),cygwin setup.exe 默认使用 C:\cygwin64(?)并在那里安装二进制文件。更改 cygwin 的根目录解决了这个问题。

相关内容