openwrt运行opkg update失败
问题
opkg update错误:没有太多细节
https://downloads.openwrt.org/releases/22.03-SNAPSHOT/targets/mvebu/cortexa9/packages/Packages.gz
return error 1
换个环境访问了下url确认源正常
然后尝试直接wget,报错
HTTPS support not compiled in.
解决
收集一些信息
root@OpenWrt:~# opkg list-installed|grep wget
wget-nossl - 1.21.3-2
wget-ssl - 1.21.3-2
root@OpenWrt:~# find / -name "wget*"
/overlay/upper/usr/bin/wget
/overlay/upper/usr/bin/wget-bak
/overlay/upper/usr/lib/opkg/info/wget-nossl.prerm
/overlay/upper/usr/lib/opkg/info/wget-ssl.prerm
/overlay/upper/usr/lib/opkg/info/wget-nossl.list
/overlay/upper/usr/lib/opkg/info/wget-nossl.control
/overlay/upper/usr/lib/opkg/info/wget-nossl.postinst
/overlay/upper/usr/lib/opkg/info/wget-ssl.control
/overlay/upper/usr/lib/opkg/info/wget-ssl.postinst
/overlay/upper/usr/lib/opkg/info/wget-ssl.list
/overlay/upper/usr/libexec/wget-nossl
/overlay/upper/usr/libexec/wget-ssl
/rom/usr/bin/wget
/usr/bin/wget
/usr/bin/wget-bak
/usr/lib/opkg/info/wget-nossl.prerm
/usr/lib/opkg/info/wget-ssl.prerm
/usr/lib/opkg/info/wget-nossl.list
/usr/lib/opkg/info/wget-nossl.control
/usr/lib/opkg/info/wget-nossl.postinst
/usr/lib/opkg/info/wget-ssl.control
/usr/lib/opkg/info/wget-ssl.postinst
/usr/lib/opkg/info/wget-ssl.list
/usr/libexec/wget-nossl
/usr/libexec/wget-ssl
发现有好几个可以用的wget:/usr/bin/wget
有问题,/usr/libexec/wget-ssl
没问题
于是替换软链解决
mv /usr/bin/wget /usr/bin/wget-bak
ln -s /usr/libexec/wget-ssl /usr/bin/wget
参考
Entware - [SOLVED] Entware packages not updating - wget doesn't have https support | SNBForums
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。