You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行sudo apt-get update出现不支持arm64架构的跳过提示如何消除

解决树莓派执行apt update时出现arm64架构不支持提示的方法

问题原因

  • 系统启用了arm64架构,但官方Raspbian Buster源仅提供armhf架构的软件包,apt拉取包索引时检测到架构不匹配就会抛出对应通知。
  • 该通知不影响正常软件安装更新,仅为冗余提示。

解决方法

方案1:不需要保留arm64架构(推荐,操作最简单)

  1. 先确认当前启用的架构,执行以下命令:
dpkg --print-architecture
dpkg --print-foreign-architectures

如果输出中包含arm64,继续执行下一步。
2. 移除多余的arm64架构:

sudo dpkg --remove-architecture arm64
  1. 重新执行sudo apt-get update,提示即可消失。

方案2:需要保留arm64架构

如果需要运行arm64架构的程序,必须保留arm64架构,就修改源配置指定适配架构:

  1. 打开Raspbian源对应的配置文件,通常路径为/etc/apt/sources.list,也可能在/etc/apt/sources.list.d/目录下的对应配置文件中。
  2. 找到对应raspbian源的行,类似如下格式:
deb http://raspbian.raspberrypi.org/raspbian buster main contrib non-free rpi

在deb后面添加[arch=armhf]参数,修改后如下:

deb [arch=armhf] http://raspbian.raspberrypi.org/raspbian buster main contrib non-free rpi
  1. 保存文件后重新执行sudo apt-get update,提示即可消失。

内容的提问来源于stack exchange,提问作者ecanus yofiel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.29 16:54:00