Como corrigir add-apt-repository: command not found
Problema
Ao tentar adicionar um repositório PPA no Ubuntu ou Debian, você pode encontrar o seguinte erro:
terminal-output.txt
$ sudo add-apt-repository ppa:some/ppa
sudo: add-apt-repository: command not foundSolução
O comando add-apt-repository é parte do pacote software-properties-common. Para instalá-lo, execute o seguinte comando:
install-software-properties.sh
sudo apt-get update
sudo apt-get install software-properties-commonApós isso, você deve conseguir usar o comando add-apt-repository sem problemas.
Caso você veja a mensagem de erro
terminal-output.txt
E: Unable to locate package software-properties-commonvocê pode estar usando Debian Trixie. Para Debian Trixie, eu não conheço um método direto de usar add-apt-repository. Como PPAs são projetados para Ubuntu, você pode querer procurar um repositório alternativo ou considerar atualizar para uma versão mais recente do Debian ou usar Ubuntu se você precisa de suporte explícito a PPA.
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow