【问题标题】:Received Linux "Error: BrokenCount > 0" after trying to fix mysql install?尝试修复 mysql 安装后收到 Linux“错误:BrokenCount > 0”?
【发布时间】:2021-10-17 16:13:08
【问题描述】:

我在收到错误代码后尝试修复 mysql 安装。我尝试删除然后重新安装。我尝试安装 mariadb 并删除。然后又试了一次。最终发生了一些事情并得到“错误:BrokenCount > 0”。所以包管理器坏了。我尝试了sudo apt -f install,我在终端中收到以下消息。

user@linux:~$ sudo apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  galera-3 libconfig-inifiles-perl libdbi-perl libreadline5 socat
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  mysql-server-8.0
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  mysql-server-8.0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/1,329 kB of archives.
After this operation, 1,536 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 218690 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.26-0ubuntu0.20.04.3_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.26-0
ubuntu0.20.04.3_amd64.deb (--unpack):
 new mysql-server-8.0 package pre-installation script subprocess returned error 
exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-8.0_8.0.26-0ubuntu0.20.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我们将不胜感激。

【问题讨论】:

    标签: mysql linux ubuntu


    【解决方案1】:

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 1970-01-01
    • 2022-12-12
    • 2020-05-21
    • 1970-01-01
    • 1970-01-01
    • 2021-08-25
    • 2020-03-07
    • 1970-01-01
    • 2017-08-18
    相关资源
    最近更新 更多