我正在尝试在我的系统上安装 Java。
当我跑步时
sudo apt-get install default-jdk
我明白了
E:无法找到软件包 default-jdk
在此之前我用过
sudo apt-get update && apt-get upgrade
并得到:
>Ign:1 http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety InRelease
.
.
.
Err:16 http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety/main amd64 Packages
404 Not Found
.
.
.
yakkety/main DEP-11 64x64 Icons
Err:26 http://ppa.launchpad.net/jonathonf/vlc/ubuntu yakkety/main i386 Packages
404 Not Found
.
.
.
Fetched 2,802 B in 18s (154 B/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/jonathonf/vlc/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/yakkety/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/jonathonf/vlc/ubuntu/dists/yakkety/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我也尝试修复 PPA 存储库,但我不确定我是否朝着正确的方向努力。
我该如何解决这个问题?
答案1
我以前也发生过这种情况,尽管我的发布版本是受支持的版本(有时 oracle repo 会更新 Java,而 ppa 会尝试从旧链接下载安装程序)。
在此关联您可以看到以下内容:
Ubuntu 16.10 Yakkety Yak 不再受 Canonical 支持(因此 Launchpad 和此 PPA 也不再支持)。此 PPA 支持 Ubuntu 17.10、17.04、16.04、14.04 和 12.04。
不过,如果你需要在 Ubuntu 中安装 Java,我建议直接从 .tar.gz 文件安装这里按照安装说明操作,你只需要解压 .tar.gz 文件并更新 Java 的替代方案即可关联解释。