如何使用终端安装'add-apt-repository'?

我想安装:
add-apt-repository ppa:ricotz/testin

显示如下内容:
The program add-apt-repository is currently not installed.
You can install it by typing:
sudo apt-get install python-software-properties

现在我应该做什么?

sudo add-apt-repository ppa:ricotz/testin - prusswan
19当前未安装程序'add-apt-repository'。您可以通过输入以下命令进行安装: apt-get install python-software-properties - Akankha Ahmed
1你使用的是哪个版本的Ubuntu? - Pandya
4只需复制并粘贴命令,就可以完成所要求的操作了,兄弟... - skybldev
4add-apt-repository 是由 software-properties-common 提供的 请参阅文件列表 - TarranJones
1个回答

试试这些:
sudo apt-get install software-properties-common

和/或
sudo apt-get install python3-software-properties

和/或
sudo apt-get install python-software-properties

sudo apt-get install python3-software-properties显示如下:软件包 python3-software-properties 不可用,但可以通过其他软件包引用。 这可能意味着该软件包已丢失、已过时或仅在其他来源中可用。E: 软件包 'python3-software-properties' 没有安装候选项。 - Akankha Ahmed
sudo apt-get install software-properties-common。显示software-properties-common已经是最新版本。 - Akankha Ahmed
当我尝试安装“add-apt-repository ppa:ricotz/testing”时,显示如下信息:“add-apt-repository”程序当前未安装。您可以通过输入以下命令进行安装:apt-get install python-software-properties - Akankha Ahmed
你使用的是哪个Ubuntu版本? - Jos
43在Ubuntu 14.04中,似乎只需要执行apt-get install software-properties-common命令即可。 - qris
16在一个Docker镜像上测试了这个。需要安装software-properties-commonpython-software-properties - Thamme Gowda
add-apt-repository 是由 software-properties-common 提供的 请参阅文件列表 - TarranJones
1在新的Debian上进行了测试,还需要安装software-properties-common和python-software-properties软件包。 - Ice09
3ubuntu:latest的Docker镜像报错:E: 无法找到软件包software-properties-common。 - Martin Thoma
6如果出现“无法定位软件包”的错误,请确保首先运行“apt-get update”。 - David Birks
在docker的ubuntu:latest镜像中,在执行apt update和安装software-properties-common之后可以正常工作。 - Madacol