Warning: is_readable(): open_basedir restriction in effect. File(C:\wwwroot\hegu.app/wp-content/plugins/C:\wwwroot\hegu.app\wp-content\plugins\wp-china-yes/languages/wp-china-yes-zh_CN.mo) is not within the allowed path(s): (c:/wwwroot/hegu.app/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\wwwroot\hegu.app\wp-includes\l10n.php on line 783
wr1200js升级openwrt 19.07.1后更换软件源提高opkg成功率 - 何故

wr1200js升级openwrt 19.07.1后更换软件源提高opkg成功率

2020年2月10日 7337点热度 5人点赞 2条评论

由于某些原因,openwrt软件源官方软件源在国内访问速度很慢,安装软件包时常失败,之前推荐使用的是中国科技技术大学的,但目前这个版本的在中国科技技术大学的镜像站并不是最新的,很奇怪,因此改用清华大学的,然而清华大学的镜像站不提供http访问方式,仅提供https访问,但openwrt官方默认固件是不支持https的,这就有点尴尬了。

一、让openwrt支持https访问

使用ssh登录进入openwrt执行以下命令

opkg update opkg install wget opkg install ca-certificates

二、替换域名

进入“系统”-“Software”-“configure opkg”(如果你的是中文找对应的翻译)

把第三个框里面的所有内容复制出来放到记事本里

使用替换功能将所有的“https://downloads.openwrt.org/"替换成”https://mirrors.tuna.tsinghua.edu.cn/openwrt/"

就这个样子

再把替换后的内容粘贴回去,保存一下。

试试安装软件包,应该比较快了。

大魔王

这个人很懒,什么都没留下

文章评论

  • Hsisjn

    纠正 https://mirrors.tuna.isinghua.edu.cn/openwrt/
    是tsinghua 不是 isinghua

    2021年8月24日
    • hellger

      @Hsisjn 谢谢!

      2021年8月25日