fscarmen / sing-box

Sing-box 全家桶 --- 一键多协议脚本
999 stars 219 forks source link

Alpine3.18下报错 #71

Closed Gaslys closed 3 months ago

Gaslys commented 3 months ago

(6/6) Please enter the node name. (Default is p8kOQdcg): HK
/dev/fd/64: line 312: /bin/systemctl: cannot execute: required file not found /dev/fd/64: line 344: /bin/systemctl: cannot execute: required file not found

Sing-box open successful

/dev/fd/64: line 312: /bin/systemctl: cannot execute: required file not found 最后一步输入节点名称后出现以下报错,同时singbox也未成功开启,环境是alpine 3.18

fscarmen commented 3 months ago

文件没下载成功,手动运行看看

wget --no-check-certificate https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -O /bin/systemctl && chmod a+x /bin/systemctl
Gaslys commented 3 months ago

手动运行后还是出现同上报错,辛苦再看看

fscarmen commented 3 months ago

你再试试,我更新了一处。

Gaslys commented 3 months ago

试了一下还是和之前一样的报错 (6/6) Please enter the node name. (Default is utlook.com):

Downloading Sing-box. Please wait a seconds ... /dev/fd/64: line 312: /bin/systemctl: cannot execute: required file not found /dev/fd/64: line 344: /bin/systemctl: cannot execute: required file not found

Sing-box open successful

/dev/fd/64: line 312: /bin/systemctl: cannot execute: required file not found

fscarmen commented 3 months ago

可以了,alpine 3.18 缺少依赖 python3,我将会更新到脚本里。 现在节点信息你 ssh 进去后按 sb -n 就可以看到了。

image
Gaslys commented 3 months ago

已可以正常使用 非常感谢