PDA

View Full Version : dependency problems on debian 4.0



wotuzu17
2007-07-12, 02:46
Hello Experts,

I've just set up a debian 4.0 OS for the first time in my life, and then tried to install slimserver as described on the support page.

I already have experience with Suse Linux, but not with Debian or any of its derrivates.

Here is part of the output of the install command:

localhost:/etc/apt# apt-get install slimserver
[...]
Setting up libdbd-mysql-perl (3.0008-1) ...
Setting up mysql-client-5.0 (5.0.32-7etch1) ...
Setting up mysql-server-5.0 (5.0.32-7etch1) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
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
Setting up liboggflac3 (1.1.2-6) ...
[...]
dpkg: dependency problems prevent configuration of mysql-server-4.1:
mysql-server-4.1 depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server-4.1 (--configure):
dependency problems - leaving unconfigured
Setting up sox (12.17.9-1) ...
dpkg: dependency problems prevent configuration of slimserver:
slimserver depends on mysql-server-4.1 | mysql-server-5.0; however:
Package mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 which provides mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 is not configured yet.
dpkg: error processing slimserver (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server-4.1
slimserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
localhost:/etc/apt#


Ok, how to fix that?

bhaagensen
2007-07-12, 04:13
Try 'apt-get -f install'. You could also check wether mysql can be
started by '/etc/init.d/mysql start' since the problems seems to be
caused by the installationsscripts failing to start mysql.

wotuzu17
2007-07-12, 04:50
thanks for the reply.

for some reason mysql would not start. Is there anything to configure manually?

localhost:/home/voellenk# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.0.32-7etch1) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
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-4.1:
mysql-server-4.1 depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server-4.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of slimserver:
slimserver depends on mysql-server-4.1 | mysql-server-5.0; however:
Package mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 which provides mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 is not configured yet.
dpkg: error processing slimserver (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server-4.1
slimserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
localhost:/home/voellenk#

localhost:/home/voellenk# /etc/init.d/mysql status
MySQL is stopped..
localhost:/home/voellenk# /etc/init.d/mysql start
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
localhost:/home/voellenk#

bpa
2007-07-12, 04:54
Package mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 which provides mysql-server-4.1 is not configured yet.
Package mysql-server-5.0 is not configured yet.


For some reason mysql-server seems not to have been installed and/or configured properly. Try manually install mysql-server-4.1 first and make sure it works, then mysql-server-5.0 and when mysql-server is known to be ok then install slimserver.

wotuzu17
2007-07-12, 05:37
after I reboot the machine, the mysqld is active.

however, once I stop it, it won't start again.

I tried some remove/installing of the mysql packages, but that doesn't help.




localhost:/home/voellenk# /etc/init.d/mysql status
/usr/bin/mysqladmin Ver 8.41 Distrib 5.0.32, for pc-linux-gnu on i486
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version 5.0.32-Debian_7etch1-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 5 min 40 sec

Threads: 1 Questions: 135 Slow queries: 0 Opens: 135 Flush tables: 1 Open tables: 17 Queries per second avg : 0.397.
localhost:/home/voellenk# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
localhost:/home/voellenk# /etc/init.d/mysql start
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

bpa
2007-07-12, 06:37
The standard slimserver launches its own mysqld and uses it.

Since you have a mysqld already running, if you want to use the system mysqld, you need to change your slimserver mysql configuration in the my.tt file (in the Slimserver MySql directory) to use your system mysqld. Otherwise check the my.tt to see why slimserver' own mysqld is failing - check the slimserver mysql log.

bpa
2007-07-12, 06:42
I didn't look at the log very carefully before. It seems that you cannot stop/start your own mysqld and it looks to be unconnected to slimserver. S solve this issue first.

Check out the MySQL log file to see why it has failed. Perhaps not enough privileges to start mysql ?

wotuzu17
2007-07-12, 07:39
I just finished the basic online-installation of debian before I tried to install slimserver, using the manual on the SD homepage. I didn't do any other configuration.

I also don't need any mysql server on my machine apart from the one slimserver requires.

But I'm not an expert, and maybe there is something that is obvious but I don't notice.


The mysql-logs are empty:
localhost:/var/log# ls -la mysql.*
-rw-r----- 1 mysql adm 0 2007-07-12 13:12 mysql.err
-rw-r----- 1 mysql adm 0 2007-07-12 13:12 mysql.log


when I try to start slimserver via startscript:
localhost:/# /etc/init.d/slimserver.dpkg-new start
Starting SlimServer Audio Serverstart-stop-daemon: user `slimserver' not found
(Success)
localhost:/#

bhaagensen
2007-07-12, 08:01
I just finished the basic online-installation of debian before I tried to install slimserver, using the manual on the SD homepage. I didn't do any other configuration.

I also don't need any mysql server on my machine apart from the one slimserver requires.

But I'm not an expert, and maybe there is something that is obvious but I don't notice.


The mysql-logs are empty:
localhost:/var/log# ls -la mysql.*
-rw-r----- 1 mysql adm 0 2007-07-12 13:12 mysql.err
-rw-r----- 1 mysql adm 0 2007-07-12 13:12 mysql.log


when I try to start slimserver via startscript:
localhost:/# /etc/init.d/slimserver.dpkg-new start
Starting SlimServer Audio Serverstart-stop-daemon: user `slimserver' not found
(Success)
localhost:/#

'slimserver' user is probably unknown since the installation of slimserver never succesfully finished. As bpa said, yuu must solve the mysql installation issue first. Whether you are using ss sql or system sql should not affect your current problems. But mysql needs to be successfully installed since the slimsever package depends on it.

When you try to start mysqld, does 'syslog' or 'messages' (in /var/log) record any useful info? I got to go, but you could try google for the mysql issue on etch. Perhaps it's an issue others have had.

wotuzu17
2007-07-12, 11:25
thanks for your support.

So far I couldn't slove the problem. I decided to try it with Ubuntu Linux tomorrow. I don't care what OS the server runs, as long as it runs stable.

bpa
2007-07-12, 11:39
Try SlimCD then
http://forums.slimdevices.com/showthread.php?t=36538

jesperthomsen
2007-07-28, 10:45
I got this solved following the advice I found here: http://forums.vpslink.com/showthread.php?t=1608

Killing safe_mysql and running apt-get install slimserver and now it's up and running.

Now my sugarcrm installation is toast though, so it's not a great solution if you need your mysql for anything else.