Can not install LuCi-ssl package


root@OpenWrt:~# opkg install luci-ssl
Upgrading luci-ssl on root from 25.310.19382~20c4a4b to 25.311.74441~90493e0...
Downloading https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/x86_64/luci/luci-ssl_25.311.74441~90493e0_all.ipk
Configuring luci-ssl.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-core for firewall
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-conntrack for firewall
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-nat for firewall
root@OpenWrt:~#

i was just following this tutorial [OpenWrt Wiki] LuCI essentials

and suddenly got an error even after opkg update.

Need I just install

kmod-ipt-core, kmod-ipt-conntrack and kmod-ipt-nat

or problem somewhat deeper and I need to do something different? I was thinking that I have firewall installed. I mean, NAT is core part of any firewall how kmod-ipt-nat can not be installed in my system?

Is there a particular reason you want/need to use snapshot? If not, use 24.10 stable (currently 24.10.4).

When you get the message “Cannot satisfy the following dependencies for…” it is most likely because you installed a snapshot version of OpenWrt.
Read here for possible solutions.

2 Likes

This usually happens when you build yourself which implies you have to provide kmod repository too because OpenWrt module repo is only for OpenWrt kernel build. Find kmod-xxx-yyy*.ipk somewhere in your build tree.

1 Like

I am afraid that using official 24.10 is not my case since I need additional functionality which official image can not provide and which can be achieved only via building custom image.

I guess my only option is: Solution #5: Do not install packages after flashing, but include them in your image.

Many thanks!

you can do the vermagic workaround/hack to be able to install the official kmods.

1 Like

Thanks for info. By the way I was thinking that I build official stable build of 24.10. How it is happen that I am using a snapshot? When building I choose 24.10 version. There was no mention that it is some kind of snapshot or something. I was thinking that snapshot means “Build by user” or Cusom Build in my case.

how can we know what you checked out ?

I did all that stuff before building and still I have SNAPSHOT instead of STABLE. Well, may be I’ve forgot something. I will try again.

I seldom do this, but if you checked out 24.10, and not 24.10.0 or .1/.2/.3/.4, you might have ended up with the 24.10 snapshots, but I'm only guessing.

It allow only

git branch -a

where listed releases and openwrt-24.10 my only candidate

if I try git checkout openwrt-24.10.4 instead of git checkout openwrt-24.10 I recieve en error: Did not match any files known to git.

I try to specify via git tag but with no success because neither

git checkout openwrt-24.10/v24.10.4

nor

git checkout openwrt-24.10/4

works for me.

It only works if I

git checkout v24.10.4 (Not as it mentioned in WIKI)

but warns me about something which I do not understand:

git checkout v24.10.4
Note: switching to 'v24.10.4'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false.
HEAD is now at 78b23a26c4 OpenWrt v24.10.4: adjust config defaults ladmin@jopa-slona: "/openwrt$

The vanilla packages are constantly rebuilt also for 24.10. Only the firmware images, kernel packages and a few other packages are locked to a specific point release like 24.10.4

But the core reason for your problem is that repository kmods can't easily be installed to private builds, as the kmod "vermagic" hash typically differs. That strict hash logic has been there for a decade, as earlier there were too easily soft bricks from slightly incompatible kmod installation.

Repository kmods can only be installed to the official releases and the official release imagebuilder can also use them. But your own build has likely a different hash, so that installing kmod packages later does not work.

Ps. There are main/master development snapshots, which are usually referred as snapshots. But there are also snapshots constantly made for each release branch for testing purposes. And like I started this message, normal packages for releases branches are constantly rebuilt if there are changes.

OK. What I need to do if I want stable release?

Now when I try to ./scripts/feeds update -a it collects some errors e.g. luci package not found or something like: RPC failed HTTP 502 curl 22 the remote end hung up unexpectedly. Also some dependencies failed and I guess something go wrong

I did the same, worked just fine:

[frollic@atlantis openwrt]$ ./scripts/feeds update -a
Updating feed 'packages' from 'https://git.openwrt.org/feed/packages.git^f1470815f41fe199bfdafe9a91ad115bc2e91203' ...
Cloning into './feeds/packages'...
remote: Enumerating objects: 7457, done.
remote: Counting objects: 100% (7457/7457), done.
remote: Compressing objects: 100% (6117/6117), done.
remote: Total 7457 (delta 271), reused 5381 (delta 190), pack-reused 0
Receiving objects: 100% (7457/7457), 14.32 MiB | 39.10 MiB/s, done.
Resolving deltas: 100% (271/271), done.
remote: Enumerating objects: 3318, done.
remote: Counting objects: 100% (3318/3318), done.
remote: Compressing objects: 100% (1562/1562), done.
remote: Total 1934 (delta 747), reused 993 (delta 64), pack-reused 0
Receiving objects: 100% (1934/1934), 506.35 KiB | 5.39 MiB/s, done.
Resolving deltas: 100% (747/747), completed with 713 local objects.
From https://git.openwrt.org/feed/packages
 * branch            f1470815f41fe199bfdafe9a91ad115bc2e91203 -> FETCH_HEAD
HEAD is now at f147081 ksmbd-tools: update to 3.5.5
/hdc/sdf/openwrt
Updating feed 'luci' from 'https://git.openwrt.org/project/luci.git^75e41cba5160281b2d1dca922719efef29f7ffd8' ...
Cloning into './feeds/luci'...
remote: Enumerating objects: 10357, done.
remote: Counting objects: 100% (10357/10357), done.
remote: Compressing objects: 100% (4727/4727), done.
remote: Total 10357 (delta 3513), reused 6837 (delta 957), pack-reused 0
Receiving objects: 100% (10357/10357), 8.57 MiB | 7.93 MiB/s, done.
Resolving deltas: 100% (3513/3513), done.
remote: Enumerating objects: 6621, done.
remote: Counting objects: 100% (6621/6621), done.
remote: Compressing objects: 100% (2004/2004), done.
remote: Total 4054 (delta 1753), reused 2460 (delta 259), pack-reused 0
Receiving objects: 100% (4054/4054), 3.45 MiB | 6.13 MiB/s, done.
Resolving deltas: 100% (1753/1753), completed with 996 local objects.
From https://git.openwrt.org/project/luci
 * branch            75e41cba5160281b2d1dca922719efef29f7ffd8 -> FETCH_HEAD
HEAD is now at 75e41cb luci-app-travelmate: sync with update 2.2.1-2
/hdc/sdf/openwrt
Updating feed 'routing' from 'https://git.openwrt.org/feed/routing.git^3eb59e9471858c83891979793f1dd29cca156919' ...
Cloning into './feeds/routing'...
remote: Enumerating objects: 252, done.
remote: Counting objects: 100% (252/252), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 252 (delta 8), reused 74 (delta 0), pack-reused 0
Receiving objects: 100% (252/252), 105.75 KiB | 4.81 MiB/s, done.
Resolving deltas: 100% (8/8), done.
remote: Enumerating objects: 156, done.
remote: Counting objects: 100% (156/156), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 102 (delta 28), reused 16 (delta 0), pack-reused 0
Receiving objects: 100% (102/102), 33.92 KiB | 33.92 MiB/s, done.
Resolving deltas: 100% (28/28), completed with 26 local objects.
From https://git.openwrt.org/feed/routing
 * branch            3eb59e9471858c83891979793f1dd29cca156919 -> FETCH_HEAD
HEAD is now at 3eb59e9 opennds: update to version 10.3.1
/hdc/sdf/openwrt
Updating feed 'telephony' from 'https://git.openwrt.org/feed/telephony.git^2a4541d46199ac96fac214d02c908402831c4dc6' ...
Cloning into './feeds/telephony'...
remote: Enumerating objects: 273, done.
remote: Counting objects: 100% (273/273), done.
remote: Compressing objects: 100% (255/255), done.
remote: Total 273 (delta 5), reused 137 (delta 4), pack-reused 0
Receiving objects: 100% (273/273), 193.50 KiB | 3.95 MiB/s, done.
Resolving deltas: 100% (5/5), done.
remote: Enumerating objects: 176, done.
remote: Counting objects: 100% (176/176), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 103 (delta 35), reused 51 (delta 0), pack-reused 0
Receiving objects: 100% (103/103), 66.59 KiB | 3.03 MiB/s, done.
Resolving deltas: 100% (35/35), completed with 35 local objects.
From https://git.openwrt.org/feed/telephony
 * branch            2a4541d46199ac96fac214d02c908402831c4dc6 -> FETCH_HEAD
HEAD is now at 2a4541d freetdm: add patch for PCRE2 support
/hdc/sdf/openwrt
Create index file './feeds/packages.index'
Checking 'true'... ok.
Checking 'false'... ok.
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'proper-umask'... ok.
Checking 'gcc'... updated.
Checking 'working-gcc'... ok.
Checking 'g++'... updated.
Checking 'working-g++'... ok.
Checking 'ncurses.h'... ok.
Checking 'git'... updated.
Checking 'rsync'... updated.
Checking 'perl-data-dumper'... ok.
Checking 'perl-findbin'... ok.
Checking 'perl-file-copy'... ok.
Checking 'perl-file-compare'... ok.
Checking 'perl-thread-queue'... ok.
Checking 'perl-ipc-cmd'... ok.
Checking 'tar'... updated.
Checking 'find'... updated.
Checking 'bash'... updated.
Checking 'xargs'... updated.
Checking 'patch'... updated.
Checking 'diff'... updated.
Checking 'cp'... updated.
Checking 'seq'... updated.
Checking 'awk'... updated.
Checking 'grep'... updated.
Checking 'egrep'... updated.
Checking 'getopt'... updated.
Checking 'realpath'... updated.
Checking 'stat'... updated.
Checking 'gzip'... updated.
Checking 'unzip'... updated.
Checking 'bzip2'... updated.
Checking 'wget'... updated.
Checking 'install'... updated.
Checking 'perl'... updated.
Checking 'python'... updated.
Checking 'python3'... updated.
Checking 'python3-distutils'... ok.
Checking 'python3-stdlib'... ok.
Checking 'file'... updated.
Checking 'which'... updated.
Checking 'argp.h'... ok.
Checking 'fts.h'... ok.
Checking 'obstack.h'... ok.
Checking 'libintl.h'... ok.
Checking 'ldconfig-stub'... ok.
Collecting package info: feeds/packages/lang/python/python-hatch-fancy-pypi-readCollecting package info: feeds/packages/lang/python/python-hatch-requirements-txCollecting package info: feeds/packages/lang/python/python-jsonschema-specificatCollecting package info: done
Collecting target info: done
Create index file './feeds/luci.index'
Collecting package info: feeds/luci/applications/luci-app-crowdsec-firewall-bounCollecting package info: done
Collecting target info: done
Create index file './feeds/routing.index'
Collecting package info: done
Collecting target info: done
Create index file './feeds/telephony.index'
Collecting package info: done
Collecting target info: done
[frollic@atlantis openwrt]$ ./scripts/feeds install -a
Collecting package info: done
Collecting target info: done

That is due to OpenWrt git serves being overloaded, so they timeout every now and then.

You have got branches:
git branch -a
e.g. 24.10, 23.05, Main
Those are the snapshot builds and within a branch you have got tagged releases:
git tag --list | grep 24 which shows all the tags of branch 24.10

So yes you should do for the stable 24.10.4 release: git checkout v24.10.4 and for 24.10 snapshot you do: git checkout openwrt-24.10

4 Likes

Thank you and all kind gentlemen in this topic.

I am afraid I have to rebuild my system now.

Interesting but in stable branch all these packets mentioned above are installed in obligatory mode. I mean they all check by default and can not be removed. I like it

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