先执行这一行安装software-properties-commonpython-software-properties

sudo apt-get install software-properties-common python-software-properties

然后在执行add-apt-repository 命令即可

https://www.inbeijing.org/archives/1622