【error fixed】E: Package 'oracle-java8-installer' has no installation candidate

问题:安装oracle-java8-installer按照如下指南失败:
How To Install Java with Apt-Get on Ubuntu 16.04[https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04]
解决:

sudo add-apt-repository ppa:ts.sch.gr/ppa
sudo apt-get update
sudo apt-get install oracle-java8-installer
posted @ 2020-06-01 11:18  hayley111  阅读(5092)  评论(0编辑  收藏  举报