LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MySQL5.5 won't install properly (https://www.linuxquestions.org/questions/linux-software-2/mysql5-5-wont-install-properly-4175478130/)

ThemePark 09-22-2013 07:29 PM

MySQL5.5 won't install properly
 
I have just finished upgrading my GuruPlug to Wheezy and upgrading all the packages on it. The last ones I tried to install were MySQL 5.5, client and server. However, something goes wrong when trying to set up the server, as you can see in this list of errors.

Code:

Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
insserv: Starting stop-bootlogd depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting stop-bootlogd depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting stop-bootlogd depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service stop-bootlogd and rmnologin if started
insserv:  loop involving service rmnologin at depth 7
insserv:  loop involving service stop-bootlogd at depth 1
insserv: Starting stop-bootlogd depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting stop-bootlogd depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service stop-bootlogd and rmnologin if started
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing mysql-server-5.5 (--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.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now how on Earth can I fix this?

eklavya 09-23-2013 12:02 AM

Run the command
Code:

sudo dpkg --configure -a
and try again
If you are still facing the problem
Remove troubled packages from the file /var/lib/dpkg/status, Follow these steps to do this.
1) First take back up of status file.

2) Search these packages in the file /var/lib/dpkg/status
mysql-server-5.5
mysql-server

and remove the whole paragraph of the package, it will be appeared in the file like this.
mysql-server-5.5
Code:

Package: mysql-server-5.5
Status: install ok installed
Priority: optional
Section: database
Installed-Size: 30708
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: mysql-5.5
Version: 5.5.32-0ubuntu0.12.10.1
Replaces: libmysqlclient-dev (<< 5.5.17~), mysql-server (<< 5.5.32-0ubuntu0.12.10.1), mysql-server-4.1, mysql-server-5.0, mysql-server-5.1
Provides: virtual-mysql-server
Depends: mysql-client-5.5 (>= 5.5.32-0ubuntu0.12.10.1), libdbi-perl, perl (>= 5.6), libc6 (>= 2.12), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, upstart-job, psmisc, passwd, lsb-base (>= 3.0-10), mysql-server-core-5.5 (= 5.5.32-0ubuntu0.12.10.1), upstart (>= 0.6.7-2)
Pre-Depends: mysql-common (>= 5.5.32-0ubuntu0.12.10.1), adduser (>= 3.40), debconf
Recommends: libhtml-template-perl
Suggests: tinyca, mailx
Breaks: libmysqlclient-dev (<< 5.5.17~), mysql-server (<< 5.5.32-0ubuntu0.12.10.1), mysql-server-4.1, mysql-server-5.1
Conffiles:
 /etc/logrotate.d/mysql-server f36b899f650cc35443021b54a6a1eb65
 /etc/mysql/debian-start 2bdb4cf46f73f70c593072c2dafd2f62
 /etc/mysql/conf.d/mysqld_safe_syslog.cnf 347fa9f3d579ffc06c39bf7e69f4fc6e
 /etc/apparmor.d/usr.sbin.mysqld 51b30a3f9aaa6b638be7829d5055e766
 /etc/init/mysql.conf aa30a0579784071f784a9e74a6da7eb1
 /etc/logcheck/ignore.d.paranoid/mysql-server-5_5 6babe46e791059cdd5a26f4f7fec9eca
 /etc/logcheck/ignore.d.workstation/mysql-server-5_5 2d34a7ed83fefc165cd1dfea3a72ccc8
 /etc/logcheck/ignore.d.server/mysql-server-5_5 2d34a7ed83fefc165cd1dfea3a72ccc8
Description: MySQL database server binaries and system database setup
 MySQL is a fast, stable and true multi-user, multi-threaded SQL database
 server. SQL (Structured Query Language) is the most popular database query
 language in the world. The main goals of MySQL are speed, robustness and
 ease of use.
 .
 This package contains all the infrastructure needed to setup system
 databases.
Homepage: http://dev.mysql.com/
Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>

&

mysql-server
Code:

Package: mysql-server
Status: install ok installed
Priority: optional
Section: database
Installed-Size: 114
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Source: mysql-5.5
Version: 5.5.32-0ubuntu0.12.10.1
Depends: mysql-server-5.5
Description: MySQL database server (metapackage depending on the latest version)
 This is an empty package that depends on the current "best" version of
 mysql-server (currently mysql-server-5.5), as determined by the MySQL
 maintainers. Install this package if in doubt about which MySQL
 version you need. That will install the version recommended by the
 package maintainers.
 .
 MySQL is a fast, stable and true multi-user, multi-threaded SQL database
 server. SQL (Structured Query Language) is the most popular database query
 language in the world. The main goals of MySQL are speed, robustness and
 ease of use.
Homepage: http://dev.mysql.com/
Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


Now remove these both paragraphs from the file, save the file and try again.

ThemePark 09-23-2013 03:02 AM

When looking at the status file, I noticed it also has an entry for mysql-server-5.0, should I remove that too?

eklavya 09-23-2013 04:23 AM

You do not need to remove mysql-server-5.0 since it is not the troubled package. Just remove the trouble packages and try again.

If you still face the problem, try to run this command
Code:

sudo dpkg-reconfigure mysql-server
If you still face same problem.
This is the thread where they had same problem what you are facing.
Look at this too.
http://stackoverflow.com/questions/1...dency-problems

ThemePark 09-23-2013 05:40 AM

Well, removing those parts from the status file, then installing it again produced the same error as before. Running dpkg-reconfigure gave me this error:
Code:

/usr/sbin/dpkg-reconfigure: mysql-server is broken or not fully installed
However, looking through the status file, the entry for mysql-server-5.0 has an interesting line.
Code:

Conflicts: mysql-server (<< 5.0.51a-24+lenny3)
I read the thread you linked to, but since I don't know if the GuruPlug uses MySQL in some way, I'm hesitant to delete any data, unless everything else has failed.

So does that conflict have anything to say?

ThemePark 09-24-2013 06:32 AM

Well, that didn't help anything. I tried removing all 3 entries from the status file, and got the same error. I tried doing everything from your link exactly as it said, and got the same error.

Then I tried purging mysql-server-5.0 along with the other commands, but after purging that I got the error again. Then I continued to follow the instructions, but at the end of it I got the same error again. So it seems this is not mysql related, but just happened to pop up during installation of this.

eklavya 09-24-2013 09:16 AM

Did you add any third party repositories or PPAs to your system improperly (using command line or from software sources )?

If you want to remove mysql, try this command once
Code:

sudo apt-get --purge remove mysql-server mysql-common mysql-client
If you are still facing same error, try this.
Code:

sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 mysql-server-5.5 mysql-server
Are you still facing same error?

If it is uninstalled successfully, you can install it using
Code:

sudo apt-get install mysql-server mysql-common mysql-client

ThemePark 09-24-2013 11:17 AM

Sadly this didn't work either. I have no problem uninstalling or installing, it's during the configuration that I get this problem. First I tried purging, then installing with your code, but still got the error. Then I tried running all 3 commands, but got the error again during the third command.

What's even more odd is that I get the dialogue to change password for the root user in MySQL Server 2 or 3 times. I never change it but just press OK, since I don't plan on changing it until I need to use it as a webserver, and I've written a To do list, to make sure I remember it.

As for your question, no as soon as I had installed the base image, I changed the sources.list file to only include wheezy lines and I got those from a Debian source generator. Here is my sources.list:

Code:

deb http://ftp.dk.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free

so I've been using that the whole time. I haven't had any problems whatsoever with the configuration of the over 100 other packages I've had to install or upgrade.


All times are GMT -5. The time now is 09:59 PM.