opkg fails to install manually downloaded packages

Hannu Nyman hannu.nyman at iki.fi
Fri Apr 30 13:23:12 BST 2021


Sven Roederer kirjoitti 30.4.2021 klo 1.44:
> Am Donnerstag, 29. April 2021, 01:54:34 CEST schrieb Sven Roederer:
>> Using a freshly installed OpenWrt 21.02 fails to install a package that has
>> been downloaded manually. I had seen this initially when using my own image
>> where a package was missing. To fix I copied over with scp and wanted to
>> install with 'opkg <package.ipk>'. It failed, complaining about incompatible
>> arch. rebuilding my image via Imagebuilder made my image work.
>>
>> Initially thought of some faulty config on my board, but was just testing
>> with official build from downloads.openwrt.org and could confirm.
>>
>> Here my console log (taken on TPLink WDR-3600):
>>> -----------------------------------------------------
>>> OpenWrt 21.02.0-rc1, r16046-59980f7aaf
>>> -----------------------------------------------------
>>> root at OpenWrt:~# cd /tmp
>>> root at OpenWrt:/tmp# wget
>>> https://downloads.openwrt.org/releases/21.02.0-rc1/
>> packages/mips_24kc/base/wall_2.36.1-2_mips_24kc.ipk
>>
>>> Downloading 'https://downloads.openwrt.org/releases/21.02.0-rc1/packages/
>> mips_24kc/base/wall_2.36.1-2_mips_24kc.ipk'
>>
>>> Connecting to 168.119.138.211:443
>>> Writing to 'wall_2.36.1-2_mips_24kc.ipk'
>>> wall_2.36.1-2_mips_2 100% |*******************************| 10770
>>> 0:00:00
>> ETA
>>
>>> Download completed (10770 bytes)
>>> root at OpenWrt:/tmp# opkg install /tmp/wall_2.36.1-2_mips_24kc.ipk
>>> Unknown package 'wall'.
>>>
>>> Collected errors:
>>>   * pkg_hash_fetch_best_installation_candidate: Packages for wall found,
>>>   but
>> incompatible with the architectures configured
>>
>>>   * opkg_install_cmd: Cannot install package wall.
>> As far as I can see opkd config looks fine ...
>>
>>> root at OpenWrt:/tmp# opkg print-architecture
>>> arch all 1
>>> arch noarch 1
>>> arch mips_24kc 10
>> Any ideas?
>> I did not check on master yet, but I think it's a blocker for 21.02 release.
>>
> Just did a check on master, which shows the same behavior.
>
>

I wonder if your error is somehow specific to your settings, or some specific 
conditions.

I tested, and I can install downloaded buildbot package .ipks just fine to my 
R7800, both with 21.02 and master, my own builds.


WNDR3700v2 master:

OpenWrt SNAPSHOT, r16599-43dad22025

  -----------------------------------------------------
root at router2:~# cd /tmp
root at router2:/tmp# wgethttps://downloads.openwrt.org/snapshots/packages/mips_24kc/base/wall_2.36.1-2_mips_24kc.ipk
Downloading 'https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/wall_2.36.1-2_mips_24kc.ipk'
Connecting to 2a01:4f8:251:321::2:443
Writing to 'wall_2.36.1-2_mips_24kc.ipk'
wall_2.36.1-2_mips_2 100% |*******************************| 10770   0:00:00 ETA
Download completed (10770 bytes)
root at router2:/tmp# opkg install /tmp/wall_2.36.1-2_mips_24kc.ipk
Installing wall (2.36.1-2) to root...
Configuring wall.


R7800 with 21.02 build:

 OpenWrt 21.02-SNAPSHOT, r16053-f066ee2ad5
 -----------------------------------------------------
root at router1:~# opkg install /tmp/wall_2.36.1-2_arm_cortex-a15_neon-vfpv4.ipk
Installing wall (2.36.1-2) to root...
Configuring wall.





More information about the openwrt-devel mailing list