简体   繁体   English

multiarch-support:amd64: Depends: libc6:amd64 (>= 2.3.6-2) 但它不可安装

[英]multiarch-support:amd64 : Depends: libc6:amd64 (>= 2.3.6-2) but it is not installable

I have this Laravel project (laravel 6) that runs on Docker.我有这个在 Docker 上运行的 Laravel 项目 (laravel 6)。

And I got this error:我得到了这个错误:

multiarch-support:amd64 : Depends: libc6:amd64 (>= 2.3.6-2) but it is not installable

The Dockerfile has this: the full version is found https://pastebin.com/zpjHdBRr Dockerfile 有这个:完整版本可以找到https://pastebin.com/zpjHdBRr

RUN curl 'http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb' --output multiarch-support.deb \
 && apt-get install ./multiarch-support.deb

RUN ACCEPT_EULA=Y apt-get -yq --no-install-recommends install \
        unixodbc-dev \
        msodbcsql17

I'm currently running on Mac (M1 chip)我目前在 Mac(M1 芯片)上运行

I am not sure but there seems to be some problem with 1.4 version you should consider upgrading it to 1.5我不确定,但 1.4 版本似乎存在一些问题,您应该考虑将其升级到 1.5

multiarch-support_2.27-3ubuntu1.5_amd64.deb I have tested with 1.5 and it works fine ! multiarch-support_2.27-3ubuntu1.5_amd64.deb 我已经用 1.5 测试过,它工作正常!

Link to download 1.5 version 1.5 版本下载链接

You are trying to install software built for x86 on m1, which is ARM-based.您正在尝试在基于 ARM 的 m1 上安装为 x86 构建的软件。 Just change the amd64 to arm64.只需将 amd64 更改为 arm64。 Worked for me.为我工作。 Instead of代替

http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb' , http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb' ,

use采用

http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_arm64.deb' . http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_arm64.deb'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM