刚刷写完成 OpenWrt 固件后,在软件包点“刷新列表”后,长时间无响应,刷新页面在点“刷新列表”后,提示 Collected errors: * opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable,以下内容为软件源配置和错误解决方法。

架构查询方法

# 查看CPU架构
uname -m

# 可接受的架构
opkg print-architecture

发行版软件源

以下为 aarch64 a53 架构使用,适用于:N1,R2S,360V6 使用,如果你是其他架构,可以将 aarch64_cortex-a53 替换为 aarch64_cortex-a72,aarch64_generic,mips64_octeon,x86_64

src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/armvirt/64/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony

软件源错误提示

opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.

解决 opkg update 错误

打开SSH工具连接路由器,输入以下命令:

echo "nameserver 119.29.29.29">/tmp/resolv.conf
rm -f /var/lock/opkg.lock
opkg update

使用以上方法还是无法解决 opkg update 错误,那么建议你留言给我,或者更换固件。