Cannot install package openvpn-openssl

I get a error on my compiled firmware
Target: ar71xx

opkg install openvpn-openssl luci-app-openvpn openssl-util
Installing openvpn-openssl (2.4.5-4.2) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mips_24kc/base/openvpn-openssl_2.4.5-4.2_mips_24kc.ipk
Package luci-app-openvpn (git-18.340.83383-3dea6b5-1) installed in root is up to date.
Package openssl-util (1.0.2p-1) installed in root is up to date.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
 * 	kernel (= 4.9.146-1-def6b4b6fd5b0fd8587fe8dbf55baf5c) * 
 * opkg_install_cmd: Cannot install package openvpn-openssl.

the firmware already compiled with mbedTLS packet(no problems because of this?)

luci-app-openvpn openssl-util --force-de
pends
Installing openvpn-openssl (2.4.5-4.2) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mips_24kc/base/openvpn-openssl_2.4.5-4.2_mips_24kc.ipk
Installing kmod-tun (4.9.146-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ar71xx/generic/packages/kmod-tun_4.9.146-1_mips_24kc.ipk
Installing liblzo (2.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mips_24kc/base/liblzo_2.10-1_mips_24kc.ipk
Package luci-app-openvpn (git-18.340.83383-3dea6b5-1) installed in root is up to date.
Package openssl-util (1.0.2p-1) installed in root is up to date.
Configuring kmod-tun.
Configuring liblzo.
Configuring openvpn-openssl.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
 * 	kernel (= 4.9.146-1-def6b4b6fd5b0fd8587fe8dbf55baf5c) *

and why pulls the packets from SNAPSHOT?

Did you compile from a snapshot or a release?

You probably checked out the openwrt-18.06 branch instead of the v18.06.1 tag.

how to check in menuconfig?

git branch -a

in the OpenWrt directory will say what you are using in the first line. HEAD detached at v18.06.1 means the tag v18.06.1.

1 Like
git branch -a
  master
* openwrt-18.06
  remotes/origin/HEAD -> origin/master
  remotes/origin/lede-17.01
  remotes/origin/master
  remotes/origin/openwrt-18.06

The star indicates that it's the 18.06 branch, not the v18.06.1 tag. You need to check out the tag to be sure that the packages won't change after you've built it.

1 Like

how to fix it, need to load packages from release?

I think you either have to build a new version that is compatible with the current packages or build the packages yourself using the same commit position as you used to build the image. If you build a new image using the v18.06.1 tag it won't happen again. https://openwrt.org/docs/guide-user/additional-software/beginners-build-guide shows how to select a tag in the checkout process.

2 Likes
root@OpenWrt:~# opkg update && opkg install openvpn-openssl luci-app-openvpn ope
nssl-util
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
Installing openvpn-openssl (2.4.5-4.2) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/openvpn-openssl_2.4.5-4.2_mips_24kc.ipk
Installing luci-app-openvpn (git-18.340.83383-3dea6b5-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/luci/luci-app-openvpn_git-18.340.83383-3dea6b5-1_all.ipk
Package openssl-util (1.0.2p-1) installed in root is up to date.
Configuring luci-app-openvpn.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
 * 	kernel (= 4.9.120-1-adfb989aae12e239d65a2c73ca35b8a3) * 
 * opkg_install_cmd: Cannot install package openvpn-openssl.

build with new packages

git branch -a
* (detached from v18.06.1)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/lede-17.01
  remotes/origin/master
  remotes/origin/openwrt-18.06

Sorry, you probably need to compile the packages yourself to make them compatible with you kernel, then. You can select them using menuconfig.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.