Differences

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

Link to this comparison view

Next revision
Previous revision
playground:faq:cannot_satisfy_dependencies [2018/07/07 17:31] – Created via CLI tmomasfaq:cannot_satisfy_dependencies [2023/04/02 23:53] (current) – [I'm using a snapshot image] update code vgaetera
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 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.
-    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). +
-    * Make local copy of snapshot packages (not recommended, needs much space!)+
   - if you are using a snapshot image, and the snapshot packages are missing in current builds.   - 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.+    * **Solution:** Wait some days, then check if the packages are being built again.
  
-As general advice, especially for inexperienced users: Go for the latest [[:releases:|stable release]], not a snapshot version, then the package repositories will match and packages will be available. 
  
-{{tag>faq after_installation install_packages packages opkg LuCI}}+===== 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]] for [[releases:snapshot#expected_availability_of_master_snapshot_packages|3 months]] since the snapshot build:\\ <code bash> 
 +# Enable kmods repository 
 +. /etc/os-release 
 +KERNEL="$(opkg list-installed kernel)" 
 +cat << EOF >> /etc/opkg/distfeeds.conf 
 +src/gz openwrt_kmods http://downloads.openwrt.org/
 +snapshots/targets/${OPENWRT_BOARD}/kmods/${KERNEL##* } 
 +EOF 
 +</code> 
 + 
 +**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}}
  • Last modified: 2023/04/02 23:53
  • by vgaetera