Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID
Advertise on LowEndTalk.com

In this Discussion

Need help on Debian 6 Mysql install

Need help on Debian 6 Mysql install

LAKidLAKid Member
edited August 2012 in General

this is what I've got trying to install apache2, Any idea how to fix it?

apt-get install apache2 Reading package lists... Done Building dependency tree
Reading state information... Done apache2 is already the newest version. The following packages were automatically installed and are no longer required: sendmail-cf sendmail-base Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 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 mysql-server-5.1 (5.1.63-0+squeeze1) ... 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.1 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.1; however: Package mysql-server-5.1 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured configured to not write apport reports configured to not write apport reports Errors were encountered while processing: mysql-server-5.1 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)

Tagged:

Comments

  • Have you make some changes to your mysql config?

    www.erawanarifnugroho.com - powered by Prometeus XenBiz | Server Uptime status - powered by Prometeus Xen Pune
    I'm not working for any providers in here, all my comments just my own opinion.
  • LAKidLAKid Member
    edited August 2012

    I didn't, but one of my co-workers were doing something, he said he didn't do any, but probably did some, I have no idea what's going on. i could give you root passwd if you want to try some..

  • HalfEatenPieHalfEatenPie Member
    edited August 2012

    run free -m?

    mysqld failed to start, I'm thinking memory issue but I could be wrong (assuming this is a leb).

    Catalyst Host - Pie Approved!
  • Apt-get purge mysql* add Percona's repo and install their version www.percona.com

  • Below is Ram status, trying free -m total used free shared buffers cached Mem: 508 433 75 0 101 215 -/+ buffers/cache: 116 392 Swap: 1023 0 1023

  • @LAKid: It seems like it doesn't have enough ram at the moment :P

    Try running ps aux and pasting it here (using the pre tags please, makes looking at it easier.

    Catalyst Host - Pie Approved!
  • LAKidLAKid Member
    edited August 2012

    apt-get purge mysql* After this operation, 105 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 89685 files and directories currently installed.) Removing mysql-server ... Removing mysql-server-5.1 ... Stopping MySQL database server: mysqld. Purging configuration files for mysql-server-5.1 ... Removing mysql-client ... Removing mysql-client-5.1 ... Removing mytop ... Purging configuration files for mytop ... Removing libdbd-mysql-perl ... Removing libmysqlclient15off ... Purging configuration files for libmysqlclient15off ... Removing phpmyadmin ... dpkg: error processing phpmyadmin (--purge): subprocess installed post-removal script returned error exit status 10 configured to not write apport reports Removing php5-mysql ... Purging configuration files for php5-mysql ... Removing proftpd-mod-mysql ... Removing libmysqlclient16 ... Purging configuration files for libmysqlclient16 ... Removing mysql-common ... Purging configuration files for mysql-common ... dpkg: warning: while removing mysql-common, directory '/etc/mysql' not empty so not removed. Removing mysql-server-core-5.1 ... Processing triggers for man-db ... Processing triggers for libapache2-mod-php5 ... Reloading web server config: apache2[Fri Aug 03 17:15:42 2012] [warn] module negotiation_module is already loaded, skipping [Fri Aug 03 17:15:42 2012] [warn] NameVirtualHost 81.209.164.168:80 has no VirtualHosts [Fri Aug 03 17:15:42 2012] [warn] NameVirtualHost *:80 has no VirtualHosts . Errors were encountered while processing: phpmyadmin E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Did you happen to recently do a dist-upgrade?

    I am no longer affiliated with IPXcore.
  • LAKidLAKid Member
    edited August 2012

    ~# ps aux

    ~#  ps aux
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.1   8356   688 ?        Ss   Aug02   0:00 init [2]  
    root         2  0.0  0.0      0     0 ?        S    Aug02   0:00 [kthreadd]
    root         3  0.0  0.0      0     0 ?        S    Aug02   0:00 [migration/0]
    root         4  0.0  0.0      0     0 ?        S    Aug02   0:00 [ksoftirqd/0]
    root         5  0.0  0.0      0     0 ?        S    Aug02   0:00 [watchdog/0]
    root         6  0.0  0.0      0     0 ?        S    Aug02   0:01 [events/0]
    root         7  0.0  0.0      0     0 ?        S    Aug02   0:00 [cpuset]
    root         8  0.0  0.0      0     0 ?        S    Aug02   0:00 [khelper]
    root         9  0.0  0.0      0     0 ?        S    Aug02   0:00 [netns]
    root        10  0.0  0.0      0     0 ?        S    Aug02   0:00 [async/mgr]
    root        11  0.0  0.0      0     0 ?        S    Aug02   0:00 [pm]
    root        12  0.0  0.0      0     0 ?        S    Aug02   0:00 [xenwatch]
    root        13  0.0  0.0      0     0 ?        S    Aug02   0:00 [xenbus]
    root        14  0.0  0.0      0     0 ?        S    Aug02   0:00 [sync_supers]
    root        15  0.0  0.0      0     0 ?        S    Aug02   0:00 [bdi-default]
    root        16  0.0  0.0      0     0 ?        S    Aug02   0:00 [kintegrityd/0]
    root        17  0.0  0.0      0     0 ?        S    Aug02   0:00 [kblockd/0]
    root        18  0.0  0.0      0     0 ?        S    Aug02   0:00 [kseriod]
    root        20  0.0  0.0      0     0 ?        S    Aug02   0:00 [kondemand/0]
    root        21  0.0  0.0      0     0 ?        S    Aug02   0:00 [khungtaskd]
    root        22  0.0  0.0      0     0 ?        S    Aug02   0:00 [kswapd0]
    root        23  0.0  0.0      0     0 ?        SN   Aug02   0:00 [ksmd]
    root        24  0.0  0.0      0     0 ?        S    Aug02   0:00 [aio/0]
    root        25  0.0  0.0      0     0 ?        S    Aug02   0:00 [crypto/0]
    root        28  0.0  0.0      0     0 ?        S    Aug02   0:00 [khvcd]
    root        92  0.0  0.0      0     0 ?        S    Aug02   0:06 [kjournald]
    
    
  • LAKidLAKid Member
    edited August 2012

    <

    pre> root 145 0.0 0.0 16744 520 ? S<s Aug02 0:00 udevd --daemon root 196 0.0 0.0 16740 440 ? S< Aug02 0:00 udevd --daemon root 243 0.0 0.0 0 0 ? S Aug02 0:00 [flush-202:0] root 534 0.0 0.2 54164 1516 ? Sl Aug02 0:07 /usr/sbin/rsyslogd -c4 root 558 0.0 1.1 136936 5892 ? Ss Aug02 0:02 /usr/sbin/apache2 -k start root 585 0.0 0.0 6132 472 ? S Aug02 0:00 /usr/sbin/courierlogger -pid=/ root 588 0.0 0.1 18596 712 ? S Aug02 0:00 /usr/lib/courier/courier-authl root 611 0.0 0.0 18596 252 ? S Aug02 0:00 /usr/lib/courier/courier-authl root 612 0.0 0.0 18596 252 ? S Aug02 0:00 /usr/lib/courier/courier-authl root 613 0.0 0.0 18596 252 ? S Aug02 0:00 /usr/lib/courier/courier-authl root 614 0.0 0.0 18596 252 ? S Aug02 0:00 /usr/lib/courier/courier-authl root 615 0.0 0.0 18596 252 ? S Aug02 0:00 /usr/lib/courier/courier-authl 107 626 0.0 0.0 23268 480 ? Ss Aug02 0:00 /usr/bin/dbus-daemon --system root 648 0.0 0.2 22428 1076 ? Ss Aug02 0:00 /usr/sbin/cron root 711 0.0 0.4 70872 2552 ? Ss Aug02 0:02 sendmail: MTA: accepting conne root 739 0.0 0.2 49176 1128 ? Ss Aug02 0:00 /usr/sbin/sshd proftpd 798 0.0 0.3 71328 1604 ? Ss Aug02 0:00 proftpd: (accepting connection root 818 0.0 0.2 51864 1328 ? Ss Aug02 0:00 /bin/login --
    root 2163 0.0 0.3 19248 2016 ? S Aug02 0:00 -bash root 4977 0.0 0.2 25324 1504 ? Ss Aug02 0:00 SCREEN -A -m -s redirect ./xhl root 4978 0.0 0.7 173820 3952 pts/1 Ssl+ Aug02 1:01 ./xhlds root 12084 0.0 3.1 72500 16260 ? Ss 15:44 0:00 /usr/bin/perl /usr/share/userm root 12987 0.0 0.0 16740 432 ? S< 15:45 0:00 udevd --daemon root 13086 0.0 3.3 79476 17256 ? Ss 15:45 0:01 /usr/bin/perl /usr/share/webmi root 19600 0.0 0.6 70496 3368 ? Ss 17:14 0:00 sshd: root@pts/0 root 19602 0.0 0.3 19244 2032 pts/0 Ss 17:14 0:00 -bash www-data 20358 0.0 0.4 136936 2448 ? S 17:15 0:00 /usr/sbin/apache2 -k start www-data 20359 0.0 0.7 137856 4160 ? S 17:15 0:00 /usr/sbin/apache2 -k start www-data 20360 0.0 0.7 137856 4160 ? S 17:15 0:00 /usr/sbin/apache2 -k start www-data 20361 0.0 0.7 137856 4160 ? S 17:15 0:00 /usr/sbin/apache2 -k start www-data 20362 0.0 0.7 137856 4160 ? S 17:15 0:00 /usr/sbin/apache2 -k start www-data 20363 0.0 0.7 137856 4160 ? S 17:15 0:00 /usr/sbin/apache2 -k start root 20750 0.0 0.2 16340 1172 pts/0 R+ 17:19 0:00 ps aux

  • Sheesh, why does xhlds have an RSS of 173 megabytes?

    I am no longer affiliated with IPXcore.
  • LAKidLAKid Member
    edited August 2012

    @Damian I believe it's upgraded..

  • Fixed, thanks.

  • LAKid I would of personally just used TuxLite or Minstall to install fresh, then build any programs you want, around it.

Sign In or Register to comment.