Package install incompatible with the architectures configured

I'm trying to install kmod-tun (it also deos it with other packages) but getting

Unknown package 'kmod-tun'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.161-1-9309db0b721b9fb3fe826181264a78c4) for kmod-tun
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-tun found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-tun.
root@OpenWrt:/tmp# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
root@OpenWrt:/tmp# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.3'
DISTRIB_REVISION='r20028-43d71ad93e'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 22.03.3 r20028-43d71ad93e'
DISTRIB_TAINTS='no-all'
root@OpenWrt:/tmp# opkg print-architecture
arch all 1
arch noarch 1
arch x86_64 10
root@OpenWrt:/tmp# opkg info kmod-tun
Package: kmod-tun
Version: 5.10.161-1
Depends: kernel (= 5.10.161-1-9309db0b721b9fb3fe826181264a78c4)
Status: unknown ok not-installed
Section: kernel
Architecture: x86_64
Size: 25063
Filename: kmod-tun_5.10.161-1_x86_64.ipk
Description: Kernel support for the TUN/TAP tunneling device
root@OpenWrt:/tmp# cat /etc/opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature

install the most recent snapshot, or switch to stable.

i'm using

git checkout v22.03.3
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

so how would I define "stable"

Stable means the official image downloaded from the OpenWrt website - not an image you compiled yourself. You cannot install kmods on self-built images unless you build them yourself. Just select the necessary modules in make menuconfig and you won't have to download the packages from the feed.

1 Like

I tried selecting the modules from make menuconfig but had the same issue, or do i need to do feeds update/install again first?

After selecting the modules in menuconfig, you need to compile the modules at the same time as the firmware (kernel itself).

If you select them during make menuconfig, they are included in the image (make sure it reads "*" not "M"). No need to install anything separately.

Or just use the online image builder to add the packages you need, without compiling the whole thing.

1 Like

Adding the ipk you mean?

Yeah, that's what I meant.