Eu tenho seguido este guia para configurar meu ambiente, a fim de instalar pacotes para a arquitetura arm64 na minha amd64 máquina, mas eu não fui capaz de fazê-lo.
Eu adicionei o 'arm64' à minha lista de arquiteturas estrangeiras do dpkg.
ubuntu:~$ dpkg --print-foreign-architectures
arm64
Eu adicionei o meu apt-source qualificado ao arquivamento para que minhas fontes agora sejam lidas da seguinte forma:
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb [arch=amd64,arm64] http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb [arch=amd64,arm64] http://security.ubuntu.com/ubuntu xenial-security main restricted
deb [arch=amd64,arm64] http://security.ubuntu.com/ubuntu xenial-security universe
deb [arch=amd64,arm64] http://security.ubuntu.com/ubuntu xenial-security multiverse
Quando executo o sudo apt-get update, recebo o seguinte:
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:8 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:8 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:8 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Err:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Hit:9 https://deb.nodesource.com/node_8.x xenial InRelease
Ign:8 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [632 kB]
Ign:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [305 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [201 kB]
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [171 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [226 kB]
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,892 B]
Ign:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:22 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,136 B]
Ign:19 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:19 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:23 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:24 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [59.9 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [53.2 kB]
Ign:26 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:27 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [48.7 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [69.1 kB]
Ign:23 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:26 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:23 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:26 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Err:23 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
404 Not Found [IP: 91.189.88.162 80]
Ign:26 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Fetched 306 kB in 1s (172 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial- updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial- backports/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E, finalmente, quando tento instalar a biblioteca libdbus-1-dev para o braço 64, O apt não consegue encontrar o pacote.
ubuntu:~$ sudo apt-get install libdbus-1-dev:arm64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdbus-1-dev:arm64
Infelizmente, sou relativamente novo na compilação cruzada. Alguma idéia do que está errado aqui?