apt-get moodle ERROR 1045

apt-get moodle ERROR 1045

by Dan Baker -
Number of replies: 3

 

Hi, When in Ubuntu 11.04 and I try to install a program not related to Moodle  I get an error message that refers to Moodle processing errors:

# 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)

 

Why does this happen and how can Install software without this error / reference to Moodle?

 

Thanks,

 

Dan

 

Average of ratings: -
In reply to Dan Baker

Re: apt-get moodle ERROR 1045

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm guessing that if you try to 'apt-get install' anything you will get this - my assumption is that it is resuming a failed install of the Moodle package (which I would strongly discourage you to use). Try this...

sudo apt-get install -f

(on its own) and see what happens. 

In reply to Dan Baker

Re: apt-get moodle ERROR 1045

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
See: 'Debian based Linux: Ban "apt-get install moodle"!' https://moodle.org/mod/forum/discuss.php?d=196512.

These are the alternatives:
- http://docs.moodle.org/en/Step-by-step_Installation_Guide_for_Ubuntu
- "Installing Moodle on a Debian-based LAMP server" http://www.syndrega.ch/?p=38
In reply to Visvanath Ratnaweera

Re: apt-get moodle ERROR 1045

by Dan Baker -

Thanks guys I will look into this with our Linux guy.

 

 

Dan