我有一个包含 ubuntu 16.04 和 18.04 的本地存储库,但 18.04 运行不正常,我们使用这个 source.list:
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic bionic main restricted universe multiverse
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-updates bionic-updates main restricted universe multiverse
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-backports bionic-backports main restricted universe multiverse
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-security bionic-security main restricted multiverse restricted
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-proposed bionic-proposed main restricted universe multiverse
错误如下:
Err:8 http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-security bionic-security/main amd64 DEP-11 Metadata
File has unexpected size (3541 != 204). Mirror sync in progress? [IP: 172.22.29.45 80]
Hashes of expected file:
- Filesize:204 [weak]
- SHA256:c52cce5fb5a2a386224fe297d20e47786e11f72e7bcf3c2cf8ec6a54ca724315
- SHA1:788fc9972a69cf1e84b2be50d7b0e05c3b67f58e [weak]
- MD5Sum:85a92be526a2f6bed09a79e4b8f3adc3 [weak]
Release file created at: Mon, 14 May 2018 13:29:23 +0000
Reading package lists... Done
E: Failed to fetch http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-security/dists/bionic-security/main/dep11/Components-amd64.yml.xz File has unexpected size (3541 != 204). Mirror sync in progress? [IP: 172.22.29.45 80]
Hashes of expected file:
- Filesize:204 [weak]
- SHA256:c52cce5fb5a2a386224fe297d20e47786e11f72e7bcf3c2cf8ec6a54ca724315
- SHA1:788fc9972a69cf1e84b2be50d7b0e05c3b67f58e [weak]
- MD5Sum:85a92be526a2f6bed09a79e4b8f3adc3 [weak]
Release file created at: Mon, 14 May 2018 13:29:23 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
更新 repo 的脚本昨天已执行,一切正常。
如果我从这一行退出“main”,那么 repo 工作正常:
deb [ arch=amd64 trusted=yes ] http://das-repo.cimex.com.cu/Repositorios/ubuntu/bionic-security bionic-security main restricted multiverse restricted
我该如何解决这个问题?