LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installed mysql 5.6.25 from source, getting dpkg error (https://www.linuxquestions.org/questions/linux-newbie-8/installed-mysql-5-6-25-from-source-getting-dpkg-error-4175549152/)

raphael75 07-28-2015 09:10 AM

installed mysql 5.6.25 from source, getting dpkg error
 
I followed the instructions here:

http://dev.mysql.com/doc/refman/5.6/...on-debian.html

to install the latest MySQL 5.6.25 on our Debian 8.1 server. Everything in MySQL works, but I get this error every time I do anything on the command line with apt-get:

Code:

Setting up mysql-community-server (5.6.25-2debian8) ...
2015-07-28 10:00:26 0 [Note] mysqld (mysqld 5.6.25) starting as process 30998 ...
dpkg: error processing package mysql-community-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mysql-community-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

I don't know how to fix this error. It thinks MySQL is partially installed but everything in it works as far as I can tell. Any help will be greatly appreciated. Thanks!

Habitual 07-28-2015 10:35 AM

Code:

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.org
sudo vi /var/lib/dpkg/status

and remove everything in the section for Package: mysql-community-server

from "Package: mysql-community-server"
to the empty line just above the next "Package: " entry.

Example using mysql-client-core-5.5:
Code:

Package: mysql-client-core-5.5
Status: install ok installed
Priority: optional
Section: database
Installed-Size: 6806
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: mysql-5.5
Version: 5.5.44-0ubuntu0.14.04.1
Replaces: mysql-client (<< 5.5.44-0ubuntu0.14.04.1), mysql-client-5.0, mysql-client-core-5.1
Depends: libc6 (>= 2.14), libreadline6 (>= 6.0), zlib1g (>= 1:1.1.4)
Breaks: mysql-client (<< 5.5.44-0ubuntu0.14.04.1), mysql-client-5.0, mysql-client-core-5.1
Description: MySQL database core client binaries
 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 includes the core client files, as used by Akonadi.
Homepage: http://dev.mysql.com/
Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
<empty line>

That should fix it. Works on Ubu and Mint, so why not Debian?

your apt-get actions should no longer complain.

raphael75 07-28-2015 11:12 AM

I changed it from "install of half configured" to "install ok installed". That fixed it. Thank you!!

Habitual 07-28-2015 11:20 AM

Quote:

Originally Posted by raphael75 (Post 5397358)
I changed it from "install of half configured" to "install ok installed". That fixed it. Thank you!!

Good job, and Well Done!

Glad it worked out!


All times are GMT -5. The time now is 01:14 AM.