Getting error "Cannot install package iptables" while compiling

Hello guys,
my hardware is vocore2 and while compilig, I got this error

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ledtrig-heartbeat:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ledtrig-heartbeat.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-lib-crc-ccitt:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-lib-crc-ccitt.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-reject:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nf-reject.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-ipt:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nf-ipt.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-core:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ipt-core.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-conntrack:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nf-conntrack.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-nat:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nf-nat.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-flow:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nf-flow.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-conntrack:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ipt-conntrack.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-offload:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ipt-offload.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-nat:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ipt-nat.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-slhc:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-slhc.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ppp:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-ppp.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-pppox:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-pppox.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-pppoe:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-pppoe.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nls-base:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-nls-base.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-mmc:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-mmc.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-core:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-usb-core.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ledtrig-usbport:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-usb-ledtrig-usbport.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ohci:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-usb-ohci.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ehci:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-usb-ehci.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb2:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-usb2.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-sdhci-mt7620:
 * 	kernel (= 4.14.275-1-ae69b79cebeba35c3d78e0854b66cf42)
 * opkg_install_cmd: Cannot install package kmod-sdhci-mt7620.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables:
 * 	libip6tc2
 * opkg_install_cmd: Cannot install package iptables.
make[2]: *** [package/Makefile:68: package/install] Error 255


how to solve this issue?

Are you sure you're using OpenWrt from OpenWrt?

Last I checked, OpenWrt was running kernels in the 5.x range.

Vendor toolkits may have "OpenWrt" in them, but often are based on an older or ancient version and reference vendor-specific sources, blobs, tools, ... , which may be missing in their distributions. Such vendor toolkits are supported by the vendor and generally not by this community.

yeah, I'm sure I'm using the compatible version, later on, I replaced it with a backup .config file, and now its working. After changing some configurations only I got these errors.

If it's referencing kernel 4.14, it's not current. My guess is that you're not making sure everything is clean after making changes and that your .config file is consistent with the build tree. I have no idea where you're getting references to kernel 4.14.

1 Like