fscarmen / sing-box

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

Alpine下脚本报错缺少依赖 #92

Closed Gaslys closed 1 month ago

Gaslys commented 1 month ago

屏幕截图 2024-05-16 104745

fscarmen commented 1 month ago

脚本照计在alpine里会安装并使用 virt-what 替代 systemd-detect-virt ,不清楚为什么会出问题,你这样运行看看

wget -O sing-box.sh https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh; sed -i '/clear/d' sing-box.sh; bash -x sing-box.sh

去到这个报错那里,把运行里的日志复制出来看看。

Gaslys commented 1 month ago

Varane:~# wget -O sing-box.sh https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh; sed -i '/clear/d' sing-box.sh; bash -x sing-box.sh --2024-05-15 09:55:00-- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 155254 (152K) [text/plain] Saving to: 'sing-box.sh'

sing-box.sh 100%[===============================>] 151.62K --.-KB/s in 0.002s

2024-05-15 09:55:00 (87.5 MB/s) - 'sing-box.sh' saved [155254/155254]

++ text 24 ++ grep -q '\$' ++ eval echo '${E[24]}' +++ echo Choose:

fscarmen commented 1 month ago

未全啊,还没有显示你报错那里的

Gaslys commented 1 month ago

+++ echo 'Language:\n' 1. English '(default)' '\n' 2. 简体中文

++ text 24 ++ grep -q '\$' ++ eval echo '${E[24]}' +++ echo Choose:

++ text 17 ++ grep -q '\$' ++ eval echo '${E[17]}' +++ echo Version ++ text 18 ++ grep -q '\$' ++ eval echo '${E[18]}' +++ echo New features ++ text 1 ++ grep -q '\$' ++ eval echo '${E[1]}' +++ echo Add hysteria2 port hopping. Supported Clients: ShadowRocket / NekoBox / Clash ++ text 19 ++ grep -q '\$' ++ eval echo '${E[19]}' +++ echo System infomation ++ text 20 ++ grep -q '\$' ++ eval echo '${E[20]}' +++ echo Operating System ++ text 21 ++ grep -q '\$' ++ eval echo '${E[21]}' +++ echo Kernel ++ uname -r ++ text 22 ++ grep -q '\$' ++ eval echo '${E[22]}' +++ echo Architecture ++ text 23 ++ grep -q '\$' ++ eval echo '${E[23]}' +++ echo Virtualization

======================================================================================================================

fscarmen commented 1 month ago

找到原因了,你稍等我10分钟,我更新一下脚本。

fscarmen commented 1 month ago

已更新了,你再运行一下看看。

Gaslys commented 1 month ago

已解决 非常感谢