在Google计算引擎上的Ubuntu上安装armhf软件包

我遵循Debian的Multiarch HOWTO来安装libcholmod3:armhf 。 我运行dpkg --add-architecture armhf但是现在如果我运行sudo apt-get update我得到一个错误:

 $ sudo apt-get update [...] Reading package lists... Done E: Failed to fetch http://europe-west1.gce.archive.ubuntu.com/ubuntu/dists/zesty/main/binary-armhf/Packages 404 Not Found [IP: 192.158.31.252 80] E: Failed to fetch http://europe-west1.gce.archive.ubuntu.com/ubuntu/dists/zesty-updates/main/binary-armhf/Packages 404 Not Found [IP: 192.158.31.252 80] E: Failed to fetch http://europe-west1.gce.archive.ubuntu.com/ubuntu/dists/zesty-backports/main/binary-armhf/Packages 404 Not Found [IP: 192.158.31.252 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.26 80] E: Some index files failed to download. They have been ignored, or old ones used instead. 

我看到http://europe-west1.gce.archive.ubuntu.com/ubuntu/dists/zesty/main/缺lessbinary-armhf目录。 在Google Compute Engine平台上安装armhf软件包的正确方法是什么?

有两个明显的问题:

1.运行apt-get update时提取失败。

这实际上不是一个问题。 正如消息所说,错误只是被忽略。 错误消除了在/etc/apt/sources.list每一行添加“[arch = amd64]”,如https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources

2.这些提取失败消息中的URLs似乎缺lessarmhf的事实。

我做了一个grep europe-west1 /etc -R/etc/apt/sources.list出现。 在文件顶部有几个选项可以进行更改:

 ## if you wish to make changes you can: ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg ## or do the same in user-data ## b.) add sources in /etc/apt/sources.list.d ## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl 

要在amd64 Google平台云计算机上为armhf设置Multiarch,请使用以上某个选项添加以下源代码:

 deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports zesty main universe