当前位置: 首页 > news >正文

[openwrt] openwrt换成清华源后,SSL verify error: unknown error

 

root@OpenWrt:/etc/opkg# opkg update

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/targets/bcm27xx/bcm2711/packages/Packages.gz

SSL verify error: unknown error

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/targets/bcm27xx/bcm2711/packages/Packages.gz

 

问题是时间没有更新,应该去luci的时间界面更新下时间

http://your-router-ip/cgi-bin/luci/admin/system/system

如果不行, 再看下面的解决办法。

 

The "SSL verify error: unknown error" when running opkg update on OpenWrt is a common problem, usually related to issues with your system's SSL/TLS certificates or incorrect time/date settings.

Since the opkg update relies on SSL/TLS to securely download package lists from the repository (the https:// URL), a failure in certificate validation halts the process.

Here are the most common solutions, starting with the easiest:

 

1. Check and Set System Time ⏰

 

The most frequent cause for SSL errors is an incorrect system date and time. Certificates have validity periods, and if your router's clock is far off, the certificate will fail verification.

  • Check the current time:

    Bash
     
    date
    
  • If the time is wrong, try to sync it. If your router has WAN connectivity, it should sync automatically via NTP, but a manual sync may be needed:

    • Install ntpclient (if needed) and force a sync (if possible):

      • Note: You may need to use the --no-check-certificate option for the initial install if you don't have the time set.

    • If you have LuCI (the web interface), go to SystemSystemTime Synchronization and ensure the NTP client is enabled and click "Sync with browser" if available, then Save & Apply.

    • If you have an internet-connected computer and SSH access, you can manually set the time (replace the date and time with the current time):

      Bash
       
      date -s "2025-11-04 05:45:00"
      
    • After setting the correct time, try opkg update again.


 

2. Temporarily Bypass SSL Check (Insecure) ⚠️

 

You can temporarily bypass the certificate check to allow opkg update to complete, which is useful for installing an updated certificate bundle (see step 3). Use this only as a temporary fix as it removes security checks.

  • Run opkg update with the no-check-certificate option:

    Bash
     
    opkg update --no-check-certificate
    
  • If this succeeds, immediately proceed to the next step to install or update the certificate package.


 

3. Install or Update CA Certificates 🛡️

 

Your OpenWrt installation might be missing the correct or current CA (Certificate Authority) certificates needed to trust the repository's SSL certificate (which is likely a Let's Encrypt certificate).

  • Update the ca-certificates package (use the --no-check-certificate option if your previous opkg update failed):

    Bash
     
    opkg install ca-certificates --no-check-certificate
    
  • Once the package is installed, try a regular update:

    Bash
     
    opkg update
    

 

4. Change the SSL Library (Advanced) 🛠️

 

OpenWrt uses a lightweight SSL library like libustream-wolfssl by default. Sometimes, issues can be resolved by switching to the more standard libustream-openssl.

  • Force-install the necessary OpenSSL utilities (using --no-check-certificate if necessary):

    Bash
     
    opkg update --no-check-certificate
    opkg install libopenssl openssl-util libustream-openssl --no-check-certificate
    
  • Remove the old library (or it may be auto-removed with the install):

    Bash
     
    opkg remove libustream-wolfssl # or whatever your current libustream package is
    
  • Try to update again:

    Bash
     
    opkg update
    

Next Step: If none of these solutions work, I can help you check the contents of your /etc/opkg/distfeeds.conf file to ensure the repository URLs are correct for your OpenWrt version.

 

http://www.jsqmd.com/news/30562/

相关文章:

  • [openwrt] ash: /usr/libexec/sftp-server: not found scp: Connection closed
  • [openwrt]OpenWRT换成清华源
  • [OpenWRT/LEDE] a short history of OpenWRT
  • 生成式模型分类
  • 2025年11月学生平板品牌对比榜:新课标适配与错题管理实力榜
  • 2025年11月学生平板品牌推荐:全维度评测榜看清北直播课与AI题库
  • 2025年11月学生平板品牌评测:读书郎T5系列与四款竞品实力排行
  • 2025年11月卖得好的学习机品牌推荐:家长榜评价
  • 2025年11月适合小学生的学习机品牌推荐:热门机型排行与实测
  • 2025年11月卖得好的学习机品牌推荐:市场榜五强评测
  • 2025年11月卖得好的学习机品牌推荐:实力榜排行与真实评价汇总
  • 2025年11月适合小学生的学习机品牌推荐:最新榜单对比评测与真实口碑排行
  • AI元人文:价值权衡的计算理论与共识涌现新范式
  • 2025年北京债务债权律师事务所权威推荐榜:专业债务纠纷处理与债权追索法律服务口碑之选
  • 2025年北京股权纠纷律师事务所权威推荐榜:股权转让/股东争议/公司控制权纠纷专业律师团队精选
  • 2025年北京合同纠纷律师事务所权威推荐榜:专业律师团队与胜诉率口碑深度解析
  • 2025年北京分家析产律师事务所权威推荐榜:专业房产分割与遗产继承法律服务口碑之选
  • 2025年北京遗产继承律师事务所权威推荐榜:专业遗嘱继承、房产继承、涉外继承法律服务团队深度解析
  • 2025年北京婚姻家事律师事务所权威推荐榜:专业离婚诉讼、财产分割、子女抚养法律服务机构精选
  • 2025年北京房产律师事务所权威推荐榜:房屋买卖纠纷/房产过户/合同审查专业律所精选指南
  • 2025 年 11 月铝排/铝棒/铝板厂家推荐排行榜,1060铝排/1070铝排/导电铝排,6061铝棒/6063铝棒/6082铝棒,5083铝板/5052铝板/6082铝板公司推荐
  • 2025 年 11 月紫铜排厂家推荐排行榜,T2紫铜排/导电紫铜排/镀锡紫铜排/TMY铜排/导电铜母线/导电铝母线/T2紫铜板棒带/脱脂紫铜管/医用紫铜管公司推荐
  • 【AI说Rust 02】如何在 windows11 系统搭建 Rust 开发环境
  • window下安装python解释器和python的编辑器pycharm
  • 【比赛游记】2025 ICPC 武汉站游记
  • 群晖安装打印服务器,驱动HP P1106札记(三)—— 客户端配置
  • 2025年11月优质太空舱铝板供应商排名:工厂实力与用户评价深度解析
  • 2025年11月太空舱铝板生产厂家推荐排行:专业品牌口碑评测报告
  • 2025年11月有实力太空舱铝板生产厂家榜单:服务与成本深度评测
  • 2025年11月太空舱铝板供应商排名:专业对比与实地考察报告