我正在使用官方的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
但是有更好的方法吗?
答案 0 :(得分:0)
似乎该特定版本存在一些错误,当我更新图像时,它工作正常。