3 votes

dpkg add armhf architecture ne fonctionne pas - 404 not found

Dans un nouveau conteneur docker ubuntu 14.04, j'essaie d'ajouter l'architecture armhf à dpkg afin d'installer des bibliothèques armhf à l'aide d'apt-get.
En raison de la course à pied :

root@2a5e4bdf05b7:/# dpkg --add-architecture armhf
root@2a5e4bdf05b7:/# apt-get update

J'ai reçu :

Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty-proposed InRelease
Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Get:4 http://archive.ubuntu.com trusty-proposed Release.gpg [933 B]
Get:5 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:6 http://archive.ubuntu.com trusty-updates Release [59.7 kB]
Get:7 http://archive.ubuntu.com trusty-security Release [59.7 kB]
Get:8 http://archive.ubuntu.com trusty-proposed Release [110 kB]
Get:9 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:10 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:11 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:12 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]          
Get:13 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]    
Get:14 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]      
Get:15 http://archive.ubuntu.com trusty-updates/main Sources [161 kB]          
Get:16 http://archive.ubuntu.com trusty-updates/restricted Sources [1250 B]    
Get:17 http://archive.ubuntu.com trusty-updates/universe Sources [107 kB]      
Get:18 http://archive.ubuntu.com trusty-updates/main amd64 Packages [428 kB]   
Get:19 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [6341 B]
Get:20 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [271 kB]
Get:21 http://archive.ubuntu.com trusty-security/main Sources [55.9 kB]        
Get:22 http://archive.ubuntu.com trusty-security/restricted Sources [40 B]     
Get:23 http://archive.ubuntu.com trusty-security/universe Sources [11.4 kB]    
Get:24 http://archive.ubuntu.com trusty-security/main amd64 Packages [185 kB]  
Get:25 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [40 B]
Get:26 http://archive.ubuntu.com trusty-security/universe amd64 Packages [60.6 kB]
Get:27 http://archive.ubuntu.com trusty-proposed/main amd64 Packages [180 kB]  
Get:28 http://archive.ubuntu.com trusty-proposed/restricted amd64 Packages [40 B]
Err http://archive.ubuntu.com trusty/main armhf Packages                       
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty/restricted armhf Packages                 
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty/universe armhf Packages                   
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-updates/main armhf Packages               
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-updates/restricted armhf Packages         
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-updates/universe armhf Packages           
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-security/main armhf Packages              
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-security/restricted armhf Packages        
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-security/universe armhf Packages          
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-proposed/main armhf Packages              
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-proposed/restricted armhf Packages        
  404  Not Found [IP: 91.189.88.149 80]
Fetched 20.4 MB in 23s (858 kB/s)                                              
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-proposed/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-proposed/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

J'ai essayé sur un conteneur debian jessie et cela a bien fonctionné.
Toute aide est appréciée =)

0voto

Hack Saw Points 293

Je viens de tomber sur ceci. Vous devez marquer les différentes lignes deb (pas deb-src) dans votre liste de sources avec [arch=amd64, arch=i386] pour toutes sauf le site que vous avez ajouté pour les paquets armhf, qui devrait être marqué avec [arch=armhf].

Cela dit, il convient de faire preuve de prudence. Je suis en train de l'essayer sur precise, et quand j'essaie de l'installer, il veut désinstaller la plupart de mes trucs, y compris les fichiers de base d'importation sans lesquels le système ne peut pas fonctionner.

Bien entendu, il se peut que cela ne vous concerne pas du tout.

Bonne chance.

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X