解决mysql在ubuntu安装出错

  1. root@VM-83-49-ubuntu:~# 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 are no longer required:

  6. libjpeg-turbo8 libjpeg8 libxslt1.1 libgd2-noxpm

  7. Use ‘apt-get autoremove‘ to remove them.

  8. The following extra packages will 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 will 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, 13 newly installed, 0 to remove and 120 not upgraded.

  19. Need to get 27.3 MB of archives.

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

  21. Do you 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 will 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 will be removed 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 is 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)

  99.  

解决方法:

rm -rf /var/lib/mysql/

rm -rf /etc/mysql/

apt-getautoremovemysql*--purge

apt-getremoveapparmor

apt-getinstallmysql-servermysql-common

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1541629

解决mysql在ubuntu安装出错,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。