Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 amd64自编译报错 #205

Closed
tuduweb opened this issue Dec 17, 2022 · 4 comments · Fixed by #263
Closed

M1 amd64自编译报错 #205

tuduweb opened this issue Dec 17, 2022 · 4 comments · Fixed by #263

Comments

@tuduweb
Copy link

tuduweb commented Dec 17, 2022

使用以下命令:

docker image build -f Dockerfile.fake-hwaddr -t fake-hwaddr .
docker image build --tag tuduweb/docker-easyconnect -f Dockerfile.cli .

方法来自于 #25

(base) ➜  docker-easyconnect git:(non-amd64) docker image build --tag tuduweb/docker-easyconnect -f Dockerfile.cli .
[+] Building 16.9s (8/14)
 => [internal] load build definition from Dockerfile.cli                                                                                                                                               0.0s
 => => transferring dockerfile: 41B                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/debian:bookworm-slim                                                                                                                                1.3s
 => [stage-0 1/9] FROM docker.io/library/debian:bookworm-slim@sha256:a63b92a97822dd4dc3474652a7b983022cad2a4dfdb6ef820b27056cc9b0ea3b                                                                  0.0s
#!/bin/bash
 => CACHED FROM docker.io/library/fake-hwaddr:latest                                                                                                                                                   0.0s
 => [internal] load build context                                                                                                                                                                      0.0s
 => => transferring context: 1.31kB                                                                                                                                                                    0.0s
 => CACHED [stage-0 2/9] COPY [./build-scripts/pre_build.sh, ./build-scripts/set-mirror.sh, /tmp/build-scripts/]                                                                                       0.0s
 => ERROR [stage-0 3/9] RUN . /tmp/build-scripts/pre_build.sh &&     apt-get update &&     apt-get install -y --no-install-recommends --no-install-suggests iptables         libstdc++6:amd64 dante-  15.5s
------
 > [stage-0 3/9] RUN . /tmp/build-scripts/pre_build.sh &&     apt-get update &&     apt-get install -y --no-install-recommends --no-install-suggests iptables         libstdc++6:amd64 dante-server busybox iproute2 tinyproxy-bin ${extra_pkg} &&     for command in ps kill killall; do ln -s "$(which busybox)" /usr/local/bin/"${command}" || exit 1 ; done &&     rm -rf /var/lib/apt/lists/*:
#7 0.322 Get:1 http://mirrors.aliyun.com/debian bookworm InRelease
#7 0.330 Ign:1 http://mirrors.aliyun.com/debian bookworm InRelease
#7 0.450 Ign:2 http://mirrors.aliyun.com/debian/-security bookworm-security InRelease
#7 0.508 Get:3 http://mirrors.aliyun.com/debian bookworm-updates InRelease
#7 0.512 Ign:3 http://mirrors.aliyun.com/debian bookworm-updates InRelease
#7 0.652 Err:4 http://mirrors.aliyun.com/debian/-security bookworm-security Release
#7 0.652   404  Not Found [IP: 113.219.178.241 80]
#7 1.442 Get:1 http://mirrors.aliyun.com/debian bookworm InRelease [164 kB]
#7 1.572 Get:3 http://mirrors.aliyun.com/debian bookworm-updates InRelease [49.6 kB]
#!/bin/bash
#7 7.607 Get:5 http://mirrors.aliyun.com/debian bookworm/main arm64 Packages [8684 kB]
#7 13.91 Get:6 http://mirrors.aliyun.com/debian bookworm/main amd64 Packages [8806 kB]
#7 14.87 Reading package lists...
#7 15.44 E: The repository 'http://mirrors.aliyun.com/debian/-security bookworm-security Release' does not have a Release file.
------
executor failed running [/bin/sh -c . /tmp/build-scripts/pre_build.sh &&     apt-get update &&     apt-get install -y --no-install-recommends --no-install-suggests iptables         libstdc++6:amd64 dante-server busybox iproute2 tinyproxy-bin ${extra_pkg} &&     for command in ps kill killall; do ln -s "$(which busybox)" /usr/local/bin/"${command}" || exit 1 ; done &&     rm -rf /var/lib/apt/lists/*]: exit code: 100
@tuduweb
Copy link
Author

tuduweb commented Dec 17, 2022

#173

镜像地址去掉尾部/修复成功

@wjfu99
Copy link

wjfu99 commented Dec 29, 2022

@tuduweb 您好,请问你这个最终在mac m1上可以正常稳定运行吗?

@tuduweb
Copy link
Author

tuduweb commented Jan 6, 2023

@tuduweb 您好,请问你这个最终在mac m1上可以正常稳定运行吗?

没搞定 最后扔云服务器上了,没弄了。

@libra146
Copy link

@tuduweb 您好,请问你这个最终在mac m1上可以正常稳定运行吗?

我的M1使用develop分支自己构建可以稳定运行,目前已稳定运行几个月+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants