Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
faq:cannot_satisfy_dependencies [2019/12/18 08:55] – snapshot tag added tmomasfaq:cannot_satisfy_dependencies [2021/08/26 15:29] – [I'm using a snapshot image] Link to retention period added tmomas
Line 1: Line 1:
-====== Cannot satisfy dependencies ======+====== Cannot satisfy dependencies / kernel is not compatible ======
  
-You will get the message //"Cannot satisfy the following dependencies for..."// +You will get the message //"Cannot satisfy the following dependencies for..."// or //"The installed version of package kernel is not compatible, require..."// 
-  - 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 **[[releases:snapshot|snapshot]]** image+  - 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 **[[releases:snapshot|snapshot]]** image or a self-compiled image. 
-    * **Solution #1:** Install all needed packages **directly after installing the snapshot image**, not on the next day. +  - if you are using a snapshot image, and the snapshot packages are missing in current builds.
-    * **Solution #2:** Try to install via opkg with option ''[[docs:guide-user:additional-software:opkg#options|--force-depends]]'' (=Install/remove despite failed dependencies). **Mind that this is likely to fail for kernel related packages (kmods).** +
-    * **Solution #3:** Make local copy of snapshot packages (not recommended, needs much space!) +
-    * **Solution #4:** [[https://forum.openwrt.org/t/persistent-kmods-for-snapshots/14505?u=tmomas|Use persistent kmods for snapshots]] +
-  - if you are using a [[releases:snapshot|snapshot]] image, and the snapshot packages are missing in current builds.+
     * **Solution:** Wait some days, then check if the packages are being built again.     * **Solution:** Wait some days, then check if the packages are being built again.
 +
 +
 +===== I'm using a snapshot image =====
 +
 +  * **Solution #1:** Install all needed packages **directly after installing the snapshot image**, not on the next day.
 +  * **Solution #2:** Try to install via opkg with option ''[[docs:guide-user:additional-software:opkg#options|--force-depends]]'' (=Install/remove despite failed dependencies). **Mind that this is likely to fail for kernel related packages (kmods).** Note that failing/incompatible kernel modules may cause the device to crash or not to reboot properly.
 +  * **Solution #3:** Make local copy of snapshot packages (not recommended, needs much space!)
 +  * **Solution #4:** [[https://forum.openwrt.org/t/persistent-kmods-for-snapshots/14505?u=tmomas|Use persistent kmods for snapshots]]:\\ <code bash>
 +# Enable kmods repository
 +. /etc/openwrt_release
 +KERNEL="$(opkg list-installed kernel)"
 +cat << EOF >> /etc/opkg/distfeeds.conf
 +src/gz openwrt_kmods http://downloads.openwrt.org/\
 +snapshots/targets/${DISTRIB_TARGET}/kmods/${KERNEL##* }
 +EOF
 +</code>
 +
 +**Note:** [[releases/snapshot#expected_availability_of_master_snapshot_packages|Current snapshot package retention duration]] is approx 3 months so if your install is older than this it is likely the kmods will no longer exist and you will need to re-install.
  
 **As general advice, especially for inexperienced users:** Go for the latest [[:releases:|stable release]] (if available for your device), not a snapshot version, then the package repositories will match and packages will be available. **As general advice, especially for inexperienced users:** Go for the latest [[:releases:|stable release]] (if available for your device), not a snapshot version, then the package repositories will match and packages will be available.
 +
 +
 +===== I'm using a self-compiled image =====
 +
 +  * **Solution #5:** Do not install packages after flashing, but include them in your image.
 +  * **Solution #6:** Compile the packages you want to install after flashing as modules. They will be built, but not included in the image.
  
 {{tag>faq after_installation install_packages packages opkg LuCI error snapshot}} {{tag>faq after_installation install_packages packages opkg LuCI error snapshot}}
  • Last modified: 2023/04/02 23:53
  • by vgaetera