E:无法找到包 azure-functions-core-tools-4

E:无法找到包 azure-functions-core-tools-4

运行 docker 容器,尝试安装azure-functions-core-tools-4.我可以在配置的存储库中搜索该包,但当我尝试安装它时却找不到该包。我已经跑了apt update好几次了,所以不是这样。

root@eddf41a4eea9:/app# apt install azure-functions-core-tools-4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package azure-functions-core-tools-4
root@eddf41a4eea9:/app# apt search azure-functions-core-tools
Sorting... Done
Full Text Search... Done
azure-functions-core-tools-3/bullseye 3.0.3904-1 amd64
  Azure Function Core Tools v3

azure-functions-core-tools-4/bullseye 4.0.3971-1 amd64
  Azure Function Core Tools v3

更多信息

root@eddf41a4eea9:/app# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"

内容/etc/apt/sources.list.d/dotnetdev.list

root@eddf41a4eea9:/app# cat /etc/apt/sources.list.d/dotnetdev.list
deb [arch=amd64] https://packages.microsoft.com/debian/11/prod bullseye main

答案1

我已经弄清楚了这个问题。我的 docker 容器正在我的 macbook 上运行,具有 M1 cpu 和 ARM 架构。

root@eddf41a4eea9:/tmp# lscpu
Architecture:                    aarch64

我认为我最终要做的是重建具有跨架构支持的容器。

https://docs.docker.com/desktop/multi-arch/

相关内容