NanoPi R2C OpenWrt(FriendlyWrt) 下载软件包出现Package xxx version xxx has no valid architecture, ignoring的解


1、在OpenWrt终端下查询编译的架构版本:

cat /etc/openwrt_release

 如上图所示DISTRIB_ARCH为aarch64_generic

2、查看/etc/opkg/distfeeds.conf文件内容

cat /etc/opkg/distfeeds.conf

发现软件源的ARCH为aarch64_cortex-a53,由此造成架构不匹配的情况

3、在/etc/opkg.conf指明对架构的兼容

arch all 100
arch aarch64_generic 200
arch aarch64_cortex-a53 300

添加架构兼容后,最好执行一下opkg update命令

至此即可解决