Cannot find dependency kernel

I started to build images for my Dynalink router using the imagebuilder. Following the instructions from https://openwrt.org/docs/guide-user/additional-software/imagebuilder, it seemed pretty easy. I actually managed to build the 1st image which I successfully flashed on my router.
However, it now turns out that the same options I used for building aren't working anymore. When I use the same packages on https://firmware-selector.openwrt.org I can successfully build an image.
I am unable to figure out what is causing this failure. Below is the error I get:


Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nf-reject6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nf-log
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nf-log6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nft-core
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for dnsmasq-full:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package dnsmasq-full.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nft-offload
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for firewall4:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package firewall4.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-aead
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-hmac
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-sha512
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-sha3
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-rng
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-geniv
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-gf128
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-mac80211
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-ath
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-michael-mic
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-hwmon-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-thermal
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-ath11k
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-qrtr
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-qrtr-smd
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-ath11k-ahb
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ath11k-ahb:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-ath11k-ahb.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-lib-crc16
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-fs-ext4
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-fs-ext4.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-gpio-button-hotplug
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-leds-gpio
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-phy-aquantia
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-phy-aquantia:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-phy-aquantia.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-qca-ssdk
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-qca-nss-dp
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-qca-nss-dp:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-qca-nss-dp.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb-dwc3
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-dwc3:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-usb-dwc3.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb-dwc3-qcom
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb3
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb3:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-usb3.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-ipt-core
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for ppp:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package ppp.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for ppp-mod-pppoe:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package ppp-mod-pppoe.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-tun
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package openvpn-openssl.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-dummy
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-lib-chacha20
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-crypto-kpp
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-wireguard
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-wireguard:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-wireguard.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb-storage
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-usb-storage.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb-storage-uas
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-usb2
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb2:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package kmod-usb2.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nft-netdev
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-nft-bridge
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-nft-qos:
 *      kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1)
 * opkg_install_cmd: Cannot install package luci-app-nft-qos.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-input-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.51~e891f9ae3161bf74afe61665fcc44ca3-r1) for kmod-sound-core
make[2]: *** [Makefile:220: package_install] Error 255
make[1]: *** [Makefile:151: _call_image] Error 2
make: *** [Makefile:310: image] Error 2

What am I missing?

your errors aren't imagebuilder related.
https://openwrt.org/faq/cannot_satisfy_dependencies

1 Like

Not sure I understand what I am missing, but something tells me that I perhaps just need to wait for a few days and it will successfully build an image the way it did the 1st time. Kindly allow me to clear my doubts via a sanity check:
I downloaded https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq807x/openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64.tar.zst onto my Debian Bookworm VM and extracted that into /opt/OpenWrt so I have:

[wash@debian12 openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64]$ pwd
/opt/OpenWrt/openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64

In there I created a bash script named dynalink.sh which contains the below - the PACKAGES= being the same ones that I usually use at https://firmware-selector.openwrt.org:

#!/bin/sh

make image PROFILE="dynalink_dl-wrx36" PACKAGES="ath11k-firmware-ipq8074 base-files busybox ca-bundle -dnsmasq dnsmasq-full dropbear e2fsprogs firewall4 fstools ipq-wifi-dynalink_dl-wrx36 kmod-ath11k-ahb kmod-fs-ext4 kmod-gpio-button-hotplug kmod-leds-gpio kmod-nft-offload kmod-phy-aquantia kmod-qca-nss-dp kmod-usb-dwc3 kmod-usb-dwc3-qcom kmod-usb3 libc libgcc libustream-mbedtls logd losetup luci mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd -wpad-basic-mbedtls wpad-mesh-openssl luci-ssl luci-mod-dashboard wget-ssl openvpn-openssl luci-app-openvpn stubby nano htop tmux iftop kmod-dummy kmod-wireguard luci-proto-wireguard wireguard-tools pbr luci-app-pbr nlbwmon luci-app-nlbwmon kmod-usb-storage kmod-usb-storage-uas usbutils kmod-usb2 kmod-usb3 gdisk block-mount kmod-fs-ext4 e2fsprogs parted cfdisk resize2fs watchcat luci-app-watchcat softflowd luci-app-nft-qos diffutils bsdiff vnstat2 luci-app-vnstat2 luci-app-ddns darkstat luci-app-statistics collectd-mod-thermal collectd-mod-processes collectd-mod-ethstat collectd-mod-ipstatistics collectd-mod-ping luci-mod-rpc collectd-mod-cpu collectd-mod-cpufreq collectd-mod-df collectd-mod-dns luci-app-minidlna unzip curl squashfs-tools-mksquashfs cpusage iftop lscpu mhz lsof tcpdump-mini gawk grep sed coreutils-sort cloudflared luci-app-cloudflared ddns-scripts-cloudflare adguardhome"

So all I do is sh dynalink.sh to build the image.

What am I doing wrong with the above?

Thanks.

Since you replied back, I assume you didn't try the workarounds posted ?

Snapshots are moving targets, the kmods change on a daily basis.

So yes, it could be a timing issue...

In my situation, the only option is "to wait for a few days".
I am building the image on my VM, then TXing the sysupgrade image to the router. The suggested workarounds are for those who download the vanilla sysupgrade image and get that into the router, if my understanding is right.
In a nutshell, I am trying to avoid using https://firmware-selector.openwrt.org to customize and build the images for my router.