LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-01-2014, 04:50 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
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?
 
Old 12-01-2014, 07:19 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-02-2014, 09:17 AM   #3
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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:~#
 
Old 12-02-2014, 09:25 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-11-2014, 02:17 AM   #5
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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:~#
 
Old 12-11-2014, 02:54 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-11-2014, 04:02 AM   #7
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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
 
Old 12-11-2014, 04:08 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-11-2014, 05:42 AM   #9
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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:~#
 
Old 12-11-2014, 07:38 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-12-2014, 12:55 AM   #11
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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.
 
Old 12-13-2014, 01:40 AM   #12
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
any ideas?
 
Old 12-14-2014, 08:02 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by binary_dreamer View Post
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.
 
Old 12-15-2014, 06:12 AM   #14
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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.
 
Old 12-15-2014, 06:11 PM   #15
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by binary_dreamer View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Build fail! keysorsoze Linux - Software 0 01-13-2008 06:52 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
MySQL 4.1.3 rpms fail yakuza Fedora 0 08-05-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration