【问题标题】:E: Unable to locate package python-qt4 with openjdk:13.0.1-debian imageE: 无法使用 openjdk:13.0.1-debian 映像找到包 python-qt4
【发布时间】:2020-05-08 10:57:53
【问题描述】:

我正在尝试使用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 \

请帮忙。

【问题讨论】:

  • 什么是基础镜像?
  • debian:sid-slim

标签: python image docker pip debian


【解决方案1】:

这是因为 debs python-qt4 和 python-pip 在 sid 上不可用:https://packages.debian.org/search?keywords=python-qt4

但可以使用 backports 安装。将 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。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-01
    • 1970-01-01
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多