本文使用的所有方法仅保证能在 openwrt_s905d_n1_R24.09.11_k6.1.109-flippy-91+o 固件中正常使用,且已测试可正常运行的设备仅斐讯N1,使用此方法导致的一切损失与风险将由你自己承担,请悉知。

起因:
目前我所使用的OpenWrt所使用的固件版本为: openwrt_s905d_n1_R24.09.11_k6.1.109-flippy-91+o (F大固件 91+o),打算装Mosdns,结果尝试了N次、刷了系统N次,均无法安装curl(或其依赖库/或安装后报错),无法正常使用Mosdns,最后发现是F大固件默认使用的腾讯软件源的问题(软件源里面有些文件夹丢失/重命名/不存在)。

解决:
打开OpenWrt管理页面,点击左侧"系统",下拉选项中选择"软件包",软件包页面的选择夹选择"配置",接下来要替换的就是下面的"发行版软件源"的编辑框中的内容。将其中所有内容更换为以下内容:

[✨推荐] 软件源1(腾讯软件源):

src/gz openwrt_core https://mirrors.cloud.tencent.com/openwrt/snapshots/targets/armsr/armv8/packages
src/gz openwrt_base https://mirrors.cloud.tencent.com/openwrt/snapshots/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://mirrors.cloud.tencent.com/openwrt/snapshots/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://mirrors.cloud.tencent.com/openwrt/snapshots/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://mirrors.cloud.tencent.com/openwrt/snapshots/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://mirrors.cloud.tencent.com/openwrt/snapshots/packages/aarch64_cortex-a53/telephony

[备用] 软件源2(南方科技大学软件源):

src/gz openwrt_core https://mirrors.sustech.edu.cn/openwrt/snapshots/targets/armsr/armv8/packages
src/gz openwrt_base https://mirrors.sustech.edu.cn/openwrt/snapshots/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://mirrors.sustech.edu.cn/openwrt/snapshots/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://mirrors.sustech.edu.cn/openwrt/snapshots/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://mirrors.sustech.edu.cn/openwrt/snapshots/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://mirrors.sustech.edu.cn/openwrt/snapshots/packages/aarch64_cortex-a53/telephony

然后 SSH 到 OpenWrt,输入 opkg update,待完成后,输入 opkg install curl && opkg install libcurl && opkg install libnghttp2,即可成功安装curl,再手动安装Mosdns 5.3.1版本。

最后修改:2024 年 11 月 08 日
如果觉得我的文章对你有用,请随意赞赏