dpkg:invoke-rc.d:initscript mysql,动作“启动”失败
我在这里阅读了很多post,他们都声明要运行以下命令:
- Apt-get -f删除* *
- apt-get update
- apt-get升级
- apt-get -f install * *
我已经看到了各种各样的顺序等等,没有一个正在解决,我的问题。 无论我尝试什么,我得到:
apt-get -f install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca mailx The following NEW packages will be installed: mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/14.9 MB of archives. After this operation, 53.0 MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... Selecting previously unselected package mysql-server-core-5.5. (Reading database ... 83134 files and directories currently installed.) Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.29- 0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server-5.5. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.29-0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.5.29-0ubuntu0.12.04.1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... invoke-rc.d: initscript mysql, action "start" failed. 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): No apport report written because the error message indicates its a followup error from a 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
我在过去一周尝试了几件事情,无法解决这个问题,我们将不胜感激。 我注意到了这个消息:
包mysql-server-5.5尚未配置。
我还没有得到这个配置,所以我正在努力这方面。 任何其他帮助将非常感谢。
Titanicx的解决方案为我工作。 然
dpkg -S etc/mysql
看到mysql-common是问题所在。 完全删除了MySQL:
sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean
我以前遇到过这个问题。 MySQL守护程序将在配置程序包后立即启动,如果MySQL配置中存在任何错误或访问数据目录时出现问题,则作业将失败。
在这种情况下,检查/var/log/mysql/error.log
上的MySQL错误日志可以帮助您。
就我而言, apparmor导致访问错误:
150131 19:38:23 InnoDB: Operating system error number 13 in a file operation. InnoDB: The error means mysqld does not have the access rights to InnoDB: the directory. InnoDB: File name ./ibdata1 InnoDB: File operation call: 'open'. InnoDB: Cannot continue operation.
它只是通过编辑适当的apparmor文件来解决。
我的问题是我在其他地方有/tmp
sym链接,而Apparmor不喜欢它。
编辑/etc/apparmor.d/abstractions/user-tmp
并添加实际路径到/tmp
修复它并允许MySQL成功启动。
( 灵感来源 )
如果没有任何帮助尝试这一个 。 我从mysql站点下载了deb包。 然后
sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5 sudo dpkg -i mysql-5.6.13-debian6.0-i686.deb sudo apt-get install mysql-server
非常感谢Ingo。
对我来说这很简单
apt-get autoremove
拿到:
Setting up mysql-server-5.5 (5.5.38-1~dotdeb.0) ... update-rc.d: warning: /etc/init.d/mysql missing LSB information update-rc.d: see mysql start/running, process 21373
似乎无需进行所有这些清除和清除。 您需要做的就是删除服务器,然后执行:
rm /etc/mysql/ -R
然后安装服务器。
这个想法是从这个post的答案引用的外部链接: https : //askubuntu.com/a/448249/109764
从所有mysql安装中清理你的操作系统并从那里添加ppa https://launchpad.net/~ondrej/+archive/ubuntu/mysql-5.6
- 删除PPA:“add-apt-repository –remove”与“rm /etc/apt/sources.list.d/???.list”
- 修改Lubuntu .iso的问题
- 使用sudo app-get install安装不起作用,“不使用锁定只读文件/ var / lib / dpkg / lock”
- ‘sudo apt-get’和’sudo -E apt-get’之间的区别
- E:某些索引文件无法下载。 它们已被忽略,或者在apt-get update之后使用旧的
- 如何在bash脚本中检查apt-get错误?
- Synaptic可以按时间对包裹进行排序吗?
- Mysql奇怪的安装问题(记录器:命令未找到)
- 清除并重新安装后apache2无法启动