Actualizado el viernes, 22 mayo, 2020
Solución al error: sudo: add-apt-repository: command not found, en Ubuntu 20.04 o Ubuntu 18.04.
Vaya sorpresa me lleve el otro día, al intentar instalar el ppa de Thierry (impresoras Canon), en Ubuntu 20.04 LTS. Al intentar agregar el repo correspondiente.
sudo add-apt-repository ppa:thierry-f/fork-michael-gruz
Me salta el siguiente error:
sudo: add-apt-repository: command not found
El motivo es simple, el paquete add-apt-repository no está instalado. La solución parece simple… instalar la aplicación…
sudo apt-get install add-apt-repository
Pues nooo…. eso no funciona.
La solución al error «sudo: add-apt-repository: command not found», es tan sencilla como ejecutar los siguiente.
sudo apt update sudo apt install software-properties-common
Ejemplo de salida…
root@sololinux:~# sudo apt-get install software-properties-common Reading package lists... Done Building dependency tree... Done The following additional packages will be installed: gir1.2-glib-2.0 iso-codes libgirepository-1.0-1 powermgmt-base python-apt-common python3-apt python3-dbus python3-gi python3-software-properties unattended-upgrades Suggested packages: isoquery python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg bsd-mailx default-mta | mail-transport-agent needrestart The following NEW packages will be installed: gir1.2-glib-2.0 iso-codes libgirepository-1.0-1 powermgmt-base python-apt-common python3-apt python3-dbus python3-gi python3-software-properties software-properties-common unattended-upgrades 0 upgraded, 11 newly installed, 0 to remove and 35 not upgraded. Need to get 3271 kB of archives. After this operation, 22.8 MB of additional disk space will be used. Do you want to continue? [Y/n]
Una vez instalado lo anterior, actualizamos el sistema.
sudo apt update sudo apt full-upgrade
Ya puedes agregar cualquier repositorio ppa, no tendras ningún problema.
Canales de Telegram: Canal SoloLinux – Canal SoloWordpress
Espero que este articulo te sea de utilidad, puedes ayudarnos a mantener el servidor con una donación (paypal), o también colaborar con el simple gesto de compartir nuestros artículos en tu sitio web, blog, foro o redes sociales. sudo: add-apt-repository: command not found.
Gracias
No hubiera pensado que ese error podría aparecer.
Thumbs Up!
Si Henry, si.
Típico error de Ubuntu server en VPS con OpenVZ.
muchas gracias por compartir
Gracias a ti por visitar sololinux.
Eh estado buscando como solucionar este error mucho tiempo solo había visto en ingles, gracias chicos!!
Gracias a ti por seguirnos Osvarcha.