我正在尝试使用 snapcraft cleanbuild 构建一个包,它使用 lxd 在容器中构建一个 snap。不幸的是,它很快就失败了,出现了 http 500 错误。主机能够正常连接,事实上错误消息打印的 URL 实际上是 404,而不是 500。所以我不明白 500 是从哪里来的。
$ snapcraft cleanbuild
"confinement" property not specified: defaulting to "strict"
Creating snapcraft-unyieldingly-multiciliated-vita
Starting snapcraft-unyieldingly-multiciliated-vita
Setting up container with project assets
./
./audacity
./snapcraft.yaml
Waiting for a network connection...
Network connection established
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [213 kB]
Ign:5 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
Ign:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
Ign:5 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
Ign:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
Ign:5 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
Ign:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
Err:5 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
500 Internal Server Error
Ign:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
Fetched 402 kB in 0s (648 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/i18n/Translation-en 500 Internal Server Error
E: Some index files failed to download. They have been ignored, or old ones used instead.
Command '['lxc', 'exec', 'snapcraft-unyieldingly-multiciliated-vita',
'--', 'apt-get', 'update']' returned non-zero exit status 100