OpenWRT opkg install error: Cannot satisfy dependencies

After flashing the local compiled image to my route, I got this error when using opkg install sometimes:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables-mod-tproxy:
* kernel (= 4.9.152-1-0b692028eb19a63deb9c9d19c9fee83c)
* opkg_install_cmd: Cannot install package iptables-mod-tproxy.

Here is how the OpenWRT official site says:
You will get the message “Cannot satisfy the following dependencies for…”
  1. if the kernel version installed on your device does not match the kernel version required by the package you want to install. This happens very easily when you are using a snapshot image.
    • Try to install via opkg with option --force-depends (=Install/remove despite failed dependencies). Mind that this is likely to fail for kernel related packages (kmods).
    • Make local copy of snapshot packages (not recommended, needs much space!)
  2. if you are using a snapshot image, and the snapshot packages are missing in current builds.
    • Wait some days, then check if the packages are being built again.
As general advice, especially for inexperienced users: Go for the latest stable release, not a snapshot version, then the package repositories will match and packages will be available.

评论

此博客中的热门博文

Openwrt路由器上配置shadowsocks透明代理+gfwlist(PAC)

Configure shadowsocks transparent proxy + gfwlist(PAC) on OpenWRT Router

Using Haproxy + shadowsocks (ha + ss) to setup multi ss backend and load balance