我使用的是官方的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/soure.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但是有没有更好的方法呢?
发布于 2016-03-30 18:15:25
似乎那个版本有一些错误,当我更新图像时,它工作得很好。
https://stackoverflow.com/questions/35607788
复制相似问题