KyleRicardo / MentoHUST-OpenWrt-ipk

MentoHUST-OpenWrt-ipk包
291 stars 79 forks source link

更新 feeds 时出错 #17

Closed Oniokey closed 1 year ago

Oniokey commented 1 year ago

在执行./scripts/feeds update -a之后出现

…… Checking` 'python3-distutils'... failed. …… Build dependency: Please install the Python3 distutils module Prerequisite check failed. Use FORCE=1 to override. make: *** [/home/oniokey/下载/openwrt-sdk-ramips-mt7621/include/toplevel.mk:181:/home/oniokey/下载/openwrt-sdk-ramips-mt7621/staging_dir/host/.prereq-build] 错误 1 /home/oniokey/下载/openwrt-sdk-ramips-mt7621/staging_dir/host/bin/sed: 行 5: /home/oniokey/下载/openwrt-sdk-ramips-mt7621/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2:无法执行二进制文件: 可执行文件格式错误 ……

后续的步骤中也出现了

Build dependency: Please install the Python3 distutils module 等类似的错误

系统是 Ubuntu 20.04.5 LTS 运行在 MacBook Pro M1 Parallels Desktop 18 上

KyleRicardo commented 1 year ago

Try sudo apt-get install python3-distutils.

Oniokey commented 1 year ago

感谢作者秒回,尝试后,依旧出现错误

Create index file './feeds/base.index' /home/oniokey/下载/openwrt/staging_dir/host/bin/xargs: 行 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2:无法执行二进制文件: 可执行文件格式错误 /home/oniokey/下载/openwrt/staging_dir/host/bin/xargs: 行 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: 成功 /home/oniokey/下载/openwrt/staging_dir/host/bin/sed: 行 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2:无法执行二进制文件: 可执行文件格式错误 ……

且忽略该错误继续执行./scripts/feeds install libpcap时出现如下错误

/home/oniokey/下载/openwrt/staging_dir/host/bin/sed: line 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: cannot execute binary file: Exec format error /home/oniokey/下载/openwrt/staging_dir/host/bin/sed: line 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: Success /home/oniokey/下载/openwrt/staging_dir/host/bin/sed: line 5: /home/oniokey/下载/openwrt/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: cannot execute binary file: Exec format error ……

KyleRicardo commented 1 year ago

提供一下你的路由器具体型号,我在我的虚拟机中帮你看一眼编译过程。似乎你的SDK里的executable bin的arch不对。

Oniokey commented 1 year ago

小米 AC2100 执行cat /etc/openwrt_release显示的信息

DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='SNAPSHOT' DISTRIB_TARGET='ramips/mt7621' DISTRIB_ARCH='mipsel_24kc' DISTRIB_TAINTS='no-all' DISTRIB_REVISION='R22.3.13' DISTRIB_DESCRIPTION='bleach stable build 20220322 @ OpenWrt '

KyleRicardo commented 1 year ago

这个型号比较常见,如果你不想花时间在编译上面,正好可以看看 #16 Release的版本。

Oniokey commented 1 year ago

好的,感谢