Solución a sudo add-apt-repository command not found, en Ubuntu, Debian, Linux Mint, Linux Lite, Zorin OS, elementary OS y resto de derivados.
Es un error bastante común que al intentar agregar un nuevo repositorio desde la consola / terminal, nos aparezca el error "command not found".
Por ejemplo:
sudo add-apt-repository ppa:repository/ppa
ejemplo de respuesta...
sudo: add-apt-repository: command not found
El error es producido por un error en "software-propertiess-common", o simplemente por que no lo tienes instalado.
Tranquilo!!!, la solución es sencilla.
En Ubuntu 14.04 y superiores tan solo debes ejecutar lo siguiente...
sudo apt-get update
sudo apt-get install -y software-properties-common
Podrás ver como se instala de nuevo, ejemplo:
$ sudo apt-get install -y software-properties-common
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 9384 B of archives.
After this operation, 188 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.8
Fetched 9384 B in 0s (47.0 kB/s)
Selecting previously unselected package software-properties-common.
(Reading database ... 62966 files and directories currently installed.)
Preparing to unpack .../software-properties-common_0.92.37.8_all.deb ...
Unpacking software-properties-common (0.92.37.8) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up software-properties-common (0.92.37.8) ...
Si aun tienes instalado un sistema Ubuntu 13.10 o inferior, el comando a ejecutar es diferente (el resultado el mismo).
sudo apt-get install -y python-software-properties
Si sufrías el problema "add-apt-repository command not found" ya ves que la solución era bien simple.
En Sololinux.es seguimos creciendo gracias a nuestros lectores, puedes colaborar con el simple gesto de compartir nuestros artículos en tu sitio web, blog, foro o redes sociales.
Read the full article