Opkg: incompatible with the architectures configured

Hello, I am using locally build image for R7800 and I would like to install locally built packages on it, but I am getting error about arch mismatch:

root@OpenWrt:~# opkg install nmap
Unknown package 'nmap'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for nmap found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package nmap.
root@OpenWrt:~# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r15476-a1a7f3274e'
DISTRIB_TARGET='ipq806x/generic'
DISTRIB_ARCH='arm_cortex-a15_neon-vfpv4'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r15476-a1a7f3274e'
DISTRIB_TAINTS='no-all busybox'
root@OpenWrt:~# opkg print-architecture
arch all 1
arch noarch 1
arch arm_cortex-a15_neon-vfpv4 10
root@OpenWrt:~# opkg info nmap
Package: nmap
Version: 7.80-3
Depends: libc, libpcap1, libstdcpp6, zlib, libpcre
Status: unknown ok not-installed
Section: net
Architecture: arm_cortex-a15_neon-vfpv4
Size: 2239556
Filename: nmap_7.80-3_arm_cortex-a15_neon-vfpv4.ipk
Description: Utility for network exploration or security auditing

I get the same error when I try with transferred .ipk file. What am I doing wrong? Thanks.

1 Like

if you install packages stored locally on the device you probably have to do

opkg install nmap.ipk

opkg install nmap would try to pull the package from internet.

1 Like

I have tried it also with scp transferred ipk file:

root@OpenWrt:/tmp# opkg install nmap_7.80-3_arm_cortex-a15_neon-vfpv4.ipk 
Unknown package 'nmap'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for nmap found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package nmap.

I have also commented out feed in distfeeds.conf and added my repo into customfeeds.conf:

root@OpenWrt:/tmp# cat /etc/opkg/distfeeds.conf 
#src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages
#src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base
#src/gz openwrt_freifunk https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/freifunk
#src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci
#src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages
#src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing
#src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/telephony


root@OpenWrt:/tmp# cat /etc/opkg/customfeeds.conf 
# add your custom package feeds here
#
# src/gz example_feed_name http://www.example.com/path/to/files

src/gz local http://192.168.1.10/openwrt/packages

I am not sure if it is important for this discussion because problem seems to be arch mismatch. Although arch seems to be the same to me. Unfortunately opkg doesn't list accepted/provided archs directly in error message so I can only guess that accepted are the ones listed in "opkg print-architecture" and provided in "opkg info nmap". I have also verified that control file in nmap-full_7.80-3_arm_cortex-a15_neon-vfpv4.ipk contains the same arch:

Package: nmap
Version: 7.80-3
Depends: libc, libpcap1, libstdcpp6, zlib, libpcre
Source: feeds/packages/net/nmap
SourceName: nmap
License: GPL-2.0-only
LicenseFiles: COPYING
Section: net
SourceDateEpoch: 1591173083
CPE-ID: cpe:/a:nmap:nmap
Maintainer: Nuno Goncalves <nunojpg@gmail.com>
Architecture: arm_cortex-a15_neon-vfpv4
Installed-Size: 2246450
Description:  Utility for network exploration or security auditing
1 Like

Hello @nighthawk
I compiled an ipk kernel module for my exact kernel version and (before reading this thread) I tried the same steps. I having the problem with the same architecture

Until I comment the distfeeds.conf file opkg tries to download the ipk from the repo even when I call it like:
opkg install /tmp/kmod-input-core_5.4.95-1_arm_cortex-a15_neon-vfpv4.ipk

after commenting the lines at distfeeds.conf I get the architecture error.
Did you find a solution?

2 Likes

Hello @rodrigoaguilera

in my case it turned out to be dependency problem. There are multiple directories containing .ipk files and I happened to add only one containing nmap into distfeeds.conf. Funny thing is that I was expecting "missing dependency error" but this error message completely threw me off. So, in my case, solution was to add rest of the feeds into distfeeds.conf.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.