当我尝试
sudo apt-get install openjdk-7-jdk
Run Code Online (Sandbox Code Playgroud)
我收到一条消息,告诉我在数据库中找不到该包。我想我缺少存储库。
这是sources.list文件的内容:
deb http://fr.archive.ubuntu.com/ubuntu/ saucy restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-updates restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-security restricted universe multiverse
deb http://archive.canonical.com/ubuntu saucy partner
deb http://extras.ubuntu.com/ubuntu saucy main
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-proposed restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-backports restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)
哪个是安装 openjdk 7 的存储库。谢谢
当我做
sudo apt-get install -f
apt-cache policy openjdk-7-jdk
Run Code Online (Sandbox Code Playgroud)
我懂了 :
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
openjdk-7-jdk:
Installé : (aucun)
Candidat : 7u51-2.4.4-0ubuntu0.13.10.1
Table de …Run Code Online (Sandbox Code Playgroud)