未找到 gcc-multilib 但已安装 gcc Mac M1

问题描述 投票:0回答:2

gcc 已安装。

构建 docker 镜像时出现错误

#0 4.414 Package gcc-multilib is not available, but is referred to by another package.
#0 4.414 This may mean that the package is missing, has been obsoleted, or
#0 4.414 is only available from another source
#0 4.414
#0 4.453 E: Package 'gcc-multilib' has no installation candidate

有什么想法吗?

docker gcc
2个回答
0
投票

从 docker 文件中删除 gcc-multilib 对我有用,我不知道为什么 gcc 和 gcc-multilib 都在那里。


0
投票

添加平台:

--platform linux/amd64
例如

docker build --platform linux/amd64 -f Dockerfile -t container_name .

© www.soinside.com 2019 - 2024. All rights reserved.