hq450 / fancyss

fancyss is a project providing tools to across the GFW on asuswrt/merlin based router.
GNU General Public License v3.0
12.14k stars 3.17k forks source link

更新v2ray程序失败 #33396

Open PineSongCN opened 1 month ago

PineSongCN commented 1 month ago

RT-AX82U,版本号:3.3.1。

看了日志,下载地址不对,路径不全。

【2024年06月06日 23:58:20】: ===================================================================
【2024年06月06日 23:58:20】:                 v2ray程序更新(Shell by sadog)
【2024年06月06日 23:58:20】: ===================================================================
【2024年06月06日 23:58:20】: 检测V2ray最新版本...
【2024年06月06日 23:58:22】: 检测到V2ray最新版本:5.16.1
【2024年06月06日 23:58:23】: 当前已安装V2ray版本:5.7.0
【2024年06月06日 23:58:24】: V2ray已安装版本号低于最新版本,开始更新程序...
【2024年06月06日 23:58:24】: 开始下载校验文件:md5sum.txt
【2024年06月06日 23:58:26】: md5sum.txt下载成功...
【2024年06月06日 23:58:26】: 开始下载v2ray程序
【2024年06月06日 23:58:26】: 下载地址:https://raw.githubusercontent.com/hq450/fancyss/3.0/binaries/v2ray/v5.16.1/v2ray_
【2024年06月06日 23:58:29】: v2ray下载失败!
【2024年06月06日 23:58:29】: 请检查你的网络!
【2024年06月06日 23:58:29】: ===================================================================

【2024年06月06日 23:58:29】: ===================================================================
ChrisLiu0343 commented 1 month ago

同样问题,很久了。。。

PineSongCN commented 1 month ago

同样问题,很久了。。。

ssh连上路由器,修改ss_v2ray.sh,按照你的机型手动赋值变量ARCH

vi /koolshare/scripts/ss_v2ray.sh

image

实际上相关代码涉及三个文件 ss_v2ray.sh ss_xray.sh ss_rust_update.sh ,我这边是只用到了v2ray,所以只改了这个

hztz commented 1 month ago

同样问题,很久了。。。

ssh连上服务器,修改ss_v2ray.sh,按照你的机型手动赋值变量ARCH

vi /koolshare/scripts/ss_v2ray.sh

image

很好 搞定了。希望作者下个版本修复一下 谢谢

ChrisLiu0343 commented 1 month ago

同样问题,很久了。。。

ssh连上服务器,修改ss_v2ray.sh,按照你的机型手动赋值变量ARCH

vi /koolshare/scripts/ss_v2ray.sh

image

非常感谢,问题解决。补充下,需要修改三个文件对应三个核心: ss_v2ray.sh ss_xray.sh ss_rust_update.sh

3song commented 3 weeks ago

@PineSongCN 感谢大佬,我还对着获取到的错误地址下载了半天,没想到拼接的链接就已经出了问题

wcg928 commented 3 weeks ago

不知道为什么用putty登录修改不了这个文件。最后用WinSCP 修改成功了。谢谢!

hjyeyo commented 2 weeks ago

请问具体

同样问题,很久了。。。

ssh连上路由器,修改ss_v2ray.sh,按照你的机型手动赋值变量ARCH

vi /koolshare/scripts/ss_v2ray.sh

image

实际上相关代码涉及三个文件 ss_v2ray.sh ss_xray.sh ss_rust_update.sh ,我这边是只用到了v2ray,所以只改了这个

大哥请问能具体一点吗,小白不会啊。我PUTTY执行后出现的是这个

admin@RT-AX56U-4A11:/tmp/home/root# vi /koolshare/scripts/ss_v2ray.sh

!/bin/sh

fancyss script for asuswrt/merlin based router with software center

source /koolshare/scripts/base.sh eval $(dbus export ssbasic) alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:' V2RAY_CONFIG_FILE="/koolshare/ss/v2ray.json" url_main="https://raw.githubusercontent.com/hq450/fancyss/3.0/binaries/v2ray"

arm hnd hnd_v8 qca mtk

pkg_arch=$(cat /koolshare/webs/Module_shadowsocks.asp | grep -Eo "pkg_name=.+"|grep -Eo "fancyss\w+"|sed 's/debug//g'|sed 's/fancyss//g'|sed case $pkg_arch in arm) ARCH=armv5 ;; hnd) ARCH=armv7 ;; hnd_v8) ARCH=arm64 ;; qca) ARCH=armv7 ;; mtk) ARCH=arm64 ;; esac

get_latest_version(){ rm -rf /tmp/v2ray_latest_info.txt echo_date "检测V2ray最新版本..." curl --connect-timeout 8 -s $url_main/latest_v5.txt > /tmp/v2ray_latest_info.txt if [ "$?" == "0" ];then if [ -z "$(cat /tmp/v2ray_latest_info.txt)" ];then echo_date "获取V2ray最新版本信息失败!使用备用服务器检测!" failed_warning_v2ray fi if [ -n "$(cat /tmp/v2ray_latest_info.txt|grep 404)" ];then echo_date "获取V2ray最新版本信息失败!使用备用服务器检测!" failed_warning_v2ray fi V2VERSION=$(cat /tmp/v2ray_latest_info.txt | sed 's/v//g') [ -z "${V2VERSION}" ] && V2VERSION="0"

            echo_date "检测到V2ray最新版本:${V2VERSION}"
            if [ ! -f "/koolshare/bin/v2ray" ];then
                    echo_date "v2ray安装文件丢失!重新下载!"
                    CUR_VER="0"
            else
                    CUR_VER=$(v2ray version 2>/dev/null | head -n 1 | cut -d " " -f2 | sed 's/v//g')
hjyeyo commented 2 weeks ago

能具体一点吗,小白不会啊。我PUTTY执行后

能说下具体怎么弄的吗?我AX56U也有这个问题,小宝固件

3song commented 2 weeks ago

@hjyeyo 不会用vi命令编辑文件么?去网上找教程然后在 楼主的图上红圈位置加上对应代码,按照自己的路由器架构写代码

3song commented 2 weeks ago

看了一下 你的路由器是armv7架构的,照着楼主的抄代码就行