{"id":217,"date":"2018-11-05T15:32:10","date_gmt":"2018-11-05T15:32:10","guid":{"rendered":"http:\/\/web.recologypower.com:9080\/?p=217"},"modified":"2018-11-05T15:34:50","modified_gmt":"2018-11-05T15:34:50","slug":"pkg_hash_fetch_best_installation_candidate-packages-for-python-found-but-incompatible-with-the-architectures-configured","status":"publish","type":"post","link":"http:\/\/www.recologypower.com:9080\/?p=217","title":{"rendered":"pkg_hash_fetch_best_installation_candidate: Packages for python found, but incompatible with the architectures configured"},"content":{"rendered":"<p>Unknown package &#8216;python&#8217;.<br \/>\nCollected errors:<\/p>\n<p>* pkg_hash_fetch_best_installation_candidate: Packages for python found, but incompatible with the architectures configured<br \/>\n* opkg_install_cmd: Cannot install package python.<\/p>\n<p>\u5728\u5b89\u88c5Python\u7684\u65f6\u5019\u63d0\u793a\u8fd9\u79cd\u9519\u8bef\u8ba9\u6211\u5f88\u5947\u602a\uff0c\u56e0\u4e3a\u8fd9\u4e2aipk\u5b89\u88c5\u5305\u662f\u6211\u5728\u56fa\u4ef6\u4e0b\u7f16\u8bd1\u751f\u6210\u7684\uff0c\u600e\u4e48\u4f1a\u67b6\u6784\u4e0d\u7b26\u5408\u5462\u3002<\/p>\n<p>\u767e\u601d\u4e0d\u5f97\u3002\u95ee\u4e86\u597d\u591a\u4eba\uff0c\u89c9\u5f97\u83ab\u540d\u5176\u5999\u3002\u540e\u6765\u60f3\u60f3\uff0c\u8fd9\u4e2a\u662f\u8ddf\u6e90\u6709\u5173\u554a\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>python_2.7.15-1_mipsel_24kc.ipk<\/p>\n<p>\u6839\u636eIPK\u5305\uff0c\u5728OPKG.CONF\u6dfb\u52a0\u76f8\u5e94\u7684\u8f6f\u4ef6\u5b89\u88c5\u67b6\u6784\u3002<\/p>\n<pre class=\"brush:other\">\/\/\u6307\u4ee4\r\nvim \/etc\/opkg.conf<\/pre>\n<p>\u4fee\u6539\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-218\" src=\"http:\/\/web.recologypower.com:9080\/wp-content\/uploads\/2018\/11\/TIM\u622a\u56fe20181105233000-300x248.png\" alt=\"\" width=\"300\" height=\"248\" srcset=\"http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2018\/11\/TIM\u622a\u56fe20181105233000-300x248.png 300w, http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2018\/11\/TIM\u622a\u56fe20181105233000.png 359w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"openwrt-dist\">OpenWRT-dist<\/h1>\n<h4 id=\"_1\">\u76ee\u5f55\u5217\u8868:<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u76ee\u5f55<\/th>\n<th>\u7b80\u4ecb<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/sourceforge.net\/projects\/openwrt-dist\/files\/chinadns-c\/\">chinadns-c<\/a><\/td>\n<td>\u65e0\u9700\u670d\u52a1\u5668\u7684\u53cd DNS \u6c61\u67d3\u65b9\u6848 &#8211;\u00a0<a href=\"https:\/\/github.com\/aa65535\/openwrt-chinadns\" rel=\"nofollow\">@GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/sourceforge.net\/projects\/openwrt-dist\/files\/dnsmasq\/\">dnsmasq<\/a><\/td>\n<td>\u6dfb\u52a0\u4e86 ChinaDNS \u529f\u80fd\u7684 Dnsmasq &#8211;\u00a0<a href=\"https:\/\/github.com\/aa65535\/openwrt-dnsmasq\" rel=\"nofollow\">@GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/sourceforge.net\/projects\/openwrt-dist\/files\/shadowsocks-libev\/\">shadowsocks-libev<\/a><\/td>\n<td>\u6dfb\u52a0\u4e86 ss-rules, \u56fd\u5185\u6d41\u91cf\u4e0d\u8d70\u4ee3\u7406 &#8211;\u00a0<a href=\"https:\/\/github.com\/aa65535\/openwrt-shadowsocks\" rel=\"nofollow\">@GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/sourceforge.net\/projects\/openwrt-dist\/files\/depends-libs\/\">depends-libs<\/a><\/td>\n<td>\u63d0\u4f9b\u76f8\u5e94\u7684\u4f9d\u8d56\u5305\u4e0b\u8f7d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"_2\">\u67b6\u6784\u5217\u8868:<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u67b6\u6784<\/th>\n<th>CPU\u578b\u53f7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.qualcomm.ar71xx\" rel=\"nofollow\">ar71xx<\/a><\/td>\n<td>AR7xxx\/AR9xxx\/QCA9xxx<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.qualcomm.ar5xxx\" rel=\"nofollow\">atheros<\/a><\/td>\n<td>AR231x\/AR5xxx<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.broadcom.bcm53xx\" rel=\"nofollow\">bcm53xx<\/a><\/td>\n<td>BCM47xx\/53xx (ARM CPU)<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.broadcom.bcm47xx\" rel=\"nofollow\">brcm47xx<\/a><\/td>\n<td>BCM47xx\/53xx (MIPS)<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.broadcom.bcm63xx\" rel=\"nofollow\">brcm63xx<\/a><\/td>\n<td>BCM63xx<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/wiki.openwrt.org\/doc\/hardware\/soc\/soc.ralink\" rel=\"nofollow\">ramips_24kec<\/a><\/td>\n<td>RT3x5x\/RT5350\/MT7620a\/MT7620n\/MT7621<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"_3\">\u5b89\u88c5\u8bf4\u660e:<\/h4>\n<blockquote><p>\u6ce8: \u4e0b\u6587\u4e2d\u00a0<code>packagename<\/code>\u00a0\u548c\u00a0<code>initname<\/code>\u00a0\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539<\/p><\/blockquote>\n<ul>\n<li><strong>\u81ea\u52a8\u5b89\u88c5<\/strong>\n<ol>\n<li>\u5c06\u4e0b\u8f7d\u7684IPK\u4e0a\u4f20\u81f3\u8def\u7531\u5668, \u6216\u8005\u76f4\u63a5\u5728\u8def\u7531\u5668\u4f7f\u7528 wget \u4e0b\u8f7d;<\/li>\n<li>SSH \u767b\u5f55\u5230\u8def\u7531\u5668, \u4f7f\u7528\u00a0<code>opkg install {packagename}.ipk<\/code>\u00a0\u5b89\u88c5;<\/li>\n<li>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u540e\u4f7f\u7528\u00a0<code>\/etc\/init.d\/{initname} start<\/code>\u00a0\u547d\u4ee4\u542f\u52a8.<\/li>\n<\/ol>\n<blockquote><p>\u5f53\u67b6\u6784\u4e0d\u517c\u5bb9\u65f6\u4f1a\u63d0\u793a\u00a0<code>but incompatible with the architectures configured<\/code>,<br \/>\n\u6b64\u79cd\u60c5\u51b5\u4e00\u822c\u5728\u00a0<code>ramips_24kec<\/code>\u00a0\u67b6\u6784\u7684\u8f6f\u4ef6\u5305\u5b89\u88c5\u65f6\u51fa\u73b0.<br \/>\n\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91\u00a0<code>\/etc\/opkg.conf<\/code>\u00a0\u8c03\u6574\u67b6\u6784\u652f\u6301,<br \/>\n\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0(\u4e5f\u53ef\u4ee5\u5728 LuCI \u8bbe\u7f6e\u9875\u9762\u4fee\u6539):<\/p>\n<blockquote><p><code>arch all 100<\/code><br \/>\n<code>arch ramips 200<\/code><br \/>\n<code>arch ramips_24kec 300<\/code><\/p><\/blockquote>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\u4f7f\u7528\u00a0<code>opkg update<\/code>\u00a0\u66f4\u65b0\u4e00\u6b21<br \/>\n\u518d\u6b21\u4f7f\u7528\u00a0<code>opkg install {packagename}.ipk<\/code>\u00a0\u5b89\u88c5<\/p><\/blockquote>\n<\/li>\n<li><strong>\u624b\u52a8\u5b89\u88c5<\/strong>\n<ol>\n<li>\u89e3\u538b ipk \u5305:\u00a0<code>tar xzf {packagename}.ipk<\/code><\/li>\n<li>\u89e3\u538b data \u5305\u5b8c\u6210\u6700\u7ec8\u5b89\u88c5:\u00a0<code>tar xzf data.tar.gz -C \/<\/code><\/li>\n<li>\u5220\u9664\u5b89\u88c5\u5305\u6b8b\u7559:\u00a0<code>rm {packagename}.ipk control.tar.gz data.tar.gz debian-binary<\/code><\/li>\n<\/ol>\n<blockquote><p>\u6ce8: \u4e0a\u9762 3 \u6761\u547d\u4ee4\u6ce8\u610f\u590d\u5236\u5b8c\u6574\u5e76\u66ff\u6362\u00a0<code>packagename<\/code><br \/>\n\u624b\u52a8\u5b89\u88c5\u540e\u6ca1\u6709\u5378\u8f7d\u4fe1\u606f, \u5efa\u8bae\u53ea\u5728\u81ea\u52a8\u5b89\u88c5\u5931\u8d25\u65f6\u4f7f\u7528<br \/>\n\u5982\u9700\u8981\u5378\u8f7d, \u53ef\u4ee5\u76f4\u63a5\u5220\u9664\u6b65\u9aa4 2 \u4e2d\u89e3\u538b\u51fa\u7684\u6587\u4ef6<\/p><\/blockquote>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"slide-text-bg2\">\n<h3>Unknown package &amp;#82<\/h3>\n<\/div>\n<div class=\"flex-btn-div\"><a href=\"http:\/\/www.recologypower.com:9080\/?p=217\" class=\"btn1 flex-btn\">\u9605\u8bfb\u66f4\u591a<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/217"}],"collection":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":2,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":220,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions\/220"}],"wp:attachment":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}