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

在Raspbian系统中无法安装edgesdk-oauth-tool的问题求助

解决树莓派上 edgesdk-oauth-tool 安装失败的依赖问题

问题重现

你执行安装命令时遇到的报错如下:

pi@raspberrypi:~/Downloads $ sudo apt-get install ./edgesdk-oauth-tool-setup-linux-1.0.0.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
**Note, selecting 'edgesdk-oauth-tool:amd64' instead of './edgesdk-oauth-tool-setup-linux-1.0.0.deb'**
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 edgesdk-oauth-tool:amd64 : Depends: libgtk-3-0:amd64 but it is not installable
                            Depends: libnotify4:amd64 but it is not installable
                            Depends: libnss3:amd64 but it is not installable
                            Depends: libxss1:amd64 but it is not installable
                            Depends: libxtst6:amd64 but it is not installable
                            Depends: libatspi2.0-0:amd64 but it is not installable
                            Depends: libuuid1:amd64 but it is not installable
                            Depends: libappindicator3-1:amd64 but it is not installable
                            Depends: libsecret-1-0:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~/Downloads $

问题根源

核心原因是架构不匹配:

  • 你下载的deb包是针对amd64(x86_64)架构的,但树莓派运行的是ARM架构的Raspbian系统(通常是armhf或arm64)。
  • APT自动识别到包的架构是amd64,尝试安装对应依赖,但ARM系统无法安装amd64版本的库,因此出现依赖未满足的报错;最后提示的“held broken packages”是架构不兼容导致的连锁问题。

解决步骤

  • 确认你的树莓派架构
    运行以下命令查看系统架构:

    dpkg --print-architecture
    

    输出通常是armhf(32位)或arm64(64位)。

  • 下载对应架构的安装包
    前往edgesdk-oauth-tool的官方发布页面,找到与你树莓派架构匹配的deb安装包(文件名应包含armhf或arm64字样),不要继续使用amd64版本的包。

  • 修复系统的损坏包状态
    先清理当前的依赖问题,运行:

    sudo apt-get update && sudo apt-get install -f
    

    这个命令会自动修复已有的依赖问题,清理损坏的包状态。

  • 重新安装正确架构的包
    下载好对应ARM架构的deb包后,进入下载目录,执行安装命令(替换文件名中的架构标识为你实际下载的版本):

    sudo apt-get install ./edgesdk-oauth-tool-setup-linux-1.0.0-armhf.deb
    

内容的提问来源于stack exchange,提问作者Sukanta Naskar

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.06 20:37:42