Question

como corrijo este error al instalar mysql en ubunto

camilo123-pc:~$ sudo apt install mysql-server Leyendo lista de paquetes… Hecho Creando árbol de dependencias
Leyendo la información de estado… Hecho mysql-server ya está en su versión más reciente (8.0.26-0ubuntu0.20.04.2). 0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 158 no actualizados. 2 no instalados del todo o eliminados. Se utilizarán 0 B de espacio de disco adicional después de esta operación. ¿Desea continuar? [S/n] s Configurando mysql-server-8.0 (8.0.26-0ubuntu0.20.04.2) … Renaming removed key_buffer and myisam-recover options (if present) ERROR: Unable to start MySQL server: mysqld: Can’t read dir of ‘/etc/mysql/conf.d/’ (OS errno 2 - No such file or dir ectory) mysqld: [ERROR] Fatal error in defaults handling. Program aborted! Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues. Once the problem is resolved, run apt-get --fix-broken install to retry. dpkg: error al procesar el paquete mysql-server-8.0 (–configure): el subproceso instalado paquete mysql-server-8.0 script post-installation devol vió el código de salida de error 1 No se escribió un informe «apport» porque el mensaje de error indica que es un m ensaje de error asociado a un fallo previo. dpkg: problemas de dependencias impid en la configuración de mysql-server: mysql-server depende de mysql-server-8.0; sin embargo: El paquete `mysql-server-8.0’ no está configurado todavía.

dpkg: error al procesar el paquete mysql-server (–configure): problemas de dependencias - se deja sin configurar Se encontraron errores al procesar: mysql-server-8.0 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

There seems to have been a similar question asked here:

https://www.digitalocean.com/community/questions/mysql-installation-error-dpkg-error-processing-package-mysql-server-5-5-configure

I could suggest following the steps from that answer there as it seems to have helped a few people with that problem.

Let me know how it goes! Regards, Bobby