作者小头像 Lv.2
79 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据
个人勋章
TA还没获得勋章~
成长雷达
40
24
0
15
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据

达成规则

发布时间 2022/09/08 18:41:08 最后回复 aldary 2023/07/09 03:01:13 版块 EC-IoT
146 9 0
他的回复:
报错解决了:1.下载上面的eciot-ova2.安装新版本的docker ,我更新到了docker 24.043.脚本运行到用dockfile_base 生成镜像时这条命令还会报错dpkg --force-overwrite -i /opt/deb/sdk-lib.deb报错是说.deb格式不支持:uses unknown compression for member我直接修改了eciot-ova文件内 system/sdk/dockfile_base 末尾的一段代码 :最后一句话我也給注销掉了。FROM debian:busterENV HOSTNAME huaweiENV DEBIAN_FRONTEND noninteractiveRUN SOURCES_LIST=/etc/apt/sources.list \ # 公司内网使用外源需添加下,使用内源时可删除 && echo "deb http://ftp.cn.debian.org/debian/ buster main non-free contrib" > ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian-security/ buster/updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-backports main non-free contrib" >> ${SOURCES_LIST} \ && apt-get update \ && apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends\ manpages manpages-dev bash-completion apt-utils locales\ perl perl-modules \ libtimedate-perl libdpkg-perl \ gcc g++ \ python3.7 python3.7-minimal libpython3.7-stdlib libpython3.7-minimal libpython3.7-minimal \ libssl1.1 perl liblzma5\ vim patch diffstat gawk subversion git-core colordiff file tree ctags global bc chrpath openssh-client \ python curl wget cmake \ lzma bzip2 xz-utils cpio ucf \ dos2unix docbook-xsl xsltproc \ dh-make debhelper pbuilder quilt debootstrap sbuild devscripts \ gfortran gnupg gperf lintian \ dpkg-sig u-boot-tools \ libncurses5 libncurses5-dev ncurses-dev libssl-dev libc6 libc6-dev \ libcap-dev libmount-dev libdbus-1-dev xutils-dev libgcc-7-dev \ libgcrypt11* binutils-multiarch libfile-homedir-perl libconfig-auto-perl \ dput emdebian-archive-keyring fakeroot build-essential \ qemu-system qemu-user qemu-utils qemu-user-static kmod \ net-tools uml-utilities openssh-server libc-dev linux-libc-dev \ rpm pkg-config make autoconf automake libtool \ intltool autotools-dev dpkg-dev patchutils alien bison flex libbison-dev \ libfl-dev libintl-perl libtext-unidecode-perl texinfo zip unzip docker.io \ squashfs-tools expect \ && apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends binfmt-support pkgconf\ && apt-get -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends autoremove \ && apt-get clean \ && rm -rf /var/lib/apt/lists #dh-exec dpatch dh-buildinfo gtk-doc-tools dh-autoreconf cdbs gnome-pkg-tools RUN echo '#!/bin/bash' > /tmp/install_sudo.sh \ # 公司内网使用外源需添加下,使用内源时可删除 && SOURCES_LIST=/etc/apt/sources.list \ && echo "deb http://ftp.cn.debian.org/debian/ buster main non-free contrib" > ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian-security/ buster/updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-backports main non-free contrib" >> ${SOURCES_LIST} \ && echo 'apt-get install -y --no-install-recommends sudo > /tmp/install_sudo.sh \ && echo 'Y' >> /tmp/install_sudo.sh \ && echo 'EOF' >> /tmp/install_sudo.sh \ && chmod 777 /tmp/install_sudo.sh \ && apt-get update \ && /bin/bash /tmp/install_sudo.sh \ && rm /tmp/install_sudo.sh \ && apt-get -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends autoremove \ && apt-get clean \ && rm -rf /var/lib/apt/lists \ && echo "update-binfmts --install aarch64 /usr/bin/qemu-aarch64-static --package=qemu-user-static \ --magic '\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7' \ --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff' > \ /dev/null 2>&1" >> /tmp/binfmt.sh \ && echo "update-binfmts --install armel /usr/bin/qemu-arm-static --package=qemu-user-static \ --magic '\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00' \ --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' > \ /dev/null 2>&1" >> /tmp/binfmt.sh \ && /bin/bash /tmp/binfmt.shRUN rm /bin/sh \ && ln -s /bin/bash /bin/sh \ && sh -c 'sed -ie "s/^UsePAM yes/UsePAM no/" /etc/ssh/sshd_config'#安装交叉编译环境RUN dpkg --add-architecture armel \ && dpkg --add-architecture arm64 \ && echo "update-binfmts --enable >> /dev/null 2>&1" >> /etc/bash.bashrc \ && source /etc/bash.bashrc \ # 公司内网使用外源需添加下,使用内源时可删除 && SOURCES_LIST=/etc/apt/sources.list \ && echo "deb http://ftp.cn.debian.org/debian/ buster main non-free contrib" > ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian-security/ buster/updates main non-free contrib" >> ${SOURCES_LIST} \ && echo "deb http://ftp.cn.debian.org/debian/ buster-backports main non-free contrib" >> ${SOURCES_LIST} \ && apt-get clean \ && apt-get update \ && apt-get install -y dpkg \ && apt-get install -y zstd \ && apt --fix-broken install \ && apt-get install -m -f -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends \ gcc-arm-linux-gnueabi g++-arm-linux-gnueabi \ gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \ && apt-get -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends autoremove \ && apt-get download \ libcap-dev:armel libjansson-dev:armel \ libmount-dev:armel libblkid-dev:armel uuid-dev:armel \ libdbus-1-dev:armel libdbus-1-3:armel libsystemd0:armel \ libssl-dev:armel libssl1.1:armel \ libgcc-7-dev:armel libstdc++-7-dev:armel \ libglib2.0-dev:armel libglib2.0-0:armel libpcre3-dev:armel \ libmount-dev:arm64 libblkid-dev:arm64 uuid-dev:arm64 \ libcap-dev:arm64 libjansson-dev:arm64 \ libdbus-1-dev:arm64 libdbus-1-3:arm64 libsystemd0:arm64 \ libssl-dev:arm64 libssl1.1:arm64 \ libgcc-7-dev:arm64 libstdc++-7-dev:arm64 \ libglib2.0-dev:arm64 libglib2.0-0:arm64 libpcre3-dev:arm64 \ && ls *.deb | xargs -I[] dpkg -X [] / >> /dev/null \ && rm -rf *.deb \ && rm -rf /var/lib/apt/lists#复制文件到docker镜像下COPY deb /opt/deb/RUN cd /opt/deb/ \ && ar x /opt/deb/sdk-lib.deb \ && zstd -d control.tar.zst | xz > control.tar.xz \ && zstd -d data.tar.zst | xz > data.tar.xz \ && ar -m -c -a sdsd sdk-lib2.deb debian-binary control.tar.xz data.tar.xz \ && rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst \ && dpkg --force-overwrite -i /opt/deb/sdk-lib2.deb \ && rm -Rf /opt/deb#RUN sh -c 'echo "huawei compile-sdk base docker `date`" > /etc/build-time'
发布时间 2022/09/08 18:41:08 最后回复 aldary 2023/07/09 03:01:13 版块 EC-IoT
146 9 0
发布时间 2022/09/08 18:41:08 最后回复 aldary 2023/07/09 03:01:13 版块 EC-IoT
146 9 0
发布时间 2021/05/26 17:36:17 最后回复 aldary 2023/07/08 23:34:39 版块 EC-IoT
5327 5 0
他的回复:
编译脚本不能用,./build_sdk_base.shdocker镜像制作就报错了: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libc6-dev:armel : Depends: libc6:armel (= 2.28-10+deb10u1) but it is not going to be installed                    Depends: libc-dev-bin:armel (= 2.28-10+deb10u1)                    Breaks: libc6-dev:arm64 (!= 2.28-10+deb10u1) but 2.28-10+deb10u2 is to be installed  libc6-dev:arm64 : Breaks: libc6-dev:armel (!= 2.28-10+deb10u2) but 2.28-10+deb10u1 is to be installed  libcap-dev:armel : Depends: libcap2:armel (= 1:2.25-2) but it is not going to be installed  libdbus-1-dev:armel : Depends: libdbus-1-3:armel (= 1.12.20-0+deb10u1) but it is not going to be installed                        Breaks: libdbus-1-dev:arm64 (!= 1.12.20-0+deb10u1) but 1.12.24-0+deb10u1 is to be installed  libdbus-1-dev:arm64 : Breaks: libdbus-1-dev:armel (!= 1.12.24-0+deb10u1) but 1.12.20-0+deb10u1 is to be installed  libgcc-7-dev:armel : Depends: libgcc1:armel (>= 1:7.4.0-6) but it is not going to be installed                       Depends: libgomp1:armel (>= 7.4.0-6) but it is not going to be installed                       Depends: libatomic1:armel (>= 7.4.0-6) but it is not going to be installed                       Depends: libasan4:armel (>= 7.4.0-6) but it is not going to be installed                       Depends: libubsan0:armel (>= 7.4.0-6) but it is not going to be installed                       Depends: libcilkrts5:armel (>= 7.4.0-6) but it is not going to be installed  libglib2.0-dev:armel : Depends: libffi-dev:armel (>= 3.0.0) but it is not going to be installed                         Depends: libglib2.0-0:armel (= 2.58.3-2+deb10u3) but it is not going to be installed                         Depends: libglib2.0-bin:armel (= 2.58.3-2+deb10u3)                         Depends: libglib2.0-dev-bin:armel (= 2.58.3-2+deb10u3)                         Depends: libpcre3-dev:armel (>= 1:8.31) but it is not going to be installed                         Depends: libselinux1-dev:armel but it is not going to be installed                         Depends: zlib1g-dev:armel but it is not going to be installed                         Breaks: libglib2.0-dev:arm64 (!= 2.58.3-2+deb10u3) but 2.58.3-2+deb10u4 is to be installed  libglib2.0-dev:arm64 : Breaks: libglib2.0-dev:armel (!= 2.58.3-2+deb10u4) but 2.58.3-2+deb10u3 is to be installed  libjansson-dev:armel : Depends: libjansson4:armel (= 2.12-1) but it is not going to be installed  libmount-dev:armel : Depends: libmount1:armel (= 2.33.1-0.1) but it is not going to be installed                       Depends: libblkid-dev:armel but it is not going to be installed  libssl-dev:armel : Depends: libssl1.1:armel (= 1.1.1n-0+deb10u3) but it is not going to be installed                     Breaks: libssl-dev:arm64 (!= 1.1.1n-0+deb10u3) but 1.1.1n-0+deb10u5 is to be installed  libssl-dev:arm64 : Breaks: libssl-dev:armel (!= 1.1.1n-0+deb10u5) but 1.1.1n-0+deb10u3 is to be installed  libstdc++-7-dev:armel : Depends: libstdc++6:armel (>= 7.4.0-6) but it is not going to be installed  linux-libc-dev:armel : Breaks: linux-libc-dev:arm64 (!= 4.19.249-2) but 4.19.282-1 is to be installed  linux-libc-dev:arm64 : Breaks: linux-libc-dev:armel (!= 4.19.282-1) but 4.19.249-2 is to be installed E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c dpkg --add-architecture armel     && dpkg --add-architecture arm64     && echo "update-binfmts --enable >> /dev/null 2>&1" >> /etc/bash.bashrc     && source /etc/bash.bashrc     && apt-get update     && apt-get install -y  --allow-downgrades --allow-remove-essential --allow-change-held-packages  --no-install-recommends             gcc-arm-linux-gnueabi g++-arm-linux-gnueabi             gcc-aarch64-linux-gnu g++-aarch64-linux-gnu         linux-libc-dev:armel libc6-dev:armel libcap-dev:armel libmount-dev:armel libdbus-1-dev:armel             libgcc-7-dev:armel libstdc++-7-dev:armel libglib2.0-dev:armel libjansson-dev:armel libssl-dev:armel         linux-libc-dev:arm64 libc6-dev:arm64 libcap-dev:arm64 libmount-dev:arm64 libdbus-1-dev:arm64             libgcc-7-dev:arm64 libstdc++-7-dev:arm64 libglib2.0-dev:arm64 libjansson-dev:arm64 libssl-dev:arm64     && apt-get -y  --allow-downgrades --allow-remove-essential --allow-change-held-packages  --no-install-recommends autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists' returned a non-zero code: 100
发布时间 2021/12/07 11:13:19 最后回复 aldary 2021/12/25 20:22:38 版块 EC-IoT
4683 4 0