Mar*_*tom 3 linux debian dpkg apt-get
我有一个损坏的 MariaDB 安装,我正在尝试清理并重新安装。
如果我这样做,sudo apt-get upgrade我会删除以下内容:
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
mariadb-galera-server : Depends: mariadb-galera-server-5.5 (= 5.5.40+maria-1~wheezy) but it is not installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
如果我跑sudo apt-get install -f我得到:
Preconfiguring packages ...
(Reading database ... 31610 files and directories currently installed.)
Unpacking mariadb-galera-server-5.5 (from .../mariadb-galera-server-5.5_5.5.40+maria-1~wheezy_amd64.deb) ...
Stopping MariaDB database server: mysqld failed!
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing /var/cache/apt/archives/mariadb-galera-server-5.5_5.5.40+maria-1~wheezy_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-galera-server-5.5_5.5.40+maria-1~wheezy_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
如果我尝试使用卸载,sudo apt-get --purge remove mariadb-galera-server-5.5 mariadb-galera-server mariadb-common我会得到:
The following packages have unmet dependencies:
libmariadbclient18 : Depends: mariadb-common but it is not going to be installed
mariadb-client-5.5 : Depends: mariadb-common but it is not going to be installed
mariadb-client-core-5.5 : Depends: mariadb-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我已经没有什么可以尝试的了,非常感谢任何帮助。
Fat*_*ger 14
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
Run Code Online (Sandbox Code Playgroud)
昨天当 mariadb 10.1 服务器包无法正确更新和安装时,我遇到了这个问题。最后删除以下符号链接可能已解决问题。
root@box{~}:la /etc/systemd/system/mysql.service
lrwxrwxrwx 1 root root 35 Feb 9 22:55 /etc/systemd/system/mysql.service -> /lib/systemd/system/mariadb.service
Run Code Online (Sandbox Code Playgroud)
我收到的主要错误信息是。
Failed at step NO_NEW_PRIVILEGES spawning /usr/sbin/mysqld: Invalid argument
Run Code Online (Sandbox Code Playgroud)
我发现 mariadb 故障排除指南很有帮助,但我找不到我在任何地方看到的错误消息的答案。直到我尝试安装 Perconadb 作为替代品的替代品,我才找到了通往该符号链接的途径。
https://mariadb.com/kb/en/mariadb/troubleshooting-installation-issues/
| 归档时间: |
|
| 查看次数: |
4603 次 |
| 最近记录: |