记得以前opkg一直是好的,但是今天切到mt7621上面突然发现不能用
一开始提示opkg update的时候:
说明网站不对,也就是openwrt的源不对
修改opkg源,位置在板子上/etc/opkg/distfeeds.conf文件里
查了好多源,最终还是官方源可以使用
官方源如下:
src/gz openwrt_core Index of /releases/21.02.0/targets/x86/64/packages/
src/gz openwrt_base Index of /snapshots/packages/x86_64/base/
src/gz openwrt_luci Index of /snapshots/packages/x86_64/luci/
src/gz openwrt_packages Index of /snapshots/packages/x86_64/packages/
src/gz openwrt_routing Index of /lede/snapshots/packages/x86_64/routing/
src/gz openwrt_telephony Index of /lede/snapshots/packages/x86_64/telephony/
官方源你也得选对型号,
core中他的是x86,而我的是mt7621
base和后面的是x86_64,而我的是mipsel_24kc
修改好了还是不对,提示别的错误:
提示wget: SSL support not available, please install one of the libustream-ssl-* libraries as well as the ca-bundle and ca-certificates packages
说明缺依赖的库:
make menuconfig的时候选择libustream-openssl,ca-certificates,还有wget都选上(如果opkg install可以用就直接opkg install 这几个库),
之后就不会提示这个问题了,但是opkg update还是没解决,提示如下:
提示:Signature check failed.
Remove wrong Signature file.
最后的解决办法就是:
注释掉/etc/opkg.conf中的option check_signature 1
之后opkg update就正常了:
最后要注意的是:opkg install 某个软件包的时候,查看你对应版本所对应软件包的名字,就像我安装traceroute,会提示
因为这个包在openwrt之后的源里就已经换成了iputils-traceroute6,但是openwrt后台并没有同步,所以会失败
安装名字正确的安装包就成功了
如果有问题可以私聊!!!
转发记得加原文链接!!!
如果对你有帮助记得一键三连!!!