通过 Dockerfile 自行构建MaixCDK Docker系统镜像时报错
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 143
- Forks
- 51
- Avg merge
- 3m
- Merged PRs (30d)
- 1
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#
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Dockerfile under docs/doc/dev/docker, especially the apt commands at line 11 and the Python 3.11 package entries at line 22. Re-run docker build --network=host -t maixcdk-builder . and inspect the base image and package sources when reproducing the failure. Done means the MaixCDK builder image builds successfully with the required Python packages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100