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-multilib 对我有用,我不知道为什么 gcc 和 gcc-multilib 都在那里。
添加平台:
--platform linux/amd64
例如
docker build --platform linux/amd64 -f Dockerfile -t container_name .