wg-quick "wait: pid 9185 is not a child if this shell" on Debian 8.11

Ник*_*цев 3 bash debian

所有在 Debian 9+ 上都可以正常工作,设置和安装方法相同。

当我尝试启动服务时

systemctl start wg-quick@wg0 
Run Code Online (Sandbox Code Playgroud)

它在日志中显示错误:

wg-quick[9290]: [#] ip link add wg0 type wireguard
wg-quick[9290]: [#] wg setconf wg0 /dev/fd/63
wg-quick[9290]: /usr/bin/wg-quick: line 251: wait: pid 9308 is not a child ...hell
wg-quick[9290]: [#] ip link delete dev wg0
Run Code Online (Sandbox Code Playgroud)

当您启动它时,它也显示类似的错误(也是 exec script wg-qucik):

wg-quick ip wg0
Run Code Online (Sandbox Code Playgroud)

这个问题与wait. 此外,我将 clear Debian 8.11 安装到 VirtualBox。有同样的错误。但是在 Debian 9 上它可以正常工作。

Ник*_*цев 5

我发现了一个提交取消

我认为 bash < 4.4 的问题,因为在 Debian 8 版本 - 4.3.30 上,在 Debian 9 - 4.4.12

对于由 root 运行的更新:

WGQUICKPATH=$(which wg-quick)
mv "$WGQUICKPATH" "$WGQUICKPATH.bak"
wget -O "$WGQUICKPATH" "https://raw.githubusercontent.com/WireGuard/wireguard-tools/master/src/wg-quick/linux.bash"
chmod +x "$WGQUICKPATH"
Run Code Online (Sandbox Code Playgroud)