Ubuntu/Debian Linux 错误:bash: add-apt-repository: command not found解决办法
admin 阅读:66 2024-03-02
在 Debian 或 Ubuntu Linux 上添加 ansible PPA 时,运行安装命令报错:bash: add-apt-repository: command not found
sudo apt-add-repository ppa:ansible/ansible
解决步骤如下:
1、在 Ubuntu 或 Debian Linux 上打开终端应用程序。
2、更新 apt :
sudo apt update
sudo apt upgrade
3、安装 software-properties-common 包
sudo apt install software-properties-common
4、再次执行命令,成功运行
sudo apt-add-repository ppa:ansible/ansible
apt list -a ansible
sudo apt install ansible

声明
1、部分文章来源于网络,仅作为参考。 2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!