Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opkg report "incompatible with the architectures configured" if dependency is not met. #3

Open
1 task done
zcattacz opened this issue Jun 13, 2023 · 5 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@zcattacz
Copy link

Describe the bug

This bug is very misleading to new user and inexperienced users.
pkg_hash_fetch_best_installation_candidate report "but incompatible with the architectures configured" after dependency check failed.
But if dependency has already been installed, opkg works just fine, not reporting any such error.

OpenWrt version

5.10.176

OpenWrt target/subtarget

ramips/mt7620

Device

HiWiFi HC5761

Image kind

Official downloaded image

Steps to reproduce

root@OpenWrt:/tmp/cp# opkg install ./htop_3.2.2-1_mipsel_24kc.ipk 
Unknown package 'htop'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libncurses6 for htop
 * pkg_hash_fetch_best_installation_candidate: Packages for htop found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package htop.

root@OpenWrt:/tmp/cp# opkg install ./bwm-ng_0.6.3-1_mipsel_24kc.ipk 
Installing bwm-ng (0.6.3-1) to root...
Configuring bwm-ng.

Actual behaviour

opkg reports

pkg_hash_fetch_best_installation_candidate: Packages for htop found, but incompatible with the architectures configured

for ipk packages with missing dependency, which is incorrect.

Expected behaviour

pkg_hash_fetch_best_installation_candidate: Packages for htop found.

Additional info

All ipk files downloaded from urls specified in distfeed.conf.

root@OpenWrt:/tmp/cp# opkg print-architecture
arch all 1
arch noarch 1
arch mipsel_24kc 10

Diffconfig

No response

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.
@zcattacz zcattacz added the bug Something isn't working label Jun 13, 2023
@ynezz ynezz transferred this issue from openwrt/openwrt Jun 20, 2023
@MNLierman
Copy link

No news or updates on this bug? Does OpenWRT maintain OPKG or fix bugs at all? Either Entware is based on OpenWRT's package system or OpenWRT is based on Entware, but this bug remains in both versions to this day. I've been trying to figure out WTH, wasted so much time hunting down different versions of packages and trying to install them. Checking permissions, moving them to /jffs or back to the thumbdrive, and nothing. I even added "arch all" and "arch [exactlywhatipksays]" and that didn't work either. Then I find that this is a bug, due to missing dependencies.

@jow-
Copy link
Contributor

jow- commented Sep 26, 2024

Opkg within OpenWrt is in the process of being phased out, it will likely not receive any further bug fixes.

@MNLierman
Copy link

MNLierman commented Sep 26, 2024 via email

@jow-
Copy link
Contributor

jow- commented Sep 26, 2024

The plan is to replace opkg with apk (Alpine Linux package manager) in OpenWrt.

@MNLierman
Copy link

MNLierman commented Sep 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants