# Opkg incompatible architectures error

**URL:** <https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476>\
**Category:** Installing and Using OpenWrt\
**Created:** [May 6, 2019, 12:43pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476 "2019-05-06T12:43:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldnelso2](https://forum.openwrt.org/letter_avatar/ldnelso2/32/5_5575768a8748004e209b776fc1b2916d.png) [@ldnelso2](https://forum.openwrt.org/u/ldnelso2)\
**Post date:** [May 6, 2019, 12:43pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/1 "2019-05-06T12:43:42Z")

</div>

I am working on an Arduino Yun Rev2, and trying to isntall the [AWS IoT SDK from Github](https://github.com/aws/aws-iot-device-sdk-arduino-yun).

There is a list of opkg packages on the arduino website (and I also on others), but I am getting an error when trying to install the package 'distribute'

List of packages:  
[http://downloads.arduino.cc/openwrtyun/1/packages/](http://downloads.arduino.cc/openwrtyun/1/packages/)

```
$ opkg install distribute_0.6.21-1_ar71xx.ipk 
Unknown package 'distribute'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for distribute found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package distribute.

```

So, it seems strange that the file wouldn't be cross compiled for the mips\_24kc architecture if it is on the arduino yun website, and the other packages seem to compile just fine on the Yun.

```
cat /etc/openwrt_release
DISTRIB_ID='LEDEYun'
DISTRIB_RELEASE='17.11'
DISTRIB_REVISION='r6773+1-8dd3a6e'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDEYun 17.11 r6773+1-8dd3a6e'
DISTRIB_TAINTS='busybox'

```

Most probably I could find the source and cross compile it for the yun, but that well beyond my abilities. Any help or ideas on how to get a copy fo the .ipk file for that package compiled for the yun archiecture would be super helpful.

As an fyi, it looks like my opkg feeds are standard and seems like the package should just install:

```
$ cat opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature 1

```

---

<div class="post-metadata">

**Author:** ![mikma](https://forum.openwrt.org/letter_avatar/mikma/32/5_5575768a8748004e209b776fc1b2916d.png) [@mikma](https://forum.openwrt.org/u/mikma)\
**Post date:** [May 6, 2019, 1:13pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/2 "2019-05-06T13:13:44Z")

</div>

The architecture specified in that package is ar71xx, which seems wrong. Shouldn't it be mips\_24kc?

From control in control.tar.gz in distribute\_0.6.21-1\_ar71xx.ipk:

```
Package: distribute
Version: 0.6.21-1
Depends: libc, python
Provides: setuptools
Source: feeds/packages/lang/distribute
Section: lang
Status: unknown ok not-installed
Essential: no
Priority: optional
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
Architecture: ar71xx
Installed-Size: 153419
Description: Distribute (fork of Setuptools) is a collection of extensions to Distutils

```

---

<div class="post-metadata">

**Author:** ![ldnelso2](https://forum.openwrt.org/letter_avatar/ldnelso2/32/5_5575768a8748004e209b776fc1b2916d.png) [@ldnelso2](https://forum.openwrt.org/u/ldnelso2)\
**Post date:** [May 6, 2019, 7:38pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/3 "2019-05-06T19:38:24Z")

</div>

Okay - that makes sense. Do you know where I could find an available version of distribute for mips\_24kc?

---

<div class="post-metadata">

**Author:** ![ldnelso2](https://forum.openwrt.org/letter_avatar/ldnelso2/32/5_5575768a8748004e209b776fc1b2916d.png) [@ldnelso2](https://forum.openwrt.org/u/ldnelso2)\
**Post date:** [May 6, 2019, 7:40pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/4 "2019-05-06T19:40:50Z")

</div>

This page doesn't seem to have distribute in the package list:

[https://downloads.openwrt.org/snapshots/packages/mips\_24kc/packages/](https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/)

---

<div class="post-metadata">

**Author:** ![lleachii](https://forum.openwrt.org/letter_avatar/lleachii/32/5_5575768a8748004e209b776fc1b2916d.png) [@lleachii](https://forum.openwrt.org/u/lleachii)\
**Post date:** [May 6, 2019, 8:49pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/5 "2019-05-06T20:49:59Z")

</div>

> [@ldnelso2](#):
>
> I am getting an error when trying to install the package 'distribute'

> [@ldnelso2](#):
>
> This page doesn't seem to have distribute in the package list

You would get an error. There's no such software named "distribute" in the [**Table of Packages.**](https://openwrt.org/packages/table/start?dataflt%5BName_pkg-dependencies*~%5D=distribute)

---

<div class="post-metadata">

**Author:** ![ldnelso2](https://forum.openwrt.org/letter_avatar/ldnelso2/32/5_5575768a8748004e209b776fc1b2916d.png) [@ldnelso2](https://forum.openwrt.org/u/ldnelso2)\
**Post date:** [May 7, 2019, 12:26pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/6 "2019-05-07T12:26:36Z")

</div>

Ahh - I see. So, basicaly if I wanted to install distribute, I would have to figure out how to cross compile it on my own. hmm... thanks!

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [May 17, 2019, 12:28pm UTC](https://forum.openwrt.org/t/opkg-incompatible-architectures-error/36476/7 "2019-05-17T12:28:27Z")

</div>

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