goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
67 stars 41 forks source link

build nginx error #46

Open kernelsky opened 1 year ago

kernelsky commented 1 year ago

docker version Client: Version: 20.10.7 Server Version: 20.10.7

Build harbor arm image:

make build GOBUILDTAGS="include_oss include_gcs" BUILDBIN=true NOTARYFLAG=true TRIVYFLAG=true CHARTFLAG=true GEN_TLS=true PULL_BASE_FROM_DOCKERHUB=false

> [2/2] RUN tdnf install -y nginx shadow >> /dev/null     && tdnf clean all     && ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx     && chown -R nginx:nginx /etc/nginx:
#5 101.9 using empty dict to provide pw_dict
#5 103.1 Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
#5 103.3 Cleaning repos: photon-release photon-updates photon-extras
#5 103.3 Cleaning up everything
#5 103.3 groupadd: group 'nginx' already exists
ERROR: failed to solve: executor failed running [/bin/sh -c tdnf install -y nginx shadow >> /dev/null     && tdnf clean all     && ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx     && chown -R nginx:nginx /etc/nginx]: exit code: 9

download arm64 Packages 404

#11 [nodeportal  3/18] RUN apt-get update     && apt-get install -y --no-install-recommends python-yaml=3.12-1
#11 66.90 Ign:1 http://deb.debian.org/debian stretch InRelease
#11 67.07 Ign:2 http://deb.debian.org/debian stretch-updates InRelease
#11 67.75 Ign:3 http://deb.debian.org/debian stretch Release
#11 67.93 Ign:4 http://deb.debian.org/debian stretch-updates Release
#11 68.11 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 68.53 Ign:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 68.92 Ign:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 69.10 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 69.29 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 69.70 Ign:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 70.11 Ign:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 70.69 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 70.87 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 71.26 Ign:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 71.65 Ign:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 72.22 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 72.40 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 73.19 Ign:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 73.59 Ign:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 74.14 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 77.01 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 77.81 Ign:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 78.61 Ign:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 79.17 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 79.34 Ign:5 http://deb.debian.org/debian stretch/main all Packages
#11 79.94 Err:6 http://deb.debian.org/debian stretch/main arm64 Packages
#11 79.94   404  Not Found
#11 80.37 Err:7 http://deb.debian.org/debian stretch-updates/main arm64 Packages
#11 80.37   404  Not Found
#11 80.55 Ign:8 http://deb.debian.org/debian stretch-updates/main all Packages
#11 120.9 Ign:9 http://security.debian.org/debian-security stretch/updates InRelease
#11 121.2 Ign:10 http://security.debian.org/debian-security stretch/updates Release
#11 121.5 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 121.7 Ign:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 122.6 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 122.8 Ign:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 123.1 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 123.9 Ign:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 126.0 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 126.8 Ign:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 127.1 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 127.8 Ign:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 128.5 Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
#11 129.7 Err:12 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
#11 129.7   404  Not Found [IP: 151.101.130.132 80]
#11 129.7 Reading package lists...
#11 129.7 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
#11 129.7 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
#11 129.7 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
#11 129.7 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-arm64/Packages  404  Not Found
#11 129.7 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-arm64/Packages  404  Not Found
#11 129.7 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.130.132 80]
#11 129.7 E: Some index files failed to download. They have been ignored, or old ones used instead.
#11 ERROR: executor failed running [/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends python-yaml=3.12-1]: exit code: 100
AntiQuality commented 6 months ago

me either. solely run sudo apt-get update && sudo apt-get install -y --no-install-recommends python-yaml=3.12-1 and there is E: Version '3.12-1' for 'python-yaml' was not found