apt update失敗
由于項目需要,安裝標(biāo)注軟件時,總是失敗。后來查找原因,應(yīng)該是源的問題,更換了阿里、清華的源之后,仍存在相同的問題。

仔細(xì)看了一下報錯原因,總是提示無法下載“binary-arm64/Packages”。我的電腦不是arm架構(gòu),怎么會需要下載arm64的包呢?應(yīng)該是源架構(gòu)的問題。所以:
apt-get remove .*:arm64
中間會報錯:
dpkg: error: cannot remove architecture 'arm64' currently in use by the database
但是會有相應(yīng)提示,按照提示執(zhí)行:
sudo apt-get -f install
sudo apt-get autoremove
dpkg --remove-architecture arm64
sudo apt clean
sudo apt update
即可正常更新。