Raspberry-Pi
樹莓派上的ufw安裝錯誤
我在嘗試安裝 ufw 軟體包的 Raspberry Pi 上遇到此錯誤,我不知道如何處理。
執行後
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
似乎也沒有做任何事情。任何幫助表示讚賞。
這看起來不像是你的 pi 的問題。通常,當新版本的 repo 被推送到鏡像時,就會發生這種情況。
我現在用我自己的 pi 試過了,效果很好,但我用的鏡子和你的不一樣。您也可以嘗試使用不同的鏡子或稍後再試一次。