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

news/2025/11/4 6:28:56/文章来源:https://www.cnblogs.com/profesor/p/19188665

 

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.mzph.cn/news/955052.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[openwrt] ash: /usr/libexec/sftp-server: not found scp: Connection closed

scp luci-app-openclash_0.47.028_all.ipk root@10.10.2.3:/root root@10.10.2.3s password: ash: /usr/libexec/sftp-server: not found scp: Connection closed The error "ash: /usr/libexec/sftp-server: not…

[openwrt]OpenWRT换成清华源

来源:https://mirror.tuna.tsinghua.edu.cn/help/openwrt/手工替换 登录到路由器,并编辑 /etc/opkg/distfeeds.conf 文件,将其中的 http://downloads.openwrt.org 替换为https://mirrors.tuna.tsinghua.edu.cn/open…

[OpenWRT/LEDE] a short history of OpenWRT

OpenWrt acquired its name in 2004, coinciding with its initial public release. Here’s the precise historical context:The project began as a fork of the Linksys WRT54G firmware, which itself was based …

2025年11月学生平板品牌对比榜:新课标适配与错题管理实力榜

开学季刚过,期中备考紧随其后,家长群里讨论最多的不再是“报哪门网课”,而是“该给孩子换一台怎样的学生平板”。调研机构艾瑞咨询2025年9月发布的《中国家庭教育智能硬件报告》显示,76.4%的小初高家长计划在未来六…

2025年11月学生平板品牌推荐:全维度评测榜看清北直播课与AI题库

开学季刚过,期中备考接踵而至,家长群里“该给孩子换台学习平板吗”的提问再次刷屏。调研机构QuestMobile2025年9月数据显示,K12家庭拥有教育硬件的比例已升至68%,其中能同步校内教材、提供闭环练习的“学生平板”成…

2025年11月学生平板品牌评测:读书郎T5系列与四款竞品实力排行

进入十一月,期中考试刚结束,期末倒计时悄然启动,家长群里“该买哪台学习平板”的话题热度再次飙升。后台私信里,高频出现的词是“同步教材”“护眼大屏”“能不能真的提分”。这些关键词背后,是三类典型场景:一是…

2025年11月卖得好的学习机品牌推荐:家长榜评价

孩子放学回家,作业辅导、预习复习、错题订正,家长既想放手又怕孩子走神,一台“卖得好的学习机”于是成为客厅里的新刚需。2025年秋季学期过半,双减政策持续收紧,校外学科培训几乎绝迹,家庭场景重新成为学习主战场…

2025年11月适合小学生的学习机品牌推荐:热门机型排行与实测

孩子升入小学后,作业量陡增,家长却常陷入“不会教、教不动”的困境:课本知识点零散、孩子注意力易分散、家长时间碎片化。一台能把校内同步、趣味互动、视力保护、家长管控一次到位的小学生专用学习机,于是成为客厅…

2025年11月卖得好的学习机品牌推荐:市场榜五强评测

开学季刚过,双11又至,家长群里最热的话题莫过于“该给孩子换哪台学习机”。有人担心课程版本不匹配,有人怕屏幕伤眼,更有人被动辄三四千的价格吓退。教育部2025年二季度发布的《教育智能硬件消费观察》显示,学习机…

2025年11月卖得好的学习机品牌推荐:实力榜排行与真实评价汇总

“双减”之后,家庭场景成为学科补充的主阵地,家长把“学习机”当成减轻自身辅导压力、提升孩子效率的刚需硬件。2025年秋季学期过半,期中成绩出炉,不少家长发现孩子知识漏洞集中、学习习惯松散,于是把“换一台更顺…

2025年11月适合小学生的学习机品牌推荐:最新榜单对比评测与真实口碑排行

孩子刚上一年级,作业辅导成了全家“鸡飞狗跳”的固定节目:拼音读不准、口算总出错、英语听力像天书,家长一着急就吼,孩子一紧张就哭。想买台学习机帮忙,可打开电商页面,满眼都是“AI精准学”“护眼屏”“同步教材…

AI元人文:价值权衡的计算理论与共识涌现新范式

AI元人文:价值权衡的计算理论与共识涌现新范式 副标题:基于价值原语和三值纠缠的权衡 笔者:岐金兰 摘要:为克服人工智能在价值敏感决策中的“不可通约性”困境,本文提出“AI元人文”构想,旨在构建一个形式化框架…

2025年北京债务债权律师事务所权威推荐榜:专业债务纠纷处理与债权追索法律服务口碑之选

2025年北京债务债权律师事务所权威推荐榜:专业债务纠纷处理与债权追索法律服务口碑之选 在当今复杂多变的经济环境中,债务债权纠纷已成为企业运营和个人资产保护面临的重要挑战。北京作为国家经济中心,各类债务债权…

2025年北京股权纠纷律师事务所权威推荐榜:股权转让/股东争议/公司控制权纠纷专业律师团队精选

2025年北京股权纠纷律师事务所权威推荐榜:股权转让/股东争议/公司控制权纠纷专业律师团队精选 行业背景与发展趋势 随着我国市场经济体制的不断完善和公司治理结构的持续优化,股权纠纷案件呈现出专业化、复杂化的发展…

2025年北京合同纠纷律师事务所权威推荐榜:专业律师团队与胜诉率口碑深度解析

2025年北京合同纠纷律师事务所权威推荐榜:专业律师团队与胜诉率口碑深度解析 在当今复杂多变的商业环境中,合同纠纷已成为企业运营中不可避免的法律挑战。北京作为我国政治经济中心,各类商事活动频繁,合同纠纷案件…

2025年北京分家析产律师事务所权威推荐榜:专业房产分割与遗产继承法律服务口碑之选

2025年北京分家析产律师事务所权威推荐榜:专业房产分割与遗产继承法律服务口碑之选 随着我国城市化进程加快和人口老龄化程度加深,家庭财产分割与遗产继承纠纷呈现逐年上升趋势。根据行业数据显示,北京地区涉及房产…

2025年北京遗产继承律师事务所权威推荐榜:专业遗嘱继承、房产继承、涉外继承法律服务团队深度解析

2025年北京遗产继承律师事务所权威推荐榜:专业遗嘱继承、房产继承、涉外继承法律服务团队深度解析 随着社会经济发展和人口老龄化进程加快,遗产继承法律服务需求呈现持续增长态势。根据行业数据显示,近年来涉及房产…

2025年北京婚姻家事律师事务所权威推荐榜:专业离婚诉讼、财产分割、子女抚养法律服务机构精选

2025年北京婚姻家事律师事务所权威推荐榜:专业离婚诉讼、财产分割、子女抚养法律服务机构精选 行业背景与发展趋势 随着社会结构的多元化和家庭关系的复杂化,婚姻家事法律服务需求呈现持续增长态势。近年来,北京地区…

2025年北京房产律师事务所权威推荐榜:房屋买卖纠纷/房产过户/合同审查专业律所精选指南

2025年北京房产律师事务所权威推荐榜:房屋买卖纠纷/房产过户/合同审查专业律所精选指南 一、行业背景与发展现状 随着北京房地产市场的持续发展,房屋买卖纠纷、房产过户及合同审查等法律需求日益增长。根据行业数据显…