Troubleshoot MySQL installation error in Ubuntu

Source: Internet
Author: User

  1. [Email protected]:~# apt-get Install Mysql-server

  2. Reading Package Lists ... Done

  3. Building Dependency Tree

  4. Reading state information ... Done

  5. The following packages were automatically installed and is no longer required:

  6. Libjpeg-turbo8 Libjpeg8 libxslt1.1 libgd2-noxpm

  7. Use the ' Apt-get autoremove ' to remove them.

  8. The following extra packages'll be installed:

  9. Libdbd-mysql-perl Libdbi-perl Libhtml-template-perl libmysqlclient18 Libnet-daemon-perl

  10. Libplrpc-perl Libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 Mysql-common

  11. mysql-server-5.5 mysql-server-core-5.5

  12. Suggested Packages:

  13. Libipc-sharedcache-perl Tinyca MAILX

  14. The following NEW packages'll be installed:

  15. Libdbd-mysql-perl Libdbi-perl Libhtml-template-perl libmysqlclient18 Libnet-daemon-perl

  16. Libplrpc-perl Libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 Mysql-common

  17. Mysql-server mysql-server-5.5 mysql-server-core-5.5

  18. 0 upgraded, newly installed, 0 to remove and + not upgraded.

  19. Need to get 27.3 MB of archives.

  20. After this operation, 97.5 MB of additional disk space would be used.

  21. Want to continue [y/n]? Y

  22. Get:1 http://mirrors.tencentyun.com/ubuntu/precise-updates/main Mysql-common All 5.5.38-0ubuntu0.12.04.1 [13.2 KB]

  23. Get:2 http://mirrors.tencentyun.com/ubuntu/precise-updates/main libmysqlclient18 AMD64 5.5.38-0ubuntu0.12.04.1 [949 KB]

  24. Get:3 http://mirrors.tencentyun.com/ubuntu/precise/main Libnet-daemon-perl All 0.48-1 [43.1 KB]

  25. Get:4 http://mirrors.tencentyun.com/ubuntu/precise/main Libplrpc-perl All 0.2020-2 [36.0 KB]

  26. Get:5 http://mirrors.tencentyun.com/ubuntu/precise/main libdbi-perl amd64 1.616-1build2 [849 KB]

  27. Get:6 http://mirrors.tencentyun.com/ubuntu/precise/main libdbd-mysql-perl AMD64 4.020-1build2 [106 KB]

  28. Get:7 Http://mirrors.tencentyun.com/ubuntu/precise-updates/main mysql-client-core-5.5 AMD64 5.5.38-0ubuntu0.12.04.1 [1,941 KB]

  29. Get:8 http://mirrors.tencentyun.com/ubuntu/precise/main libterm-readkey-perl amd64 2.30-4build3 [28.6 KB]

  30. Get:9 http://mirrors.tencentyun.com/ubuntu/precise-updates/main mysql-client-5.5 AMD64 5.5.38-0ubuntu0.12.04.1 [ 8,342 KB]

  31. Get:10 Http://mirrors.tencentyun.com/ubuntu/precise-updates/main mysql-server-core-5.5 AMD64 5.5.38-0ubuntu0.12.04.1 [6,090 KB]

  32. Get:11 http://mirrors.tencentyun.com/ubuntu/precise-updates/main mysql-server-5.5 AMD64 5.5.38-0ubuntu0.12.04.1 [ 8,834 KB]

  33. Get:12 http://mirrors.tencentyun.com/ubuntu/precise/main Libhtml-template-perl All 2.10-1 [65.0 KB]

  34. Get:13 http://mirrors.tencentyun.com/ubuntu/precise-updates/main mysql-server All 5.5.38-0ubuntu0.12.04.1 [11.4 KB]

  35. fetched 27.3 MB in 0s (40.1 mb/s)

  36. preconfiguring packages ...

  37. Selecting previously unselected package Mysql-common.

  38. (Reading database ... 50553 files and directories currently installed.)

  39. Unpacking Mysql-common (from .../mysql-common_5.5.38-0ubuntu0.12.04.1_all.deb) ...

  40. Selecting previously unselected package libmysqlclient18.

  41. Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...

  42. Selecting previously unselected package Libnet-daemon-perl.

  43. Unpacking Libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...

  44. Selecting previously unselected package Libplrpc-perl.

  45. Unpacking Libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...

  46. Selecting previously unselected package Libdbi-perl.

  47. Unpacking Libdbi-perl (from .../libdbi-perl_1.616-1build2_amd64.deb) ...

  48. Selecting previously unselected package Libdbd-mysql-perl.

  49. Unpacking Libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...

  50. Selecting previously unselected package mysql-client-core-5.5.

  51. Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...

  52. Selecting previously unselected package Libterm-readkey-perl.

  53. Unpacking Libterm-readkey-perl (from .../libterm-readkey-perl_2.30-4build3_amd64.deb) ...

  54. Selecting previously unselected package mysql-client-5.5.

  55. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...

  56. Selecting previously unselected package mysql-server-core-5.5.

  57. Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...

  58. Processing triggers for man-db ...

  59. Setting up Mysql-common (5.5.38-0ubuntu0.12.04.1) ...

  60. Selecting previously unselected package mysql-server-5.5.

  61. (Reading database ... 50931 files and directories currently installed.)

  62. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...

  63. Selecting previously unselected package Libhtml-template-perl.

  64. Unpacking Libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...

  65. Selecting previously unselected package mysql-server.

  66. Unpacking Mysql-server (from .../mysql-server_5.5.38-0ubuntu0.12.04.1_all.deb) ...

  67. Processing triggers for man-db ...

  68. Processing triggers for ureadahead ...

  69. Ureadahead'll be reprofiled on next reboot

  70. Setting up libmysqlclient18 (5.5.38-0ubuntu0.12.04.1) ...

  71. Setting up Libnet-daemon-perl (0.48-1) ...

  72. Setting up Libplrpc-perl (0.2020-2) ...

  73. Setting up Libdbi-perl (1.616-1build2) ...

  74. Setting up Libdbd-mysql-perl (4.020-1build2) ...

  75. Setting up mysql-client-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...

  76. Setting up Libterm-readkey-perl (2.30-4build3) ...

  77. Setting up mysql-client-5.5 (5.5.38-0ubuntu0.12.04.1) ...

  78. Setting up mysql-server-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...

  79. Setting up mysql-server-5.5 (5.5.38-0ubuntu0.12.04.1) ...

  80. 140818 13:54:07 [Warning] Using unique option prefix Key_buffer instead of key_buffer_size is deprecated and would be Remov Ed in a future release. Please use the full name instead.

  81. Start:job failed to start

  82. Invoke-rc.d:initscript MySQL, action "start" failed.

  83. Dpkg:error processing mysql-server-5.5 (--configure):

  84. Subprocess installed post-installation script returned error exit status 1

  85. Setting up Libhtml-template-perl (2.10-1) ...

  86. No apport report written because Maxreports is reached already

  87. Dpkg:dependency problems prevent configuration of Mysql-server:

  88. Mysql-server depends on mysql-server-5.5; However:

  89. Package mysql-server-5.5 are not configured yet.

  90. Dpkg:error processing Mysql-server (--configure):

  91. Dependency Problems-leaving unconfigured

  92. No apport report written because Maxreports is reached already

  93. Processing triggers for libc-bin ...

  94. Ldconfig deferred processing now taking place

  95. Errors were encountered while processing:

  96. mysql-server-5.5

  97. Mysql-server

  98. E:sub-process/usr/bin/dpkg returned an error code (1)

Workaround:

rm-rf/var/lib/mysql/

rm-rf/etc/mysql/

Apt-getautoremovemysql*--purge

Apt-getremoveapparmor

Apt-getinstallmysql-servermysql-common

This article is from the "Cloud Life" blog, make sure to keep this source http://ovcer.blog.51cto.com/1145188/1541629

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.