Erros no apt-get após inclusão da arquitetura arm para cross compilação [RESOLVIDO]

1. Erros no apt-get após inclusão da arquitetura arm para cross compilação [RESOLVIDO]

Renan Garcia
renan_garcia

(usa Ubuntu)

Enviado em 16/05/2017 - 16:17h

Olá!
Estou preparando o ambiente de cross compilação e surgiram algumas dúvidas relacionadas a erros encontrados ao rodar o 'sudo apt-get update'.

Eu tenho um sistema ubuntu 16.04 64bits. A minha intenção é compilar programas em C para as arquiteturas i386 e armhf. Para isso, incluí o repositório PPA do toolchains. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/ppa

Feito isso, eu rodei o comando 'sudo apt-get update' e tudo transcorreu bem.

No entanto, depois de adicionar a arquitetura armhf com o comando 'sudo dpkg --add-architecture armhf' começaram a aparecer alguns erros quando eu executo o 'sudo apt-get update':


Atingido:1 http://br.archive.ubuntu.com/ubuntu xenial InRelease
Obter:2 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Obter:3 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Ign:4 http://br.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://br.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://br.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:7 http://br.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:4 http://br.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://br.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://br.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:7 http://br.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:4 http://br.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://br.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://br.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Obter:8 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [534 kB]
Obter:9 http://br.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [519 kB]
Ign:10 http://br.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Atingido:11 https://deb.nodesource.com/node_6.x xenial InRelease
Obter:12 http://br.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [217 kB]
Obter:13 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [298 kB]
Obter:14 http://br.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [192 kB]
Ign:15 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Obter:16 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [464 kB]
Obter:17 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [450 kB]
Ign:18 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Obter:19 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [160 kB]
Obter:20 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [188 kB]
Ign:21 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Obter:22 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.520 B]
Ign:7 http://br.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Err:4 http://br.archive.ubuntu.com/ubuntu xenial/main armhf Packages
404 Not Found [IP: 200.236.31.4 80]
Ign:5 http://br.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://br.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:10 http://br.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:15 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Ign:23 http://br.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Obter:24 http://br.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3.324 B]
Ign:25 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:18 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:21 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Ign:7 http://br.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:10 http://br.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:15 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Ign:23 http://br.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:25 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:18 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:21 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Err:10 http://br.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
404 Not Found [IP: 200.236.31.4 80]
Ign:15 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Ign:23 http://br.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:25 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:18 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:21 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Err:23 http://br.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
404 Not Found [IP: 200.236.31.4 80]
Ign:25 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Atingido:26 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu xenial InRelease
Obter:27 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Atingido:28 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
Obter:29 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [262 kB]
Obter:30 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [250 kB]
Ign:31 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Obter:32 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [111 kB]
Obter:33 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54,6 kB]
Obter:34 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [39,7 kB]
Ign:35 http://security.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:36 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Obter:37 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [32,2 kB]
Obter:38 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [37,0 kB]
Ign:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Ign:31 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:35 http://security.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:36 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Ign:31 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:35 http://security.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:36 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Err:31 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
404 Not Found [IP: 91.189.88.149 80]
Ign:35 http://security.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:36 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Baixados 306 kB em 3s (87,0 kB/s)
Lendo listas de pacotes... Pronto
E: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-armhf/Packages 404 Not Found [IP: 200.236.31.4 80]
E: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-armhf/Packages 404 Not Found [IP: 200.236.31.4 80]
E: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-armhf/Packages 404 Not Found [IP: 200.236.31.4 80]
E: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-armhf/Packages 404 Not Found [IP: 91.189.88.149 80]
E: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.


A princípio eu não tive problemas para instalar os pacotes de de cross compilação com o comando: 'sudo apt-get install crossbuild-essential-armhf' , mas eu gostaria de entender o porque o apt-get loga esses erros e se eles representam um problema. Caso não seja um problema, gostaria de resolver esses logs para que eles não apareçam toda vez que eu mandar atualizar o sistema.

Já agradeço a quem puder me esclarecer essas questões.
Abraço a todos!


  


2. Re: Erros no apt-get após inclusão da arquitetura arm para cross compilação [RESOLVIDO]

Renan Garcia
renan_garcia

(usa Ubuntu)

Enviado em 19/05/2017 - 13:50h


Pessoal... consegui resolver o problema.
Na verdade, mesmo havendo o repositório PPA para os arquivos da arquitetura arm, o apt estava buscando nos mirrors oficias por que eu não havia especificado a arquitetura correta.

Resolvi isso alterando o source.list para buscar somente as outras arquiteturas:
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial main restricted
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial universe
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial multiverse
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb [arch=amd64,i386] http://br.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu xenial-security main restricted
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu xenial-security universe
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu xenial-security multiverse


Existe alguma consideração a ser feita sobre essa solução?
Grato



3. Re: Erros no apt-get após inclusão da arquitetura arm para cross compilação [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 19/05/2017 - 13:56h

Você vai usar a compilação cruzada?

----------------------------------------------------------------------------------------------------------------
Nem direita, nem esquerda. Quando se trata de corrupção o Brasil é ambidestro.
(anônimo)

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden



4. Re: Erros no apt-get após inclusão da arquitetura arm para cross compilação [RESOLVIDO]

Renan Garcia
renan_garcia

(usa Ubuntu)

Enviado em 19/05/2017 - 13:59h

listeiro_037 escreveu:

Você vai usar a compilação cruzada?


Sim. Até o momento não tive nenhum problema na compilação.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts