GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Correggi l'errore "comando add-apt-repository non trovato" su Ubuntu e Debian

Questo breve tutorial mostra come correggere rapidamente l'errore "comando add-apt-repository non trovato" su Debian, Ubuntu e altre distribuzioni Linux basate su Debian.

Uno dei tanti modi per installare software su Ubuntu o Debian è utilizzare un PPA (Personal Package Archive).

Se desideri aggiungere un nuovo repository PPA, dovrai utilizzare il comando add-apt-repository nel modo seguente:

sudo add-apt-repository ppa:some/ppa

In Debian, SO elementare e a volte su Ubuntu, vedrai l'errore che manca il comando add-apt-repository.

sudo:add-apt-repository:comando non trovato

Vediamo come correggere questo fastidioso errore.

Correzione add-apt-repository:errore comando non trovato

L'errore è semplice. Il pacchetto add-apt-repository non è installato sul tuo sistema.

Ma se provi a usare sudo apt-get install add-apt-repository, non funzionerà.

È perché il add-apt-repository comando fa parte del pacchetto software-properties-common ed è necessario installare questo pacchetto per installare add-apt-repository.

Quindi apri un terminale e usa questo comando:

sudo apt-get install software-properties-common

L'output del comando sarà qualcosa del genere:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  software-properties-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,912 B of archives.
After this operation, 197 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 software-properties-common all 0.96.24.32.5 [9,912 B]
Fetched 9,912 B in 2s (5,685 B/s)                      
Selecting previously unselected package software-properties-common.
(Reading database ... 265950 files and directories currently installed.)
Preparing to unpack .../software-properties-common_0.96.24.32.5_all.deb ...
Unpacking software-properties-common (0.96.24.32.5) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for dbus (1.12.2-1ubuntu1) ...
Setting up software-properties-common (0.96.24.32.5) ...

Dopo aver installato software-properties-common, dovresti aggiornare il sistema usando questo comando:

sudo apt-get update

Ora puoi usare comodamente i comandi add-apt-repository o apt-add-repository per aggiungere PPA.

Nota:se vedi un errore che dice che il comando software-properties-common non è stato trovato, dovresti eseguire sudo apt-get update e quindi provare a installarlo di nuovo.

Spero che questo suggerimento rapido ti abbia aiutato a correggere "add-apt-repository:comando non trovato" errore su Ubuntu e altre distribuzioni Linux basate su Debian.

Se riscontri ancora problemi con i PPA, faccelo sapere nella sezione commenti. Ulteriori suggerimenti, domande o una veloce parola di ringraziamento sono sempre i benvenuti.



Ubuntu
  1. [Risolto] Comando lsb_release non trovato in Ubuntu o derivati

  2. (Risolto) comando apt-add-repository non trovato – Ubuntu e Debian

  3. Come risolvere l'errore "semanage command" Not Found in CentOS

  4. Marca:Dh:Comando non trovato?

  5. Correzione sudo:add-apt-repository:comando non trovato errore

Come risolvere do-release-upgrade:comando non trovato Errore in Ubuntu

Come correggere l'errore "comando mkvirtualenv non trovato" {Aggiornamento 2022}

5 soluzioni - Come correggere l'errore "Comando Zsh non trovato" in Linux o macOS

Bash ifconfig:comando non trovato in Ubuntu e Debian

Come risolvere il comando Ifconfig non trovato su Ubuntu 20.04 LTS

Come risolvere il problema:il comando curl non ha trovato un errore