Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 更新最新版本无法opkg update了 #4329

Open
5 of 7 tasks
yunyuyuan opened this issue Feb 15, 2025 · 8 comments
Open
5 of 7 tasks

[Bug] 更新最新版本无法opkg update了 #4329

yunyuyuan opened this issue Feb 15, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@yunyuyuan
Copy link

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.075

Bug on Environment

Official OpenWrt

OpenWrt Version

OpenWrt 23.05.5 (r24106-10cc5fcd00)

Bug on Platform

Linux-arm64

Describe the Bug

clashmeta是alpha-gef29e45,更新最新版本后无法opkg update了,无论是直连还是全局还是openwrt的官方源,都会报这个错:

~ wget https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/packages/Packages.gz
--2025-02-16 01:47:26--  https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/packages/Packages.gz
Resolving mirrors.ustc.edu.cn... 2001:da8:d800:95::110, 202.141.176.110
Connecting to mirrors.ustc.edu.cn|2001:da8:d800:95::110|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name 'mirrors.ustc.edu.cn'.
To connect to mirrors.ustc.edu.cn insecurely, use `--no-check-certificate'.

关闭openclash后可以更新。另外在客户端上可以下载,只是路由器自己wget会报错

To Reproduce

opkg update

OpenClash Log

大陆连接没有走内核,无任何报错日志

OpenClash Config

Expected Behavior

可以正常opkg update

Additional Context

No response

@yunyuyuan yunyuyuan added the bug Something isn't working label Feb 15, 2025
@tonyzhou777
Copy link

不写了么,加 --no-check-certificate

@yunyuyuan
Copy link
Author

opkg update报错是这样的,我直接把wget拿出来单独跑了下,自己不好改opkg的执行内容吧

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/targets/bcm27xx/bcm2711/packages/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/targets/bcm27xx/bcm2711/packages/Packages.gz

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/base/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/base/Packages.gz

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/luci/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/luci/Packages.gz

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/packages/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/packages/Packages.gz

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/routing/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/routing/Packages.gz

Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/telephony/Packages.gz
*** Failed to download the package list from https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/targets/bcm27xx/bcm2711/packages/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/base/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/luci/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/packages/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/routing/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://mirrors.ustc.edu.cn/openwrt/releases/23.05.5/packages/aarch64_cortex-a72/telephony/Packages.gz, wget returned 5.
➜  ~ 

@tonyzhou777
Copy link

你开IPv6了吗?把IPv6关了试试?

@yunyuyuan
Copy link
Author

个人需要ipv6,我降级到v0.46.064后正常用了

@EarSum
Copy link

EarSum commented Feb 17, 2025

immortalwrt has same issue
临时解决方式是使用特定的上游dns解析器(如smartdns或者adgh)对opkg源的域名进行ipv6地址解析屏蔽

smartdns自定义设置配置参考示例,现在的immortalwrt源会被自动重定向到南京大学镜像站,因此需要对mirror.nju.edu.cn进行v6地址解析屏蔽,其他源自行更换//中间的地址
address /mirror.nju.edu.cn/#6

在配置完后需要重启smartdns和openclash插件,路由器本机nslookup mirror.nju.edu.cn后无ipv6解析结果再行opkg update即可。

@TOPGUUN
Copy link

TOPGUUN commented Feb 20, 2025

我把OPENCLASH的UDP转发关了就好了

@hv0905
Copy link

hv0905 commented Feb 21, 2025

似乎是开启OpenClash后路由器所有IPV6连接都会受影响,暂时不知道什么原因

root@AtriAirport:~# curl -v https://test6.ustc.edu.cn
* Failed to connect to test6.ustc.edu.cn port 443 after 1 ms: Error
curl: (7) Failed to connect to test6.ustc.edu.cn port 443 after 1 ms: Error

内网下其它设备的ipv6连接正常

@ky-bd
Copy link

ky-bd commented Feb 23, 2025

疑似是ipv6连接直接打回localhost了,curl 出来的是 luci 界面

$ curl -6 -kkvvv
 www.baidu.com
> GET / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/8.7.1
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Connection: Keep-Alive
< Transfer-Encoding: chunked
< Keep-Alive: timeout=20
< x-luci-login-required: yes
< content-type: text/html
< cache-control: no-cache
< expires: 0
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
<
<!DOCTYPE html>
<html lang="en">

<head>
        <meta charset="utf-8">
        <title>
                OpenWrt
                - LuCI</title>
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
        <meta name="format-detection" content="telephone=no, email=no" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="mobile-web-app-capable" content="yes">
        <meta name="x5-fullscreen" content="true">
        <meta name="full-screen" content="yes">
        <meta name="x5-page-mode" content="app">
        <meta name="browsermode" content="application">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="msapplication-TileColor" content="#5e72e4">
        <meta name="application-name" content="OpenWrt - LuCI">
        <meta name="apple-mobile-web-app-title" content="OpenWrt - LuCI">
...
$ curl -kkvvv https://test6.ustc.edu.cn
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
> GET / HTTP/1.1
> Host: test6.ustc.edu.cn
> User-Agent: curl/8.7.1
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/1.1 403 Forbidden
< Connection: Keep-Alive
< Transfer-Encoding: chunked
< Keep-Alive: timeout=20
< x-luci-login-required: yes
< content-type: text/html
< cache-control: no-cache
< expires: 0
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
<
<!DOCTYPE html>
<html lang="en">

<head>
        <meta charset="utf-8">
        <title>
                OpenWrt
                - LuCI</title>
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
        <meta name="format-detection" content="telephone=no, email=no" />
        <meta name="apple-mobile-web-app-capable" content="yes">
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants