我正在尝试使用openjdk:13.0.1-debian构建镜像,并得到以下错误:
E: Unable to locate package python-qt4
E: Unable to locate package python-pip下面是我试图安装的镜像的一部分。
RUN apt-get update -y && apt-get install -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 --no-install-recommends -y \
python-qt4 \
python-pip \请帮帮忙。
发布于 2020-05-08 21:23:31
这是因为在sid:https://packages.debian.org/search?keywords=python-qt4上不能使用debs python-qt4和python-pip
但可以与后端口一起安装。将buster后端添加到sources.list
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main或者直接使用debian:buster。
https://stackoverflow.com/questions/61677575
复制相似问题