Apt
apt-get 更新:找不到預期的條目 ‘main/binary-armel/Packages’
執行時出現以下架構錯誤
apt-get update
:$ sudo apt-get update Hit http://linux-packages.resilio.com resilio-sync InRelease Hit http://mirrordirector.raspbian.org jessie InRelease Hit http://archive.raspberrypi.org jessie InRelease Get:1 http://linux-packages.resilio.com resilio-sync/non-free armhf Packages [476 B] Ign http://linux-packages.resilio.com resilio-sync/non-free Translation-en Fetched 476 B in 0s (651 B/s) W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease Unable to find expected entry 'main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease Unable to find expected entry 'main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file) E: Some index files failed to download. They have been ignored, or old ones used instead.
為什麼它不能獲取所有儲存庫的資訊?
我正在使用帶有 ARMv7-A CPU 的 Raspberry Pi 2 型號 B。
該
armel
架構支持 ARMv4 指令集。在樹莓派家族中,即:
- 樹莓派 1 型號 A
- 樹莓派 1 型號 B
- 計算模組 1
- 樹莓派零
該
armhf
架構支持 ARMv7 指令集。在樹莓派家族中,即:
- 樹莓派 2
- 樹莓派 3
- 計算模組 2
- 計算模組 3
armel
在 raspbian 儲存庫中找不到該體系結構,因此您需要將其從配置中刪除。在刪除之前刪除該架構的所有包
sudo apt-get purge ".*:armel"
移除架構
sudo dpkg --remove-architecture armel
再次更新
sudo apt-get update