我无法强制安装 Ubuntu 16.04 上另一个应用程序所需的旧版本(1 版之前)。有没有办法强制安装?
me@vm:/usr/lib/jvm$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'oracle-java8-installer' instead of 'openjdk-7-jdk'
oracle-java8-installer is already the newest version (8u181-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
me@vm:~$ sudo apt-get install -f openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'oracle-java8-installer' instead of 'openjdk-7-jdk'
oracle-java8-installer is already the newest version (8u181-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
答案1
您是否检查过 openjdk-7-jdk 是否在存储库中可用?如果没有,您应该添加一个有可用 openjdk-7 的存储库或通过 .tar.gz 手动安装