我在 Linux v1 (WSL) 的 Windows 子系统上运行 Kali Linux。如果这意味着什么的话,这在 WSL v2 上也失败了。我有一个想要运行的 ARM aarch64 二进制文件。我有 qemu 用户模式,我尝试运行它,qemu-aarch64 -L /usr/aarch64-linux-gnu/ binary_name
但收到错误
/lib/ld-musl-aarch64.so.1: No such file or directory
我已经安装了软件包
sudo apt-get install install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static libc6-dev-arm64-cross gcc-aarch64-linux-gnu
musl
要在 Debian 系统上获取 ARM64 库,我还需要什么?
抱歉,如果我问错了问题,我对 qemu 用户模式真的很陌生。
编辑:
$ dpkg --print-foreign-architectures
arm64
$ sudo apt update
Hit:2 https://download.sublimetext.com apt/stable/ InRelease
Hit:1 http://kali.download/kali kali-rolling InRelease
Get:3 http://kali.download/kali kali-rolling/main arm64 Packages [16.7 MB]
Ign:3 http://kali.download/kali kali-rolling/main arm64 Packages
Get:4 http://kali.download/kali kali-rolling/non-free arm64 Packages [143 kB]
Get:4 http://kali.download/kali kali-rolling/non-free arm64 Packages [143 kB]
Ign:4 http://kali.download/kali kali-rolling/non-free arm64 Packages
Ign:3 http://http.kali.org/kali kali-rolling/main arm64 Packages
Ign:4 http://http.kali.org/kali kali-rolling/non-free arm64 Packages
Err:3 http://http.kali.org/kali kali-rolling/main arm64 Packages
File has unexpected size (16750562 != 16747652). Mirror sync in progress? [IP: <IP>]
18% [Working]E: Transaction http://http.kali.org/kali/dists/kali-rolling/InRelease was already aborted and is aborted again
Err:4 http://http.kali.org/kali kali-rolling/non-free arm64 Packages
File has unexpected size (143487 != 143485). Mirror sync in progress? [IP: <IP>]
Reading package lists... Done
E: Transaction http://http.kali.org/kali/dists/kali-rolling/InRelease was already aborted and is aborted again
$ sudo apt install musl_arm64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package musl_arm64
答案1
您需要启用该arm64
架构:
sudo dpkg --add-architecture arm64
然后更新包索引:
sudo apt update
更新完成后成功地(您的编辑中并非如此),您将能够musl
安装arm64
:
sudo apt install musl:arm64