如果我进入echo %AppData%
一个CMD
窗口,我会得到C:\Users\User.Name\AppData\Roaming
. 如果我进入echo $AppData
Cygwin Bash shell,我什么也得不到。但是,CMD 中的大多数环境变量确实会被 Cygwin Bash shell 继承。我该如何确保所有环境变量从CMD
Cygwin Bash shell 传播?
我的 Windows 10 系统上安装了 Cygwin。我时不时地运行 Cygwin 安装程序以根据需要添加包(主要是脚本解释器)。一段时间以来,我在尝试安装新软件包时遇到了问题。具体来说,我运行setup-x86_64.exe
,浏览前几个对话框并选择下载站点,通常是mirrors.kernel.org
(http:
和https:
版本,我也尝试过其他站点)。然后,连接过程开始,我得到以下弹出窗口:
这重复了大约四次,并以:
我的机器连接到站点没有真正的问题,因为我可以成功地 ping 它。此外,如上所述,这也发生在其他网站上。
为什么会发生这种情况,我该如何解决这个问题,最好是没有 Cygwin 的完整卸载-安装周期?
忽略时间戳,如何删除以下非聊天重复项?聊天有 2 种格式
- 以尖括号包围的昵称开头,并且
- 以昵称开头,后跟“告诉您:”。
如果它是在 Notepad++ 中完成的,我更喜欢,但由于 Cygwin,我还可以访问多个实用程序。
原来的
[16:29] You see a sheep; it looks like it weighs about 98.
[16:30] You see a sheep; it looks like it weighs about 100.
[16:52] anonymized tells you: Do you know the bank yet?
[17:11] Only anonymized may access the corpse for now.
[17:12] Only anonymized may access the corpse for now.
[17:14] <anonymized> You can do it later.
[17:14] <anonymized> The dagger for example
[17:15] <anonymized> The dagger for example
[17:15] <dynv> hi
[17:32] gnome has been killed by anonymized and dynv
[17:32] The corpse is too far away.
[17:32] The corpse is too far away.
[17:33] anonymized: now is gets dangerous
期望的结果
[16:29] You see a sheep; it looks like it weighs about 98.
[16:30] You see a sheep; it looks like it weighs about 100.
[16:52] anonymized tells you: Do you know the bank yet?
[17:11] Only anonymized may access the corpse for now.
[17:14] <anonymized> You can do it later.
[17:14] <anonymized> The dagger for example
[17:15] <anonymized> The dagger for example
[17:15] <dynv> hi
[17:32] gnome has been killed by anonymized and dynv
[17:32] The corpse is too far away.
[17:33] anonymized: now is gets dangerous
非常感谢你
当我ssh
到 windows 框时,有时找不到路径上的程序,或者我得到ssh_exchange_identification: read: Connection reset by peer
了,通常是在发生超过 10 个同时连接时(Windows 框是构建服务器)。如果我强制超过 15 个同时连接,这会可靠地发生。该问题可靠地发生,与我连接的位置无关
这是我在强制多个同时连接时看到的内容:
$ for i in `seq 1 20`; do ssh -x bdedev-pw-530 'which /usr/bin/env' 2>&1 |tee log.$i || echo FAILED& done; wait 2> /dev/null
[1] 21492
[2] 21494
[3] 21496
[4] 21500
[5] 21506
[6] 21514
[7] 21519
[8] 21522
[9] 21525
[10] 21527
[11] 21532
[12] 21535
[13] 21539
[14] 21548
[15] 21552
[16] 21557
[17] 21561
[18] 21565
[19] 21572
[20] 21576
ssh_exchange_identification: read: Connection reset by peer
ssh_exchange_identification: read: Connection reset by peer
ssh_exchange_identification: read: Connection reset by peer
ssh_exchange_identification: read: Connection reset by peer
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
/usr/bin/env
如您所见,大多数时候/usr/bin/env
都可以找到,但有时不会。有时,该失败与ssh_exchange_identification: read: Connection reset by peer
错误相关,但并非在所有情况下都如此。
有什么建议么?我能做些什么来获得更多调试信息来帮助追踪这个问题?
我在ssh-host-config
Windows Server 2019 主机上运行 cygwin 的 sshd(通过 安装),运行 cygwin DLL 版本:3.3.4,以及最新的 ssh 包(截至几周前:)OpenSSH_8.8p1, OpenSSL 1.1.1m 14 Dec 2021
。
服务器有 28 个物理内核(56 个逻辑内核)和超过 512GB 的内存,所以我怀疑这不是内存或 CPU 问题。
我没有为CYGWIN
变量设置 binmode 和 ntsec 。
我想在目标计算机上安装 cygwin。我想删除 Cygwin 安装程序设置,所以我的安装程序只使用默认值。
我删除了 C:\cygwin 和包文件夹,但安装程序仍然使用旧安装的设置启动。
Cygwin 安装程序将其设置存储在哪里?
我正在yt-dlp
从源代码安装。它需要pandoc
,我相信它在 CygWin 包中可用。
在 Ubuntu 上我会运行:
apt-file search /pandoc
确定要安装的软件包。
CygWin 的等价物是apt-file
什么?