设为首页 收藏本站
查看: 1147|回复: 0

[经验分享] 解决mysql在ubuntu安装出错

[复制链接]

尚未签到

发表于 2018-5-2 13:32:38 | 显示全部楼层 |阅读模式

  •   root@VM-83-49-ubuntu:~# apt-get install mysql-server
  •   Reading package lists... Done
  •   Building dependency tree
  •   Reading state information... Done
  •   The following packages were automatically installed and are no longer required:
  •   libjpeg-turbo8 libjpeg8 libxslt1.1 libgd2-noxpm
  •   Use 'apt-get autoremove' to remove them.
  •   The following extra packages will be installed:
  •   libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl
  •   libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
  •   mysql-server-5.5 mysql-server-core-5.5
  •   Suggested packages:
  •   libipc-sharedcache-perl tinyca mailx
  •   The following NEW packages will be installed:
  •   libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl
  •   libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
  •   mysql-server mysql-server-5.5 mysql-server-core-5.5
  •   0 upgraded, 13 newly installed, 0 to remove and 120 not upgraded.
  •   Need to get 27.3 MB of archives.
  •   After this operation, 97.5 MB of additional disk space will be used.
  •   Do you want to continue [Y/n]? y
  •   Get:1 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-common all 5.5.38-0ubuntu0.12.04.1 [13.2 kB]
  •   Get:2 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.38-0ubuntu0.12.04.1 [949 kB]
  •   Get:3 http://mirrors.tencentyun.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]
  •   Get:4 http://mirrors.tencentyun.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]
  •   Get:5 http://mirrors.tencentyun.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]
  •   Get:6 http://mirrors.tencentyun.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
  •   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]
  •   Get:8 http://mirrors.tencentyun.com/ubuntu/ precise/main libterm-readkey-perl amd64 2.30-4build3 [28.6 kB]
  •   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]
  •   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]
  •   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]
  •   Get:12 http://mirrors.tencentyun.com/ubuntu/ precise/main libhtml-template-perl all 2.10-1 [65.0 kB]
  •   Get:13 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-server all 5.5.38-0ubuntu0.12.04.1 [11.4 kB]
  •   Fetched 27.3 MB in 0s (40.1 MB/s)
  •   Preconfiguring packages ...
  •   Selecting previously unselected package mysql-common.
  •   (Reading database ... 50553 files and directories currently installed.)
  •   Unpacking mysql-common (from .../mysql-common_5.5.38-0ubuntu0.12.04.1_all.deb) ...
  •   Selecting previously unselected package libmysqlclient18.
  •   Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  •   Selecting previously unselected package libnet-daemon-perl.
  •   Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
  •   Selecting previously unselected package libplrpc-perl.
  •   Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
  •   Selecting previously unselected package libdbi-perl.
  •   Unpacking libdbi-perl (from .../libdbi-perl_1.616-1build2_amd64.deb) ...
  •   Selecting previously unselected package libdbd-mysql-perl.
  •   Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...
  •   Selecting previously unselected package mysql-client-core-5.5.
  •   Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  •   Selecting previously unselected package libterm-readkey-perl.
  •   Unpacking libterm-readkey-perl (from .../libterm-readkey-perl_2.30-4build3_amd64.deb) ...
  •   Selecting previously unselected package mysql-client-5.5.
  •   Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  •   Selecting previously unselected package mysql-server-core-5.5.
  •   Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  •   Processing triggers for man-db ...
  •   Setting up mysql-common (5.5.38-0ubuntu0.12.04.1) ...
  •   Selecting previously unselected package mysql-server-5.5.
  •   (Reading database ... 50931 files and directories currently installed.)
  •   Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  •   Selecting previously unselected package libhtml-template-perl.
  •   Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
  •   Selecting previously unselected package mysql-server.
  •   Unpacking mysql-server (from .../mysql-server_5.5.38-0ubuntu0.12.04.1_all.deb) ...
  •   Processing triggers for man-db ...
  •   Processing triggers for ureadahead ...
  •   ureadahead will be reprofiled on next reboot
  •   Setting up libmysqlclient18 (5.5.38-0ubuntu0.12.04.1) ...
  •   Setting up libnet-daemon-perl (0.48-1) ...
  •   Setting up libplrpc-perl (0.2020-2) ...
  •   Setting up libdbi-perl (1.616-1build2) ...
  •   Setting up libdbd-mysql-perl (4.020-1build2) ...
  •   Setting up mysql-client-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  •   Setting up libterm-readkey-perl (2.30-4build3) ...
  •   Setting up mysql-client-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  •   Setting up mysql-server-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  •   Setting up mysql-server-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  •   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.
  •   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 libhtml-template-perl (2.10-1) ...
  •   No apport report written because MaxReports is reached already
  •   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 MaxReports is reached already
  •   Processing triggers for libc-bin ...
  •   ldconfig deferred processing now taking place
  •   Errors were encountered while processing:
  •   mysql-server-5.5
  •   mysql-server
  •   E: Sub-process /usr/bin/dpkg returned an error code (1)

  解决方法:
  rm -rf /var/lib/mysql/
  rm -rf /etc/mysql/
  apt-getautoremovemysql*--purge
  apt-getremoveapparmor
  apt-getinstallmysql-servermysql-common

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-454939-1-1.html 上篇帖子: Ubuntu 14.04报“leaking memory”错误 下篇帖子: ubuntu上安装rsync+sersync
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表