Docker java:7图像apt-get更新循环依赖关系

我正在使用官方的Java:7泊坞窗图像。 当我运行apt-get更新时,会引发错误:

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 

它说无法find包

 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 

但有没有更好的办法?

看来,这个特定的版本有一些错误,当我更新图像,它工作正常。