add-apt-repository:command not found

系统环境:ubuntu 14.04 - minimal,bandwagonhost VPS
直接执行命令:

1
add-apt-repository ppa:webupd8team/java

显示错误:add-apt-repository:command not found,网上解决办法是直接安装python-software-properties

1
apt-get install python-software-properties

安装后还是报command not found,网上查找资料发现安装python-software-properties外还需要software-properties-common

1
apt-get install software-properties-common

终于成功了