Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried setting this up a while back and it returned an error, saying it would leave the package unconfigured. I was a complete newb then and figured "ok, at least all the data's there right?".. Now I'm trying to install ISPConfig so I can manage Ilohamail, and it tells me mysql isn't installed. So I marked all of my mysql packages for reinstallation, reinstall, even reboot, and it gives me the same error. So I uninstalled them all, and reinstalled them, this is the error I'm given...
Quote:
#Since I can't just copy the text over to here I'll type where the error #happens
* Stopping MySQL database server mysqld
...done.
* Starting MySQL database server mysqld
...fail!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql server depends on mysql-server 5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
I installed the empty shell version which picks the best version of MySQL for me, so I understand that part, what I don't understand is what is impeding the configuration of mysql-server-5.0.
i did not encounter dependency problems this way yet...
cheers, j
I did exactly what you said and I got this:
(log is huge so I selected the last half)
Quote:
Selecting previously deselected package libmysqlclient15-dev.
Unpacking libmysqlclient15-dev (from .../libmysqlclient15-dev_5.0.45-1ubuntu3.1_i386.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.0.45-1ubuntu3.1_all.deb) ...
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.1) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Setting up linux-libc-dev (2.6.22-14.52) ...
Setting up libc6-dev (2.6.1-1ubuntu10) ...
Setting up zlib1g-dev (1:1.2.3.3.dfsg-5ubuntu2) ...
Setting up libmysqlclient15-dev (5.0.45-1ubuntu3.1) ...
Setting up mysql-client (5.0.45-1ubuntu3.1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have proftpd and gproftpd installed, any clue in that?
Since I have those installed I would really rather not have to reinstall ubuntu.
Is there a way I can purge mysql more thoroughly than aptitude is capable of? I come from windows and when something goes wrong I uninstall, comb the registry, and reinstall... any parallel process in ubuntu?
I tried to install it (thus configure it) from the recovery mode, and I noticed it said:
Quote:
chown: cannot access '/var/run/mysqld': No such file or directory
* Starting My SQL database server mysqld [FAIL]
Ok so /var/run/mysqld isn't there... if I downloaded and redownloaded all these packages and in theory they were installed, why am I missing a directory? What do I need to DL that will add that directory? Considering this is trying to run the package I *just* installed, in recovery mode so all resources should be lockable, what gives?
EDIT:
I just rebooted into normal mode, var/run/mysqld does exist, but is entirely empty... do I need to install mysql as root account instead of Sudo?
Last edited by SimbaSpirit; 02-15-2008 at 02:11 AM.
Reason: update
Alright I tried the su method before, as well as doing from the root account.
I went to their site and the site is very busy, all I'm seeing are solutions that it looks like you have to pay for it.
I'm not planning on using mysql, just installing it so other programs will work, and as such I know very little about it, could someone give me a url to the binary?
After trying to fix it for some hours I gladly found this thread - and your solution helped.
In my interfaces file the two lines you mentioned had been commented out. I deleted the '#' for both lines, did a complete purge:
Quote:
sudo apt-get autoremove --purge mysql*
and after this a reinstall
Quote:
sudo apt-get install mysql-server mysql-client
Now everything went smoothly without errors.
Thank you very much!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.