|
发表于 2022-9-6 11:59:22
1694 浏览 0 回复
sudo: add-apt-repository: command not found
问题:
安装jdk1.8,会出现如下报错:add-apt-repository: command not found
- nm_svr01@ubuntu:~/MT8788_9.0/mt8788_v5.196$ sudo add-apt-repository ppa:openjdk-r/ppa
- sudo: add-apt-repository: command not found
复制代码 解决方法:
add-apt-repository 命令是software-properties-common包的一部分,因此安装这个包就OK了
- sudo apt-get install software-properties-common
- sudo apt-get update
复制代码
解决完成:
- nm_svr01@ubuntu:~/MT8788_9.0/mt8788_v5.196$ sudo add-apt-repository ppa:openjdk-r/ppa
-
- More info: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa
- Press [ENTER] to continue or ctrl-c to cancel adding it
- gpg: keyring `/tmp/tmp7im1j0fx/secring.gpg' created
- gpg: keyring `/tmp/tmp7im1j0fx/pubring.gpg' created
- gpg: requesting key 86F44E2A from hkp server keyserver.ubuntu.com
- gpg: /tmp/tmp7im1j0fx/trustdb.gpg: trustdb created
- gpg: key 86F44E2A: public key "Launchpad OpenJDK builds (all archs)" imported
- gpg: Total number processed: 1
- gpg: imported: 1 (RSA: 1)
- OK
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|