|
发表于 2021-12-6 19:48:46
2404 浏览 0 回复
ubuntu14.04 Cannot add PPA: 'ppa:openjdk-r/ppa'.
Q:
xxx@xxx-virtual-machine:~$ sudo add-apt-repository ppapenjdk-r/ppa
Cannot add PPA: 'ppapenjdk-r/ppa'.
Please check that the PPA name or format is correct.
xxx@xxx-virtual-machine:~$ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk-8-jdk
s:
1是CA证书损坏,可以通过命令 sudo apt-get install --reinstall ca-certificates来修复;
2是网络代理问题,可以通过sudo -E add-apt-repository ppa:webupd8team/java把上面第一条命令换掉来解决问题
- sudo apt-get install --reinstall ca-certificates
- sudo add-apt-repository ppa:openjdk-r/ppa
- sudo apt-get update
- sudo apt-get install openjdk-8-jdk
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|