siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
129 stars 76 forks source link

iot2050-image-example.bb:do_rootfs_install failed #418

Closed lxmuyu closed 1 year ago

lxmuyu commented 1 year ago

when we build the image,we get the error:'Packages were downgraded and -y was used without --allow-downgrades',and it has some info 'The following packages will be DOWNGRADED: libssl1.1 0 upgraded, 571 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. E: Packages were downgraded and -y was used without --allow-downgrades. WARNING: exit code 100 from a shell command.' . we clear the project and rebuild, the error is same.

How can we fix it ?

branch:origin/stable/V01.02 build cmd: ./kas-container build kas-iot2050-example.yml:kas/opt/mirror-example.yml error msg: Packages were downgraded and -y was used without --allow-downgrades log:

2023-02-16 02:22:22 - INFO     - kas 2.5 started
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - /repo/kas/opt$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - Using /repo as root for repository meta-iot2050
2023-02-16 02:22:22 - INFO     - /work/isar$ git remote set-url origin https://github.com/ilbers/isar
2023-02-16 02:22:22 - INFO     - /work/isar$ git cat-file -t e274130b870b7e31532fe191b9932cde1d819b4b
2023-02-16 02:22:22 - INFO     - Repository isar already contains e274130b870b7e31532fe191b9932cde1d819b4b as commit
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - Using /repo as root for repository meta-iot2050
2023-02-16 02:22:22 - INFO     - /work/isar$ git status -s
2023-02-16 02:22:22 - INFO     - /work/isar$ git rev-parse --verify -q origin/e274130b870b7e31532fe191b9932cde1d819b4b
2023-02-16 02:22:22 - INFO     - /work/isar$ git checkout -q e274130b870b7e31532fe191b9932cde1d819b4b
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - Using /repo as root for repository meta-iot2050
2023-02-16 02:22:22 - INFO     - /work/isar$ git checkout -q -B patched-e274130b870b7e31532fe191b9932cde1d819b4b
2023-02-16 02:22:22 - INFO     - /work/isar$ git apply /repo/isar-patches/0001-u-boot-Exclude-libubootenv.a-from-dh_strip.patch
2023-02-16 02:22:22 - INFO     - Patch applied. (patch path: /repo/isar-patches/0001-u-boot-Exclude-libubootenv.a-from-dh_strip.patch, repo: isar, patch entry: u-boot-fix)
2023-02-16 02:22:22 - INFO     - /work/isar$ git add -A
2023-02-16 02:22:22 - INFO     - /work/isar$ git commit -a --author kas <kas@example.com> -m msg
2023-02-16 02:22:22 - INFO     - [patched-e274130b870b7e31532fe191b9932cde1d819b4b eee20ab] msg
2023-02-16 02:22:22 - INFO     - Author: kas <kas@example.com>
2023-02-16 02:22:22 - INFO     - 1 file changed, 3 insertions(+)
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - Using /repo as root for repository meta-iot2050
2023-02-16 02:22:22 - INFO     - /work/isar$ /tmp/tmpf2xiqzjm/get_bb_env /build
2023-02-16 02:22:22 - INFO     - /repo$ git rev-parse --show-toplevel
2023-02-16 02:22:22 - INFO     - Using /repo as root for repository meta-iot2050
2023-02-16 02:22:22 - INFO     - /build$ /work/isar/bitbake/bin/bitbake -c build iot2050-image-example
Loading cache: 100% |###########################################################################################################################################################################################################################| Time: 0:00:00
Loaded 53 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |######################################################################################################################################################################################################################| Time: 0:00:00
NOTE: No setscene tasks
NOTE: Executing Tasks
ERROR: iot2050-image-example-1.0-r0 do_rootfs_install: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_rootfs_install(d)
     0003:
File: '/work/isar/meta/classes/rootfs.bbclass', lineno: 182, function: do_rootfs_install
     0178:                                     shared=True)
     0179:
     0180:        bb.build.exec_func(cmd, d)
     0181:
 *** 0182:        if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "release-after":
     0183:            bb.utils.unlockfile(lock)
     0184:    progress_reporter.finish()
     0185:}
     0186:addtask rootfs_install before do_rootfs_postprocess after do_unpack
File: '/work/isar/bitbake/lib/bb/build.py', lineno: 251, function: exec_func
     0247:    with bb.utils.fileslocked(lockfiles):
     0248:        if ispython:
     0249:            exec_func_python(func, d, runfile, cwd=adir)
     0250:        else:
 *** 0251:            exec_func_shell(func, d, runfile, cwd=adir)
     0252:
     0253:    try:
     0254:        curcwd = os.getcwd()
     0255:    except:
File: '/work/isar/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell
     0448:    with open(fifopath, 'r+b', buffering=0) as fifo:
     0449:        try:
     0450:            bb.debug(2, "Executing shell function %s" % func)
     0451:            with open(os.devnull, 'r+') as stdin, logfile:
 *** 0452:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
     0453:        finally:
     0454:            os.unlink(fifopath)
     0455:
     0456:    bb.debug(2, "Shell function %s finished" % func)
File: '/work/isar/bitbake/lib/bb/process.py', lineno: 182, function: run
     0178:        if not stderr is None:
     0179:            stderr = stderr.decode("utf-8")
     0180:
     0181:    if pipe.returncode != 0:
 *** 0182:        raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
     0183:    return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/build/tmp/work/iot2050-debian-arm64/iot2050-image-example-iot2050-wic-img/1.0-r0/temp/run.rootfs_install_pkgs_download.77' failed with exit code 100:
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  binutils binutils-aarch64-linux-gnu binutils-common bsdextrautils bzip2
  ca-certificates-java cmake-data cpio cpp cpp-10 dbus default-jdk-headless
  default-jre default-jre-headless dmsetup dpkg-dev fdisk fontconfig
  fontconfig-config fonts-dejavu-core g++ g++-10 gcc gcc-10 gyp
  initramfs-tools initramfs-tools-core iproute2 java-common k3-rti-wdt
  klibc-utils kmod libaom0 libapparmor1 libarchive13 libargon2-1 libasan6
  libasound2 libasound2-data libasound2-plugins libasyncns0 libatomic1
  libatopology2 libavahi-client3 libavahi-common-data libavahi-common3
  libavcodec58 libavresample4 libavutil56 libbabeltrace1 libbinutils
  libbluetooth3 libboost-regex1.74.0 libbpf0 libbrotli1 libbsd0 libc-ares2
  libc-dev-bin libc6-dev libcairo-gobject2 libcairo2 libcap2 libcap2-bin
  libcbor0 libcc1-0 libcjson1 libcodec2-0.9 libcrypt-dev libcryptsetup12
  libctf-nobfd0 libctf0 libcups2 libcurl3-gnutls libcurl4 libdaemon0
  libdatrie1 libdav1d4 libdbus-1-3 libdebuginfod1 libdeflate0
  libdevmapper1.02.1 libdlt2 libdns-export1110 libdpkg-perl libdrm-amdgpu1
  libdrm-common libdrm-nouveau2 libdrm-radeon1 libdrm2 libdw1 libedit2 libelf1
  libestr0 libev4 libexpat1 libfastjson4 libfdisk1 libfftw3-single3 libfido2-1
  libflac8 libfontconfig1 libfreetype6 libfribidi0 libgcc-10-dev
  libgdbm-compat4 libgdbm6 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-common libgif7
  libgl1 libgl1-mesa-dri libglapi-mesa libglib2.0-0 libglvnd0 libglx-mesa0
  libglx0 libgomp1 libgpiod2 libgpm2 libgraphite2-3 libgsm1 libgudev-1.0-0
  libharfbuzz0b libi2c0 libice6 libicu67 libip4tc2 libisc-export1105 libisl23
  libitm1 libjack-jackd2-0 libjansson4 libjbig0 libjpeg62-turbo libjs-inherits
  libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libjson-c5
  libjsoncpp24 libjudydebian1 libklibc libkmod2 liblcms2-2 libllvm11
  liblognorm5 liblsan0 libltdl7 libmbim-glib4 libmbim-proxy libmd0 libmm-glib0
  libmnl0 libmosquitto1 libmp3lame0 libmpc3 libmpdec3 libmpfr6 libncurses6
  libndp0 libnewt0.52 libnghttp2-14 libnl-3-200 libnl-cli-3-200
  libnl-genl-3-200 libnl-nf-3-200 libnl-route-3-200 libnm0 libnode-dev
  libnode72 libnsl-dev libnspr4 libnss3 libnuma1 libogg0 libopenjp2-7 libopus0
  liborc-0.4-0 libpam-systemd libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpcap0.8 libpci3 libpcsclite1 libperl5.32 libpixman-1-0
  libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libprocps8 libpsl5
  libpulse0 libpulsedsp libpython3-stdlib libpython3.9 libpython3.9-minimal
  libpython3.9-stdlib libqmi-glib5 libqmi-proxy librhash0 librsvg2-2 librtmp1
  libsamplerate0 libsbc1 libsctp1 libsensors-config libsensors5 libshine3
  libsigsegv2 libslang2 libsm6 libsnappy1v5 libsndfile1
  libsource-highlight-common libsource-highlight4v5 libsoxr0 libspeex1
  libspeexdsp1 libssh2-1 libssl-dev libssl1.1 libstdc++-10-dev libswresample3
  libtdb1 libteam5 libteamdctl0 libthai-data libthai0 libtheora0 libtiff5
  libtirpc-dev libtsan0 libtwolame0 libubootenv0.1 libubsan1 libusb-1.0-0
  libuv1 libuv1-dev libva-drm2 libva-x11-2 libva2 libvdpau1 libvorbis0a
  libvorbisenc2 libvpx6 libvulkan1 libwavpack1 libwebp6 libwebpmux3
  libwebrtc-audio-processing1 libwebsockets16 libwrap0 libx11-6 libx11-data
  libx11-xcb1 libx264-160 libx265-192 libxau6 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-xfixes0 libxcb1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6
  libxml2 libxrender1 libxshmfence1 libxtables12 libxtst6 libxvidcore4
  libxxf86vm1 libz3-4 libzvbi-common libzvbi0 linux-base linux-libc-dev m4
  make media-types mindconnect-node-red-contrib-mindconnect ncal node-abbrev
  node-agent-base node-ajv node-ansi node-ansi-regex node-ansi-styles
  node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
  node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
  node-balanced-match node-bcrypt-pbkdf node-brace-expansion node-builtins
  node-cacache node-caseless node-chalk node-chownr node-clone
  node-color-convert node-color-name node-colors node-columnify
  node-combined-stream node-concat-map node-console-control-strings
  node-copy-concurrently node-core-util-is node-dashdash node-debug
  node-defaults node-delayed-stream node-delegates node-depd node-ecc-jsbn
  node-encoding node-err-code node-escape-string-regexp node-extend
  node-extsprintf node-fast-deep-equal node-forever-agent node-form-data
  node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
  node-getpass node-glob node-graceful-fs node-gyp node-har-schema
  node-har-validator node-has-flag node-has-unicode node-hosted-git-info
  node-http-signature node-https-proxy-agent node-iconv-lite node-iferr
  node-imurmurhash node-indent-string node-inflight node-inherits node-ini
  node-ip node-ip-regex node-is-typedarray node-isarray node-isexe
  node-isstream node-jsbn node-json-parse-better-errors node-json-schema
  node-json-schema-traverse node-json-stable-stringify
  node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
  node-jsprim node-leven node-lockfile node-lru-cache node-mime
  node-mime-types node-minimatch node-mkdirp node-move-concurrently node-ms
  node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
  node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign
  node-object-assign node-once node-opener node-osenv node-p-map
  node-path-is-absolute node-performance-now node-process-nextick-args
  node-promise-inflight node-promise-retry node-promzard node-psl node-puka
  node-punycode node-qs node-read node-read-package-json node-readable-stream
  node-red-contrib-modbus node-red-contrib-opcua node-red-contrib-s7
  node-red-dashboard node-red-node-serialport node-red-node-sqlite
  node-resolve node-resolve-from node-retry node-rimraf node-run-queue
  node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash
  node-spdx-correct node-spdx-exceptions node-spdx-expression-parse
  node-spdx-license-ids node-sshpk node-ssri node-string-decoder
  node-string-width node-strip-ansi node-supports-color node-tar
  node-text-table node-through node-tunnel-agent node-tweetnacl
  node-typedarray-to-buffer node-unique-filename node-uri-js
  node-util-deprecate node-uuid node-validate-npm-package-license
  node-validate-npm-package-name node-verror node-wcwidth.js node-which
  node-wide-align node-wrappy node-write-file-atomic node-yallist
  ocl-icd-libopencl1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre
  openjdk-11-jre-headless openssh-client openssh-server openssh-sftp-server
  openssl patch pci.ids perl perl-modules-5.32 policykit-1 procps pulseaudio
  pulseaudio-utils python3-minimal python3-pkg-resources python3.9
  python3.9-minimal runit-helper sensible-utils shared-mime-info systemd
  systemd-sysv ti-pruss-firmware u-boot-tools ucf udev uuid-runtime vim-common
  vim-runtime x11-common xdg-utils xxd xz-utils
Suggested packages:
  dialog autoconf-archive gnu-standards autoconf-doc libtool gettext
  binutils-doc calendar whois vacation mailutils bzip2-doc cmake-doc
  ninja-build libarchive1 cpp-doc gcc-10-locales default-dbus-session-bus
  | dbus-session-bus debian-keyring gcc-10-doc gawk-doc gcc-multilib
  manpages-dev automake flex bison gcc-doc gdb-doc libi2c-dev python-smbus
  rdnssd iproute2-doc avahi-autoipd isc-dhcp-client-ddns lrzip glibc-doc
  cups-common git bzr libfftw3-bin libfftw3-dev gdbm-l10n gpm jackd2
  liblcms2-utils opus-tools pcscd librsvg2-bin lksctp-tools lm-sensors speex
  libssl-doc libstdc++-10-doc m4-doc make-doc apparmor hunspell opencl-icd
  openjdk-11-demo openjdk-11-source visualvm libnss-mdns fonts-dejavu-extra
  fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
  | fonts-wqy-zenhei fonts-indic keychain libpam-ssh monkeysphere ssh-askpass
  molly-guard ufw ed diffutils-doc perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl libtap-harness-archive-perl pavumeter
  pavucontrol paprefs avahi-daemon python3-doc python3-tk python3-venv
  python3-setuptools python3.9-venv python3.9-doc binfmt-support rsyslog-mysql
  | rsyslog-pgsql rsyslog-mongodb rsyslog-doc rsyslog-openssl | rsyslog-gnutls
  rsyslog-gssapi rsyslog-relp systemd-container ctags vim-doc vim-scripts
  wpagui libengine-pkcs11-openssl
Recommended packages:
  automake | automaken fakeroot libalgorithm-merge-perl libc-dbg read-edid
  pigz libatm1 isc-dhcp-common wireless-regdb alsa-ucm-conf alsa-topology-conf
  manpages manpages-dev libc-devtools libpam-cap libfile-fcntllock-perl
  liblocale-gettext-perl libgdk-pixbuf2.0-bin libglib2.0-data xdg-user-dirs
  javascript-common publicsuffix librsvg2-common va-driver-all | va-driver
  vdpau-driver-all | vdpau-driver mesa-vulkan-drivers | vulkan-icd
  usb-modeswitch dnsmasq-base iptables node-request nodejs-doc git libxt-dev
  libatk-wrapper-java-jni fonts-dejavu-extra xauth ncurses-term netbase rtkit
  dbus-user-session logrotate systemd-timesyncd | time-daemon libnss-systemd
  device-tree-compiler libfile-mimeinfo-perl libnet-dbus-perl
  libx11-protocol-perl x11-utils x11-xserver-utils
The following NEW packages will be installed:
  alsa-tools alsa-utils autoconf autotools-dev bash-completion binutils
  binutils-aarch64-linux-gnu binutils-common bluez bsdextrautils bsdmainutils
  build-essential busybox bzip2 ca-certificates ca-certificates-java cmake
  cmake-data cpio cpp cpp-10 curl customizations-base customizations-example
  dbus default-jdk default-jdk-headless default-jre default-jre-headless
  dmsetup dpkg-dev ethtool expand-on-first-boot fdisk firmware-ath9k-htc
  firmware-atheros firmware-brcm80211 firmware-iwlwifi firmware-libertas
  firmware-misc-nonfree firmware-realtek firmware-ti-connectivity fontconfig
  fontconfig-config fonts-dejavu-core g++ g++-10 gawk gcc gcc-10 gdb gdbserver
  gpiod gyp i2c-tools ifupdown init initramfs-tools initramfs-tools-core
  install-on-emmc iot2050-firmware iot2050-firmware-update iot2050setup
  iproute2 iputils-ping isc-dhcp-client iw java-common k3-rti-wdt klibc-utils
  kmod less libaom0 libapparmor1 libarchive13 libargon2-1 libasan6 libasound2
  libasound2-data libasound2-plugins libasyncns0 libatomic1 libatopology2
  libavahi-client3 libavahi-common-data libavahi-common3 libavcodec58
  libavresample4 libavutil56 libbabeltrace1 libbinutils libbluetooth3
  libboost-regex1.74.0 libbpf0 libbrotli1 libbsd0 libc-ares2 libc-dev-bin
  libc6-dev libcairo-gobject2 libcairo2 libcap2 libcap2-bin libcbor0 libcc1-0
  libcjson1 libcodec2-0.9 libcrypt-dev libcryptsetup12 libctf-nobfd0 libctf0
  libcups2 libcurl3-gnutls libcurl4 libdaemon0 libdatrie1 libdav1d4
  libdbus-1-3 libdebuginfod1 libdeflate0 libdevmapper1.02.1 libdlt2
  libdns-export1110 libdpkg-perl libdrm-amdgpu1 libdrm-common libdrm-nouveau2
  libdrm-radeon1 libdrm2 libdw1 libedit2 libelf1 libestr0 libev4 libexpat1
  libfastjson4 libfdisk1 libfftw3-single3 libfido2-1 libflac8 libfontconfig1
  libfreetype6 libfribidi0 libgcc-10-dev libgdbm-compat4 libgdbm6
  libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-common libgif7 libgl1 libgl1-mesa-dri
  libglapi-mesa libglib2.0-0 libglvnd0 libglx-mesa0 libglx0 libgomp1 libgpiod2
  libgpm2 libgraphite2-3 libgsm1 libgudev-1.0-0 libharfbuzz0b libi2c0 libice6
  libicu67 libip4tc2 libisc-export1105 libisl23 libitm1 libjack-jackd2-0
  libjansson4 libjbig0 libjpeg62-turbo libjs-inherits libjs-is-typedarray
  libjs-psl libjs-typedarray-to-buffer libjson-c5 libjsoncpp24 libjudydebian1
  libklibc libkmod2 liblcms2-2 libllvm11 liblognorm5 liblsan0 libltdl7
  libmbim-glib4 libmbim-proxy libmd0 libmm-glib0 libmnl0 libmosquitto1
  libmp3lame0 libmpc3 libmpdec3 libmpfr6 libncurses6 libndp0 libnewt0.52
  libnghttp2-14 libnl-3-200 libnl-cli-3-200 libnl-genl-3-200 libnl-nf-3-200
  libnl-route-3-200 libnm0 libnode-dev libnode72 libnsl-dev libnspr4 libnss3
  libnuma1 libogg0 libopenjp2-7 libopus0 liborc-0.4-0 libpam-systemd
  libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpci3
  libpcsclite1 libperl5.32 libpixman-1-0 libpng16-16 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libprocps8 libpsl5 libpulse0 libpulsedsp
  libpython3-stdlib libpython3.9 libpython3.9-minimal libpython3.9-stdlib
  libqmi-glib5 libqmi-proxy librhash0 librsvg2-2 librtmp1 libsamplerate0
  libsbc1 libsctp1 libsensors-config libsensors5 libshine3 libsigsegv2
  libslang2 libsm6 libsnappy1v5 libsndfile1 libsource-highlight-common
  libsource-highlight4v5 libsoxr0 libspeex1 libspeexdsp1 libssh2-1 libssl-dev
  libstdc++-10-dev libswresample3 libtdb1 libteam-utils libteam5 libteamdctl0
  libthai-data libthai0 libtheora0 libtiff5 libtirpc-dev libtsan0 libtwolame0
  libubootenv-tool libubootenv0.1 libubsan1 libusb-1.0-0 libuv1 libuv1-dev
  libva-drm2 libva-x11-2 libva2 libvdpau1 libvorbis0a libvorbisenc2 libvpx6
  libvulkan1 libwavpack1 libwebp6 libwebpmux3 libwebrtc-audio-processing1
  libwebsockets16 libwrap0 libx11-6 libx11-data libx11-xcb1 libx264-160
  libx265-192 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxi6 libxml2 libxrender1 libxshmfence1
  libxtables12 libxtst6 libxvidcore4 libxxf86vm1 libz3-4 libzvbi-common
  libzvbi0 linux-base linux-image-iot2050 linux-libc-dev m4 make media-types
  mindconnect-node-red-contrib-mindconnect modemmanager mosquitto
  mosquitto-clients mraa nano ncal net-tools network-manager node-abbrev
  node-agent-base node-ajv node-ansi node-ansi-regex node-ansi-styles
  node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
  node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
  node-balanced-match node-bcrypt-pbkdf node-brace-expansion node-builtins
  node-cacache node-caseless node-chalk node-chownr node-clone
  node-color-convert node-color-name node-colors node-columnify
  node-combined-stream node-concat-map node-console-control-strings
  node-copy-concurrently node-core-util-is node-dashdash node-debug
  node-defaults node-delayed-stream node-delegates node-depd node-ecc-jsbn
  node-encoding node-err-code node-escape-string-regexp node-extend
  node-extsprintf node-fast-deep-equal node-forever-agent node-form-data
  node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
  node-getpass node-glob node-graceful-fs node-gyp node-har-schema
  node-har-validator node-has-flag node-has-unicode node-hosted-git-info
  node-http-signature node-https-proxy-agent node-iconv-lite node-iferr
  node-imurmurhash node-indent-string node-inflight node-inherits node-ini
  node-ip node-ip-regex node-is-typedarray node-isarray node-isexe
  node-isstream node-jsbn node-json-parse-better-errors node-json-schema
  node-json-schema-traverse node-json-stable-stringify
  node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
  node-jsprim node-leven node-lockfile node-lru-cache node-mime
  node-mime-types node-minimatch node-mkdirp node-move-concurrently node-ms
  node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
  node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign
  node-object-assign node-once node-opener node-osenv node-p-map
  node-path-is-absolute node-performance-now node-process-nextick-args
  node-promise-inflight node-promise-retry node-promzard node-psl node-puka
  node-punycode node-qs node-read node-read-package-json node-readable-stream
  node-red node-red-contrib-modbus node-red-contrib-opcua node-red-contrib-s7
  node-red-dashboard node-red-gpio node-red-node-serialport
  node-red-node-sqlite node-red-preinstalled-nodes node-resolve
  node-resolve-from node-retry node-rimraf node-run-queue node-safe-buffer
  node-semver node-set-blocking node-signal-exit node-slash node-spdx-correct
  node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids
  node-sshpk node-ssri node-string-decoder node-string-width node-strip-ansi
  node-supports-color node-tar node-text-table node-through node-tunnel-agent
  node-tweetnacl node-typedarray-to-buffer node-unique-filename node-uri-js
  node-util-deprecate node-uuid node-validate-npm-package-license
  node-validate-npm-package-name node-verror node-wcwidth.js node-which
  node-wide-align node-wrappy node-write-file-atomic node-yallist nodejs npm
  ocl-icd-libopencl1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre
  openjdk-11-jre-headless openssh-client openssh-server openssh-sftp-server
  openssl patch pci.ids pciutils perl perl-modules-5.32 policykit-1 ppp procps
  psmisc pulseaudio pulseaudio-module-bluetooth pulseaudio-utils
  python-is-python3 python3 python3-minimal python3-newt python3-pkg-resources
  python3.9 python3.9-minimal regen-rootfs-uuid resolvconf rsyslog rt-tests
  runit-helper sensible-utils shared-mime-info ssh sshd-regen-keys stress-ng
  sudo switchserialmode systemd systemd-sysv tcf-agent ti-pruss-firmware
  u-boot-iot2050-config u-boot-script u-boot-tools ucf udev usbutils
  uuid-runtime vim vim-common vim-runtime wget wpasupplicant x11-common
  xdg-utils xxd xz-utils
The following packages will be DOWNGRADED:
  libssl1.1
0 upgraded, 571 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
WARNING: exit code 100 from a shell command.

ERROR: Logfile of failure stored in: /build/tmp/work/iot2050-debian-arm64/iot2050-image-example-iot2050-wic-img/1.0-r0/temp/log.do_rootfs_install.77
ERROR: Task (/repo/recipes-core/images/iot2050-image-example.bb:do_rootfs_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 409 tasks of which 408 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /repo/recipes-core/images/iot2050-image-example.bb:do_rootfs_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
2023-02-16 02:22:33 - ERROR    - Command returned non-zero exit status 1
BaochengSu commented 1 year ago

Hi,

If you are building the stable branch, better to have the kas/opt/package-lock.yml in the build command.

See https://github.com/siemens/meta-iot2050/tree/stable/V01.02#build-released-version

lxmuyu commented 1 year ago

Hi,

If you are building the stable branch, better to have the kas/opt/package-lock.yml in the build command.

See https://github.com/siemens/meta-iot2050/tree/stable/V01.02#build-released-version

Thank you for your reply, I'll try it now. There are results for you to reply.

lxmuyu commented 1 year ago

@BaochengSu After a long build process, we can generate images, thank you! However, installing apts from snapshot.debian.org is unstable, and the package installation timeout is serious ...This is another question. Thanks!

BaochengSu commented 1 year ago

Glad you've done that.

The reproducible of the stable version image has been an outstanding issue for pretty a while, currently s.d.o throttles the bandwidth and the connections to avoid abuse.

However, some community efforts have been already paid to address such an issue, e.g. https://debconf21.debconf.org/talks/22-making-use-of-snapshotdebianorg-for-fun-and-profit/.

Some other workaround I found useful is to use some apt cacher (such as apt-cacher-ng) to cache the .deb packages, although it does not solve the first time downloading, it makes the following buildings more smoothly. However you need time and computing resource to implement such cache proxy.