【问题标题】:Docker java:7 image apt-get update cyclic dependenciesDocker java:7 image apt-get 更新循环依赖
【发布时间】:2016-06-07 01:48:47
【问题描述】:

我使用的是官方的 java:7 docker 镜像。当我对其运行 apt-get update 时,它​​会引发错误:

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

所以当我跑步时:

apt-get install apt-transport-https

它说找不到包裹

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package apt-transport-https

这是我的 /etc/apt/source.list

deb http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org jessie/updates main

我了解 apt-transport-https 需要“apt-get update”,反之亦然。 我可以使用

wget http://ftp.de.debian.org/debian/pool/main/a/apt/apt-transport-https_1.0.9.8.3_amd64.deb && dpkg -i apt-transport-https_1.0.9.8.3_amd64.deb

但是有更好的方法吗?

【问题讨论】:

  • 我刚刚尝试过(docker run -ti java:7 + apt-get update 内部)并且它有效(我有相同的 sources.list)。您使用最新版本(docker pull java:7)吗? /etc/apt/sources.list.d/ 有多余的文件吗?

标签: java docker debian apt-get


【解决方案1】:

似乎该特定版本存在一些错误,当我更新图像时它工作正常。

【讨论】:

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