[英]Docker java:7 image apt-get update cyclic dependencies
I am using the official java:7 docker image. 我正在使用官方的java:7 docker映像。 When I run apt-get update on it, it throws an error:
当我对其运行apt-get update时,它会引发错误:
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
So when I run: 因此,当我运行时:
apt-get install apt-transport-https
It says unable to locate the package 它说找不到包裹
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apt-transport-https
Here is my /etc/apt/source.list 这是我的/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
I understand that apt-transport-https requires "apt-get update" and vice versa. 我了解apt-transport-https需要“ apt-get更新”,反之亦然。 I can get the packages using
我可以使用
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
But is there a better way ? 但是有更好的方法吗?
似乎该特定版本存在一些错误,当我更新映像时,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.