dpkg add armhf architecture 不起作用 - 404 未找到

dpkg add armhf architecture 不起作用 - 404 未找到

在新的 ubuntu 14.04 docker 容器中,我尝试将 armhf 架构添加到 dpkg,以便使用 apt-get 安装一些 armhf 库。
运行结果如下:

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

我收到了:

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.

我在 debian jessie 容器上尝试过,效果很好。
任何帮助都非常感谢 =)

答案1

我刚刚遇到了这个问题。您需要将源列表中的各个 deb(不是 deb-src)行标记为 [arch=amd64, arch=i386],但为 armhf 软件包添加的站点除外,该站点需要标记为 [arch=armhf]。

话虽如此,请谨慎行事。我正在precise上尝试这个,当我尝试安装时,它想要卸载我的大部分内容,包括导入基础文件,没有这些文件系统就无法工作。

当然,这可能根本不适用于你。

祝你好运。

相关内容