You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources &&
sed -i 's/security.debian.org/mirrors.aliyun.com/debian-security/g' /etc/apt/sources.list.d/debian.sources
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
/tmp/apt-dpkg-install-JUsG7n/43-libglx0_1.7.0-1+b2_arm64.deb
/tmp/apt-dpkg-install-JUsG7n/44-libgl1_1.7.0-1+b2_arm64.deb
/tmp/apt-dpkg-install-JUsG7n/45-libwayland-client0_1.23.1-3_arm64.deb
/tmp/apt-dpkg-install-JUsG7n/46-mesa-vulkan-drivers_25.0.7-2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/apt/archives/.deb /var/cache/apt/archives/partial/.deb /var/cache/apt/.bin || true'
E: Sub-process returned an error code
The command '/bin/sh -c apt-get install -y fonts-noto-core fonts-noto-cjk fontconfig libgl1 && fc-cache -fv && apt-get clean && rm -rf /var/lib/apt/lists/' returned a non-zero code: 100
[root@liteserver-lt-zy ParsingTool]# ^C
docker build -t mineru-cpu:latest . 的时候 出现上面的问题
下面是dockerfile
FROM m.daocloud.io/docker.io/library/python:3.10-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV MINERU_MODEL_SOURCE=modelscope
更换 Debian 软件源为阿里云镜像
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources &&
sed -i 's/security.debian.org/mirrors.aliyun.com/debian-security/g' /etc/apt/sources.list.d/debian.sources
安装依赖包,使用 libgl1-mesa-glx 替代 libgl1
RUN apt-get update &&
apt-get install -y
fonts-noto-core
fonts-noto-cjk
fontconfig
libgl1-mesa-glx
libglib2.0-0 &&
fc-cache -fv &&
apt-get clean &&
rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install -U pip &&
python3 -m pip install -U "mineru[all]" -i https://mirrors.aliyun.com/pypi/simple &&
python3 -m pip cache purge
RUN mineru-models-download -s modelscope -m all || true
EXPOSE 7860
ENTRYPOINT ["mineru-gradio","--server-name","0.0.0.0","--server-port","7860","--backend","pipeline","--device","cpu"]
~
但是还是不好使
![Uploading image.png…]()
Beta Was this translation helpful? Give feedback.
All reactions