简体   繁体   English

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

[英]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.

相关问题 使用 Beam Java SDK 在 Google Dataflow 上安装 apt-get 依赖项 - Install apt-get dependencies on Google Dataflow with Beam Java SDK apt-get安装oracle java 7停止工作 - apt-get installing oracle java 7 stopped working 使用 apt-get 在 Google Compute Engine 实例上安装 Java 8 - Installing Java 8 on a Google Compute Engine instance with apt-get 解决java中的循环依赖 - Solving cyclic dependencies in java 使用 apt-get install 安装 maven 会用 Java11 覆盖 Java8 - Installing maven using `apt-get install` overwrites Java8 with Java11 JDK可以使用`apt-get install`吗? - Can `apt-get install` be used for JDK? 在Ubuntu 16.04中执行命令“ sudo apt-get install oracle-java6-installer”时出错 - Error during the execution of command “sudo apt-get install oracle-java6-installer” in Ubuntu 16.04 Java 9中是否可以使用循环模块依赖? - Will Cyclic Module Dependencies be Possible in Java 9? 如果Linux Distro没有从正在运行的Java程序中安装它,我如何告诉Linux Distro apt-get安装LibVLC? - How can I tell a Linux Distro to apt-get install LibVLC if it doesn't have it from a running Java Program? apt-get install -y openjdk-8-jdk 失败 - Apt-get install -y openjdk-8-jdk fails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM