OpenVisualCloud / Smart-City-Sample

The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
BSD 3-Clause "New" or "Revised" License
186 stars 80 forks source link

The command '/bin/sh -c apt-get update -qq && apt-get install -qq python3-requests python3-ply vlc && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100 #807

Closed BeamSongzw closed 2 years ago

BeamSongzw commented 2 years ago

I used make to make project,and the error is below: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libl/liblivemedia/libbasicusageenvironment1_2018.02.18-1_amd64.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libb/libbdplus/libbdplus0_0.1.2-2_amd64.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/faad2/libfaad2_2.8.8-1_amd64.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libi/libipc-system-simple-perl/libipc-system-simple-perl_1.25-4_all.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libf/libfile-basedir-perl/libfile-basedir-perl_0.07-1_all.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libu/liburi-perl/liburi-perl_1.73-1_all.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libf/libfile-desktopentry-perl/libfile-desktopentry-perl_0.22-1_all.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libt/libtimedate-perl/libtimedate-perl_2.3000-2_all.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-format-perl/libhtml-format-perl_2.12-1_all.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libh/libhttp-cookies-perl/libhttp-cookies-perl_6.04-1_all.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libh/libhttp-daemon-perl/libhttp-daemon-perl_6.01-1_all.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libh/libhttp-negotiate-perl/libhttp-negotiate-perl_6.00-2_all.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/perl-openssl-defaults/perl-openssl-defaults_3build1_amd64.deb Connection failed [IP: 91.189.88.142 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libpostproc54_3.4.8-0ubuntu0.2_amd64.deb Connection failed [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/taglib/libtag1v5-vanilla_1.11.1+dfsg.1-0.2build2_amd64.deb Connection failed [IP: 91.189.88.142 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? The command '/bin/sh -c apt-get update -qq && apt-get install -qq python3-requests python3-ply vlc && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100 make[2]: [sensor/simulation/CMakeFiles/build_smtc_sensor_simulation.dir/build.make:57: sensor/simulation/CMakeFiles/build_smtc_sensor_simulation] Error 100 make[1]: [CMakeFiles/Makefile2:1451: sensor/simulation/CMakeFiles/build_smtc_sensor_simulation.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

I can not connect,what should I do now, my system is Ubuntu20.04 Thanks.

BeamSongzw commented 2 years ago

I want to know how to edit the source in docker centos.

BeamSongzw commented 2 years ago

I already slove this quetsion,I change Dockfile,like below.

FROM ubuntu:18.04 ADD sources.list /etc/apt/ RUN apt-get update && apt-get install python3-requests python3-ply vlc -y && rm -rf /var/lib/apt/lists/ COPY .py /home/ COPY archive/.mp4 /mnt/simulated/ COPY --from=smtc_common /home/.py /home/ CMD ["/home/simulate.py"] ENV PYTHONIOENCODING=UTF-8

ARG USER=docker ARG GROUP=docker

VLC must run as nonroot

RUN groupadd ${GROUP} && \ useradd -d /home -M -g ${GROUP} ${USER} && \ chown -R ${USER}:${GROUP} /home USER ${USER}

Maybe I am in China that can find this question.