Isso acontece porque o banco de dados MySQL com o qual o Moodle está tentando se conectar não reconhece o root como um usuário autorizado. É provável que você precise configurar o MySQL corretamente antes de continuar.
Quando no Ubuntu e tento instalar um programa não relacionado ao Moodle, recebo uma mensagem de erro referente a erros de processamento do Moodle:
# apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
screen is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 162 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up moodle (1.9.9.dfsg2-3) ...
dbconfig-common: writing config to /etc/dbconfig-common/moodle.conf
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO).
unable to connect to mysql server.
error encountered creating user:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
dpkg: error processing moodle (--configure):
subprocess installed post-installation script returned error exit status 10
No apport report written because MaxReports is reached already
Errors were encountered while processing:
moodle
E: Sub-process /usr/bin/dpkg returned an error code (1)
Por que isso acontece e como instalar o software sem esse erro / referência ao Moodle?
Eu tentei usar o apt-get
para remover o Moodle
root@bnserver:/var/crash# sudo apt-get remove moodle
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
moodle
0 upgraded, 0 newly installed, 1 to remove and 162 not upgraded.
1 not fully installed or removed.
After this operation, 53.8 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 184717 files and directories currently installed.)
Removing moodle ...
dpkg: error processing moodle (--remove):
subprocess installed pre-removal script returned error exit status 10
No apport report written because MaxReports is reached already
dbconfig-common: flushing administrative password
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
moodle
E: Sub-process /usr/bin/dpkg returned an error code (1)
Isso acontece porque o banco de dados MySQL com o qual o Moodle está tentando se conectar não reconhece o root como um usuário autorizado. É provável que você precise configurar o MySQL corretamente antes de continuar.