apt 错误消息 ubuntu virtualbox guest

apt 错误消息 ubuntu virtualbox guest

我刚刚在 Virtual Box Mac 上安装了 Ubuntu(最小安装)。我无法通过 apt 安装任何软件。它显示错误消息

E: Unable to locate package cmatrix

我以前遇到过这个问题,后来通过更新 snapd 解决了(我删除了虚拟机)。现在我尝试更新 snapd 时,它出现了错误。然后错误消失了。但什么都没变。我也试过了,sudo apt update但失败了

E: some index files failed to download

编辑: 我试过了如何恢复默认存储库? 但它什么也没做

以下是新的完整错误信息

注意:我之前做过这个更改,但似乎没有保存,因为它回到了nz.archive.ubuntu.com

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/restricted/source/by-hash/SHA256/e4c92ef2e003ed3264e76c7df048b5b635c595c5ce10680b3f89761a01695ff1  File has unexpected size (13183 != 6472). Mirror sync in progress? [IP: 91.189.88.152 80]
   Hashes of expected file:
    - Filesize:6472 [weak]
    - SHA256:e4c92ef2e003ed3264e76c7df048b5b635c595c5ce10680b3f89761a01695ff1
    - SHA1:57fab19d8cee8a3feaf7c84420350094f9937785 [weak]
    - MD5Sum:55c93c10aa16a7e26010fa7bd55c7294 [weak]
   Release file created at: Thu, 23 Apr 2020 17:33:17 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/universe/binary-i386/by-hash/SHA256/a00e79d71544f34be89543e090ccafce943577e1a1b997780c07bb75766750b3  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/universe/dep11/by-hash/SHA256/7c5810c7adbacd42400848d09af06dad52ce4597b16f9e7fa36141375f40da24  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/universe/dep11/by-hash/SHA256/52805f5b7237153f9b4173b0bfe51917175eff5ca0f9feeb6d4dfcdd88918f70  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/universe/dep11/by-hash/SHA256/b8a6c70d793758b8e231f5b901156049aa562872fd9df0a807ca3c9df6556d16  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/universe/cnf/by-hash/SHA256/ba4c9cf04162b981885818b1e3b415f841680ff60c1e647adbdd545ab1e7d17b  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/restricted/binary-i386/by-hash/SHA256/cd98f05f351d05500deef4311554710cf9bc1c39a61f198bd4733cafc9a38c98  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/binary-i386/by-hash/SHA256/b504fbe86bb3a8ade20fcffcfc9036c732ab5f198c40d5a6a5a5685d20058966  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/binary-amd64/by-hash/SHA256/233757b7df68e16c18ccad612ff13a8bb68fc36ac6d35f13427cafd70d8b5d42  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/i18n/by-hash/SHA256/224cafd684a26e8bce3dfca4daf33b853c9273d13e4ada6161ce9ef38f1a567c  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/dep11/by-hash/SHA256/d3eb7ca9f47c55f0031d59664a1b53f03ce3461ad565e3e568e00ff5a41f4fc3  
E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

我修好了它,我真是太蠢了。所以我无法访问该网站,然后我修好了它,然后轰隆隆

我很抱歉造成您的不便

相关内容