[mythtv-users] How to repair mysql?

Igor Cicimov icicimov at gmail.com
Sun Mar 10 00:01:47 UTC 2013


Run
# dpkg -P mysql-server-5.5
to completely remove the package. When told some package depends on it then
include that one too in the above command. Then install all of them again.
Alternatively run reinstall
# aptitude reinstall mysql-server-5.5
 On 10/03/2013 6:12 AM, "UB40D" <ub40dd at googlemail.com> wrote:

> [Whoops, upgrading from googlemail to gmail meant I could no longer post;
> reverted, reposted.]
>
> Thanks.
>
> OK, so here's with all error messages included.
>
> Trying to re-install apparmor also still gives errors (below: not terribly
> informative to my eyes). You can witness my failed attempts at removing the
> stuff it complained about before reinstalling.
>
> I have added blank lines between the individual commands for readability
> and I have run the command you (Bill) suggested, 2nd one down here.
>
>
> # apt-get remove --purge mysql-server
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package 'mysql-server' is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.10.1) ...
>
> start: Job failed to start
> invoke-rc.d: initscript mysql, action "start" failed.
> dpkg: error processing mysql-server-5.5 (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  mysql-server-5.5
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> # dpkg -l mysql-server mysql-server-5.5
> 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  mysql-server   <none>                    (no description available)
> iF  mysql-server-5 5.5.29-0ubun amd64        MySQL database server
> binaries an
>
>
> # apt-get install apparmor
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Suggested packages:
>   apparmor-profiles apparmor-docs apparmor-utils
> The following NEW packages will be installed:
>   apparmor
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 369 kB of archives.
> After this operation, 1,120 kB of additional disk space will be used.
> Get:1 http://gb.archive.ubuntu.com/ubuntu/ quantal/main apparmor amd64
> 2.8.0-0ubuntu5 [369 kB]
> Fetched 369 kB in 0s (1,674 kB/s)
> Preconfiguring packages ...
> Selecting previously unselected package apparmor.
> (Reading database ... 322157 files and directories currently installed.)
> Unpacking apparmor (from .../apparmor_2.8.0-0ubuntu5_amd64.deb) ...
> Processing triggers for man-db ...
> Processing triggers for ureadahead ...
> Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.10.1) ...
>
> start: Job failed to start
> invoke-rc.d: initscript mysql, action "start" failed.
> dpkg: error processing mysql-server-5.5 (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Setting up apparmor (2.8.0-0ubuntu5) ...
> No apport report written because MaxReports is reached already
>                                                                * Starting
> AppArmor
> profiles
> Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
> Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
>                                                                          [
> OK ]
>  * Reloading AppArmor
> profiles                                                  Skipping profile
> in /etc/apparmor.d/disable: usr.bin.firefox
> Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
>                                                                          [
> OK ]
> Errors were encountered while processing:
>  mysql-server-5.5
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> # apt-get install mysql-server mysql-server-5.5 apparmor
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> apparmor is already the newest version.
> mysql-server-5.5 is already the newest version.
> The following NEW packages will be installed:
>   mysql-server
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 0 B/11.6 kB of archives.
> After this operation, 116 kB of additional disk space will be used.
> Do you want to continue [Y/n]?
> Selecting previously unselected package mysql-server.
> (Reading database ... 322175 files and directories currently installed.)
> Unpacking mysql-server (from
> .../mysql-server_5.5.29-0ubuntu0.12.10.1_all.deb) ...
> Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.10.1) ...
>
> start: Job failed to start
> invoke-rc.d: initscript mysql, action "start" failed.
> 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
> 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.5
>  mysql-server
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130310/e9aaa0e1/attachment.html>


More information about the mythtv-users mailing list