繁体   English   中英

Docker Java:7映像apt-get更新循环依赖项

[英]Docker java:7 image apt-get update cyclic dependencies

我正在使用官方的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更新”,反之亦然。 我可以使用

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

但是有更好的方法吗?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM