安装java8的时候,执行第一步报了sudo:add-apt-repository:command not found的错误。
经查找解决方案是,执行命令:add-apt-repository 的时候,除了要安装python-software-properties外还需要software-properties-common。
执行:sudo apt-get install software-properties-common 就可以解决。
本文介绍了在安装Java8过程中遇到的sudo add-apt-repository command not found错误及其解决方法。通过安装software-properties-common可以解决此问题。
安装java8的时候,执行第一步报了sudo:add-apt-repository:command not found的错误。
经查找解决方案是,执行命令:add-apt-repository 的时候,除了要安装python-software-properties外还需要software-properties-common。
执行:sudo apt-get install software-properties-common 就可以解决。
4950

被折叠的 条评论
为什么被折叠?