Router (ASUS RT-AX53U) flashed with OpenWRT and LuCi installed.
Same connected to internet behind a proxy server as an Access Point with ethernet.
Radios enabled and end device is successfully able to SSH into it.
Firewall at router disabled.
Aim:
To install tcpdump and other packages on it without having to enter proxy details at the router.
Problem:
Tried to upload the package and install from OpenWRT GUI. Sucessfully installed libcap (dependency of tcpdump) but not able to install tcpdump.
It throws the following error:
Collected errors: * pkg_hash_check_unresolved: cannot find dependency libpcap for tcpdump * pkg_hash_fetch_best_installation_candidate: Packages for tcpdump found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package tcpdump.
The *opkg install* command failed with code `255`.
Not able to get the log-in page of the proxy from the end device.
It is likely you have installed a snapshot rather than a stable release. I'm basing this on the fact that you made a specific reference to installing LuCI (which is preinstalled on stable release builds), and the error itself:
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.
Downlaod the sysupgrade version from the firmware selector and install it onto your router. Since you have LuCI, you cna use the web interface to do the upgrade (do not keep settings, just as a precaution in case anything has changed that could affect compatibility).
Thanks for the reply. I will try to flash it with a more stable version, and try again. Also, I haven't installed the LuCl seperately. But seeing that it is the most recent version, I guess you are probably right.
Upon searching for the stable release, I couldn't find that for my router RT-AX53U. Searched for OpenWrt 21.02.5 (Released: Wed, 17 Oct 2022) which is stable but couldn't find the file compatible with my device. Can you suggest me any other release for which I can find the file and flash it to router in order to get out of this problem.
No, you didn't misread the model info. The link you sent me is directing me back to the page where I can download the version I have already flashed it with (OpenWrt 22.03.3), which you said can be unstable. In order to get around this problem according to you, I should've installed the old stable version OpenWrt 21.02.5 but I cannot find the file compatible with my device upon searching it. You can also see it here and search for asus_rt-ax53u.
Now, as there are many other releases which I can flash it with. I want a suggestion, as to which release I should download other than these two (OpenWrt 22.03.3, OpenWrt 21.02.5) obviously.
I did not say that the link I provided was unstable. I asserted, apparently incorrectly, that you had installed a snapshot release rather than a stable release version. We see the error you reported from users who have outdated snapshots (because snapshots are built daily, his can happen in as little as 24 hours from the download of the snapshot image from the downloads site)
Since you said (later) that you are running 22.03.3, I do have a follow up question: have you ever upgraded packages on your current install (using opkg upgrade or the LuCI upgrade packages button)?
root@owrt-ap-rt-ax53u:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packag es/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packag es/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
opkg install tcpdump
root@owrt-ap-rt-ax53u:~# opkg install tcpdump
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Installing tcpdump (4.99.3-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/tcpdump_4.99.3-1_mipsel_24kc.ipk
Installing libpcap1 (1.10.3-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libpcap1_1.10.3-1_mipsel_24kc.ipk
Configuring libpcap1.
Configuring tcpdump.
Upgrading packages (via the CLI opkg upgrade command or the LuCI Upgrade... button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.
Your best bet at this point is to make a backup (it'll save your config files) and then reset the router to defaults. Once that's done, you can restore your backup and you should be able to install packages normally again.