Adbyby无法更新规则的解决方案

观察被调用的/usr/share/adbyby/adblock.sh可知,由于其使用了命令wget-ssl而系统中无此命令,故报错。

解决方案A

建立硬链接

ln /usr/bin/wget /usr/bin/wget-ssl

接下来又报错:

wget: unrecognized option: tries=1
Usage: wget [options] <URL>
Options:
        -4                              Use IPv4 only
        -6                              Use IPv6 only
        -q                              Turn off status messages
        -O <file>                       Redirect output to file (use "-" for stdout)
        -P <dir>                        Set directory for output files
        --user=<user>                   HTTP authentication username
        --password=<password>           HTTP authentication password
        --user-agent|-U <str>           Set HTTP user agent
        --post-data=STRING              use the POST method; send STRING as the data
        --spider|-s                     Spider mode - only check file existence
        --timeout=N|-T N                Set connect/request timeout to N seconds
        --proxy=on|off|-Y on|off        Enable/disable env var configured proxy

HTTPS options:
        --ca-certificate=<cert>         Load CA certificates from file <cert>
        --no-check-certificate          don't validate the server's certificate
        --ciphers=<cipherlist>          Set the cipher list string

是因为此版本中wget没有相关参数,使用相近的替代或直接删除即可。
/usr/share/adbyby/目录下的adblock.sh adbybyupdate.sh等文件分别进行类似替换操作后,发现规则更新成功。

解决方案B

/usr/share/adbyby/目录下的adblock.sh adbybyupdate.sh等文件均进行替换操作:将wget-ssl改为wget,并按解决方案A中描述删除多余参数,这样做的好处是避免建立硬链接,从而引起其他程序的错误。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值