E: 无法使用 openjdk:13.0.1-debian 映像定位软件包 python-qt4
E: Unable to locate package python-qt4 with openjdk:13.0.1-debian image
我正在尝试使用 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 \
请帮忙。
那是因为 debs python-qt4 和 python-pip 在 sid 上不可用:https://packages.debian.org/search?keywords=python-qt4
但可以通过反向移植安装。将 buster backports 添加到 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.
我正在尝试使用 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 \
请帮忙。
那是因为 debs python-qt4 和 python-pip 在 sid 上不可用:https://packages.debian.org/search?keywords=python-qt4
但可以通过反向移植安装。将 buster backports 添加到 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.