Raspberry Pi 上的 ufw 安装错误

Raspberry Pi 上的 ufw 安装错误

我在 Raspberry Pi 上尝试安装 ufw 软件包,但收到此错误,我不知道如何处理。

运行后sudo apt install ufw我收到这些错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ufw
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 164 kB of archives.
After this operation, 852 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf ufw all 0.36-1 [164 kB]
Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf ufw all 0.36-1
  File has unexpected size (2567 != 164352). Mirror sync in progress? [IP: *ip here*]
  Hashes of expected file:
   - SHA256:798b91b28eba5a49d3c06f023dcc38be4daa3f2460113acc420882f8d291a4a2
   - SHA1:9ee5e07bd552fccd53e7525c47828a43b2da34e0 [weak]
   - MD5Sum:fd529b954c032fc0839b0aec4e52659a [weak]
   - Filesize:164352 [weak]
E: Failed to fetch https://register.be.xfinity.com/activate?channel=WALLEDGARDEN  File has unexpected size (2567 != 164352). Mirror sync in progress? [IP: *ip here* ]

   Hashes of expected file:
    - SHA256:798b91b28eba5a49d3c06f023dcc38be4daa3f2460113acc420882f8d291a4a2
    - SHA1:9ee5e07bd552fccd53e7525c47828a43b2da34e0 [weak]
    - MD5Sum:fd529b954c032fc0839b0aec4e52659a [weak]
    - Filesize:164352 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

然后我尝试sudo apt install ufw --fix-missing按照建议运行,结果是:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ufw
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 164 kB of archives.
After this operation, 852 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf ufw all 0.36-1                                                                                                                                                              [164 kB]
Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf ufw all 0.36-1
  File has unexpected size (2567 != 164352). Mirror sync in progress? [IP: *ip here*]
  Hashes of expected file:
   - SHA256:798b91b28eba5a49d3c06f023dcc38be4daa3f2460113acc420882f8d291a4a2
   - SHA1:9ee5e07bd552fccd53e7525c47828a43b2da34e0 [weak]
   - MD5Sum:fd529b954c032fc0839b0aec4e52659a [weak]
   - Filesize:164352 [weak]
E: Failed to fetch https://register.be.xfinity.com/activate?channel=WALLEDGARDEN  File has unexpected size (2567 != 164352). Mirror sync in progress? [IP: *ip here*]
   Hashes of expected file:
    - SHA256:798b91b28eba5a49d3c06f023dcc38be4daa3f2460113acc420882f8d291a4a2
    - SHA1:9ee5e07bd552fccd53e7525c47828a43b2da34e0 [weak]
    - MD5Sum:fd529b954c032fc0839b0aec4e52659a [weak]
    - Filesize:164352 [weak]
E: Internal Error, ordering was unable to handle the media swap

sudo apt-get update似乎也没有做任何事情。任何帮助表示赞赏。

答案1

这看起来不像是你的 pi 的问题。通常,当存储库的新版本被推送到镜像时,就会发生这种情况。

我现在已经用我自己的 pi 尝试过,效果很好,但我使用的镜像与你的不同。您也可以尝试使用不同的镜子或稍后再试。

相关内容