尝试从Ubuntu的deb包里提取出来二进制文件移到安卓上 最终发现不可行

https://packages.ubuntu.com/en/focal/arm64/fastboot/download

https://packages.ubuntu.com/focal/arm64/tree/download

这个页面不能下载

You can download the requested file from the pool/universe/t/tree/ subdirectory at any of these sites:

Note that in some browsers you will need to tell your browser you want the file saved to a file. For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.

您可以从以下任意站点的pool/universe/t/tree/子目录下载请求的文件:

这里的站点不知道为什么没了

发现是个bug,arm的都没有,只有amd64的,而且还在修复中https://bugs.launchpad.net/pkg-website/+bug/1921951 修复了好几年了。。。

请注意,在某些浏览器中,您需要告诉您的浏览器您希望将文件保存到一个文件中。例如,在 Firefox 或 Mozilla 中,单击 URL 时应该按住 Shift 键。

 

 

 

然后到这个网站

https://launchpad.net/ubuntu/noble/arm64/tree/2.1.1-2

Package relationships
Depends on:
libc6 (>= 2.38)

虽然写着需要libc6,libc.so.6,但是我还是下载下来提取,移到手机上尝试了一下

结果果然不行

file /data/local/tmp/tree
/data/local/tmp/tree: ELF shared object, 64-bit LSB arm64, dynamic (/lib/ld-linux-aarch64.so.1), BuildID=07d26fef2ee2fffbc712158a846e8b1acc6f363c, stripped

 

:/ $ /data/local/tmp/tree
/system/bin/sh: /data/local/tmp/tree: No such file or directory

No such file or directory好像是因为链接器没找到

posted @ 2024-02-21 23:46  hrdom  阅读(14)  评论(0编辑  收藏  举报