The error is
=====
Configurando moodle (1.8.2-1.2ubuntu2) ...
* Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.
uid=113(moodle-miquel) gid=65534(nogroup) grupos=65534(nogroup)
ERROR: error de sintaxis en o cerca de «-»
LINE 1: CREATE ROLE moodle-miquel PASSWORD 'murphyaiken' NOSUPERUSER... ^
dpkg: error al procesar moodle (--configure):
el subproceso post-installation script devolvió el código de salida de error 1
=====
It looks like the role "moodle-miquel" is invalid. Could you please retry with a role name without the "-"
Thanks for your report
The error is moodle- miquel) gid=65534(nogroup) grupos= 65534(nogroup)
^
=====
Configurando moodle (1.8.2-1.2ubuntu2) ...
* Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.
uid=113(
ERROR: error de sintaxis en o cerca de «-»
LINE 1: CREATE ROLE moodle-miquel PASSWORD 'murphyaiken' NOSUPERUSER...
dpkg: error al procesar moodle (--configure):
el subproceso post-installation script devolvió el código de salida de error 1
=====
It looks like the role "moodle-miquel" is invalid. Could you please retry with a role name without the "-"
Thanks.