如题,在 ubuntu 12.04 上面安装 jdk6 各种冲突,所以想找个现成的.
PS. https://github.com/caarmen/docker-mvn-jdk-6-7-8 这个试过了,报错:
Step 5/11 : RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list && apt-get update && apt-get install --no-install-recommends -qqy openjdk-6-jdk openjdk-7-jdk openjdk-8-jdk ---> Running in d8487b7d535d Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://ppa.launchpad.net/justinludwig/tzdata/ubuntu xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Ign:6 http://archive.ubuntu.com/ubuntu trusty InRelease Get:7 http://archive.ubuntu.com/ubuntu trusty Release [58.5 kB] Get:8 http://archive.ubuntu.com/ubuntu trusty Release.gpg [933 B] Get:9 http://archive.ubuntu.com/ubuntu trusty/main amd64 Packages [1743 kB] Get:10 http://archive.ubuntu.com/ubuntu trusty/restricted amd64 Packages [16.0 kB] Get:11 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages [7589 kB] Get:12 http://archive.ubuntu.com/ubuntu trusty/multiverse amd64 Packages [169 kB] Fetched 9577 kB in 39s (245 kB/s) Reading package lists... E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c echo "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list && apt-get update && apt-get install --no-install-recommends -qqy openjdk-6-jdk openjdk-7-jdk openjdk-8-jdk' returned a non-zero code: 100
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.