源列表 /etc/apt/sources.list.d/microsoft-prod.list 中格式错误的第 1 行在 Linux 上安装 Azure IoT Edge 运行时

Malformed line 1 in source list /etc/apt/sources.list.d/microsoft-prod.list Install Azure IoT Edge runtime on Linux

我正在尝试在 Raspberry OS 上安装 Azure IoT Edge 运行时,但我总是收到此错误“源列表 /etc/apt/sources.list.d/microsoft-prod.list 中的第 1 行格式错误(类型)”,当我关注 this tutorial 时。请检查上图。

还有其他人遇到过这个问题吗?

Ubuntu 20.04 属于 Tier 2 OSes, hence the Debian 9 packages from the Azure IoT Edge releases repo should work out of the box with Ubuntu 20.04. See this issue in GitHub for more info and follow the other steps mentioned in the doc.

第 1 层:

第 2 层:

最后,我安装了 Rasbian OS 并按照文档进行操作,您可以在 .

上查看更多信息

我在 Raspberry PI 4 上的 Ubuntu 20.04 上安装 IOT Edge 时遇到了同样的错误, 我在这一步中更改了 os 版本:

curl https://packages.microsoft.com/config/ubuntu/20.04/multiarch/prod.list > ./microsoft-prod.list

我在接下来的步骤中遇到了错误。这个 repo 不包含任何 arm64 的构建。

当我保留教程命令不变时,一切顺利,这意味着 18.04。

curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list

并且我能够安装 IOT Edge。