LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   mysql server fail (https://www.linuxquestions.org/questions/debian-26/mysql-server-fail-4175526954/)

binary_dreamer 12-01-2014 04:50 AM

mysql server fail
 
hi. i am trying to install the following packages
apt-get install apache2 mysql-server php5 php5-common php5-cgi php5-cli php5-mysql

but mysql server fails to install and i am getting the following errors:
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.1
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

i have tried:
-to purge mysql*
-rm -rf whatever folder contains even the word mysql
-apt-get autoclean and autoremove
-reinstall the system (wheezy).

how do i fix that? anyone that has any ideas?

evo2 12-01-2014 07:19 PM

Hi,

what is the output of the following commmands?
Code:

apt-get -f install
dpkg --audit

Additionally, what can you tell us about your system? Is it up to date? Do you have anything strange in your sources.list? What method did you use to install it? Etc.

Evo2.

binary_dreamer 12-02-2014 09:17 AM

exactly the same approach with/without dotdeb repositories.
root@zeus:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
Setting up mysql-server-5.6 (5.6.21-1~dotdeb.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
/var/lib/dpkg/info/mysql-server-5.6.postinst: line 111: logger: command not found
/var/lib/dpkg/info/mysql-server-5.6.postinst: line 189: logger: command not found
dpkg: error processing mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.6; however:
Package mysql-server-5.6 is not configured yet.

dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.6
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@zeus:~# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
mysql-server MySQL database server (metapackage depending on the lates

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
mysql-server-5.6 MySQL database server binaries and system database setup

The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
module-init-tools transitional dummy package (module-init-tools to kmod)

root@zeus:~#

evo2 12-02-2014 09:25 PM

Hi,

the post install script seems to be failing because:
Quote:

Code:

/var/lib/dpkg/info/mysql-server-5.6.postinst: line 111: logger: command not found
/var/lib/dpkg/info/mysql-server-5.6.postinst: line 189: logger: command not found
dpkg: error processing mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 127


This should be in /usr/bin/logger and is from the bsdutils package. Can you confirm it exists? eg
Code:

dpkg -l bsdutils
ls -l /usr/bin/logger

Presumably /usr/bin is in roots path since that is where dpkg and apt-get are located.

Also of interest are
Quote:

Code:

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline


Do you have either dialog or whiptail packages installed? Eg
Code:

dpkg -l dialog whiptail
Evo2.

binary_dreamer 12-11-2014 02:17 AM

hi. the system is up to date and here is the output of the commands you asked for
still the problem exists.


root@zeus:~# dpkg -l dialog whiptail
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un dialog <none> (no description available)
un whiptail <none> (no description available)
root@zeus:~# dpkg -l bsdutils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii bsdutils 1:2.20.1-5.3 i386 Basic utilities from 4.4BSD-Lite
root@zeus:~# ls -l /usr/bin/logger
-rwxr-xr-x 1 root root 18268 Dec 9 2012 /usr/bin/logger
root@zeus:~#
root@zeus:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.7 (wheezy)
Release: 7.7
Codename: wheezy
root@zeus:~#

evo2 12-11-2014 02:54 AM

Hi,

if you install either whiptail or dialog you can get rid of the debconf warning.

Regarding the real problem of the mysql-server-5.6 post install script failure, I notice that that that package is _not_ in Debian 7.7. I see that it is however in experimental.

https://packages.debian.org/search?k...s=mysql-server

Where did you get that package from?

Evo2.

binary_dreamer 12-11-2014 04:02 AM

my apt list is

root@zeus:~# more /etc/apt/sources.list
deb http://ftp.gr.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.gr.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
root@zeus:~#

all i did was simply apt-get install apache2 mysql-server php5 php5-common php5-cgi php5-cli php5-mysql

evo2 12-11-2014 04:08 AM

Hi,

are you saying that you don't know why you have that version of mysql-server? Is someone else also administering that machine? Please post the output of the following:
Code:

apt-cache policy 'mysql-server*'
dpkg -l 'mysql-server*'

Evo2.

binary_dreamer 12-11-2014 05:42 AM

hi. i am the only one administering and using that machine.

root@zeus:~# apt-cache policy 'mysql-server*'
mysql-server-5.0:
Installed: (none)
Candidate: (none)
Version table:
mysql-server-5.1:
Installed: (none)
Candidate: (none)
Version table:
mysql-server-5.5:
Installed: (none)
Candidate: 5.5.40-0+wheezy1
Version table:
5.5.40-0+wheezy1 0
500 http://security.debian.org/ wheezy/updates/main i386 Packages
5.5.38-0+wheezy1 0
500 http://ftp.gr.debian.org/debian/ wheezy/main i386 Packages
virtual-mysql-server:
Installed: (none)
Candidate: (none)
Version table:
mysql-server-core-5.0:
Installed: (none)
Candidate: (none)
Version table:
mysql-server-core-5.1:
Installed: (none)
Candidate: (none)
Version table:
mysql-server-core-5.5:
Installed: (none)
Candidate: 5.5.40-0+wheezy1
Version table:
5.5.40-0+wheezy1 0
500 http://security.debian.org/ wheezy/updates/main i386 Packages
5.5.38-0+wheezy1 0
500 http://ftp.gr.debian.org/debian/ wheezy/main i386 Packages
mysql-server:
Installed: (none)
Candidate: 5.5.40-0+wheezy1
Version table:
5.5.40-0+wheezy1 0
500 http://security.debian.org/ wheezy/updates/main i386 Packages
5.5.38-0+wheezy1 0
500 http://ftp.gr.debian.org/debian/ wheezy/main i386 Packages
mysql-server-core:
Installed: (none)
Candidate: (none)
Version table:
root@zeus:~# dpkg -l 'mysql-server*'
dpkg-query: no packages found matching mysql-server*
root@zeus:~#

evo2 12-11-2014 07:38 PM

Hi,

there is no mention of mysql-server-5.6 in your output in your previous post. Do you know why /var/lib/dpkg/info/mysql-server-5.6.postinst exists on your system? Does it still exist? Did you perform some actions that changed the state or your system between your initial post and now?

Evo2.

binary_dreamer 12-12-2014 12:55 AM

i forgot to mention that i did a clean install of wheezy and i posted the outputs. the version 5.6 was from the dotdeb repository. now i do not have anything apart from the sources list that i have posted. still the problem exists.

binary_dreamer 12-13-2014 01:40 AM

any ideas?

evo2 12-14-2014 08:02 PM

Hi,
Quote:

Originally Posted by binary_dreamer (Post 5283403)
i forgot to mention that i did a clean install of wheezy and i posted the outputs. the version 5.6 was from the dotdeb repository. now i do not have anything apart from the sources list that i have posted. still the problem exists.

Sorry, I really don't understand your situation. Are you saying you have done a clean install since your original post?

Evo2.

binary_dreamer 12-15-2014 06:12 AM

after my first post and all the retries, then i decided to go to a clean install.
the thing is that the problem remains. i cannot install mysql-server.

evo2 12-15-2014 06:11 PM

Hi,
Quote:

Originally Posted by binary_dreamer (Post 5284862)
after my first post and all the retries, then i decided to go to a clean install.
the thing is that the problem remains. i cannot install mysql-server.

What method are you using to try to install it? What happens?

Evo2.


All times are GMT -5. The time now is 04:12 PM.