-
Notifications
You must be signed in to change notification settings - Fork 41
Description
docker build --network=host -t maixcdk-builder . 报错
几个月前我用同样方法获取镜像能正常获取,最近就报错下载不了了,ubuntu22.04虚拟机什么也没动啊
//////////////////////////////报错信息////////////////////////////////////////////
82.85 Building dependency tree...
83.30 Reading state information...
83.71 E: Unable to locate package python3.11
83.71 E: Couldn't find any package by glob 'python3.11'
83.71 E: Couldn't find any package by regex 'python3.11'
83.71 E: Unable to locate package python3.11-venv
83.71 E: Couldn't find any package by glob 'python3.11-venv'
83.71 E: Couldn't find any package by regex 'python3.11-venv'
83.71 E: Unable to locate package python3.11-dev
83.71 E: Couldn't find any package by glob 'python3.11-dev'
83.71 E: Couldn't find any package by regex 'python3.11-dev'
1 warning found (use docker --debug to expand):
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 3)
Dockerfile:11
10 |
11 | >>> RUN apt-get update
12 | >>> && apt-get install -y software-properties-common
13 | >>> && add-apt-repository -y ppa:deadsnakes/ppa
14 | >>> && apt-get update
15 | >>> && apt-get install build-essential vim
16 | >>> git libncurses5-dev zlib1g-dev gawk
17 | >>> libssl-dev unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6
18 | >>> ca-certificates file g++-multilib libc6:i386 locales
19 | >>> python3 python3-pip rsync shellcheck
20 | >>> libopencv-dev libopencv-contrib-dev
21 | >>> libsdl2-dev
22 | >>> python3.11 python3.11-venv python3.11-dev
23 | >>> unzip wget sudo -y
24 | >>> && rm /usr/bin/python3
25 | >>> && ln -s /usr/bin/python3.11 /usr/bin/python3
26 | >>> && python3 -m ensurepip --upgrade
27 | >>> && apt-get purge -yq
28 | >>> && apt-get autoremove -yq --purge
29 | >>> && apt-get clean
30 | >>> && rm -rf /var/lib/apt/lists/*
31 | >>> && rm -rf /tmp/*
32 |
ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update \t&& apt-get install build-essential vim git libncurses5-dev zlib1g-dev gawk libssl-dev unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 ca-certificates file g++-multilib libc6:i386 locales python3 python3-pip rsync shellcheck libopencv-dev libopencv-contrib-dev libsdl2-dev python3.11 python3.11-venv python3.11-dev unzip wget sudo -y && rm /usr/bin/python3 && ln -s /usr/bin/python3.11 /usr/bin/python3 && python3 -m ensurepip --upgrade && apt-get purge -yq && apt-get autoremove -yq --purge && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*" did not complete successfully: exit code: 100
root@NJZY:/home/njzy/sipeed/maix/MaixCDK/docs/doc/dev/docker# python3.11 --version
Python 3.11.14
root@NJZY:/home/njzy/sipeed/maix/MaixCDK/docs/doc/dev/docker#