apt – 升级MySQL服务器问题
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了apt – 升级MySQL服务器问题,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3379字,纯文字阅读大概需要5分钟。
内容图文
![apt – 升级MySQL服务器问题](/upload/InfoBanner/zyjiaocheng/896/3a25e00236a54dc781eb383cb3295033.jpg)
参见英文答案 > “Failed to spawn mysql main process: unable to execute: No such file or directory” 14个
我无法升级MySQL服务器.这是我试过的:
我首先发出此命令来更新包列表:
sudo apt-get update
然后,升级:
sudo apt-get upgrade
它显示以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.28-0ubuntu0.12.04.2) but 5.5.31-0ubuntu0.12.04.1 is installed
E: Unmet dependencies. Try using -f.
显然安装了较新版本(但为什么?我没有手动安装).好的,正如它建议的那样,我发出命令来尝试修复:
sudo apt-get -f install
这是输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
mysql-server mysql-server-5.5
Suggested packages:
tinyca mailx
The following packages will be upgraded:
mysql-server mysql-server-5.5
2 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8889 kB of archives.
After this operation, 64.5 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_HK.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: dependency problems prevent configuration of mysql-server-5.5:
mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.28-0ubuntu0.12.04.2); however:
Version of mysql-server-core-5.5 on system is 5.5.31-0ubuntu0.12.04.1.
dpkg: error processing mysql-server-5.5 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
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)
然后我尝试使用某些人在互联网上建议的另一个命令:
sudo apt-get -f upgrade
产生相同的输出.除了重新安装MySQL服务器,我还能做什么?
使用Ubuntu服务器12.04 LTS
解决方法:
这发生在我身上,但是在做了sudo apt-get更新后,它以某种方式没有得到mysql-server的最新版本,只有mysql-server-core.我首先建议做另一个sudo apt-get更新,然后继续安装包
sudo apt-get install mysql-server
如果这不起作用,那么重新安装:
sudo apt-get install --reinstall mysql-server
如果这不起作用,那么只需清除包mysql-server-core包,然后再次安装mysql-server.
sudo apt-get purge mysql-server-core mysql-server-core-5.5
sudo apt-get install mysql-server
如果这不起作用,那就疯狂吧:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server
作为最后的手段,我会清除,重启,安装.
内容总结
以上是互联网集市为您收集整理的apt – 升级MySQL服务器问题全部内容,希望文章能够帮你解决apt – 升级MySQL服务器问题所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。