首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在尝试修复mysql安装后收到Linux "Error: BrokenCount > 0“?

在尝试修复mysql安装后收到Linux "Error: BrokenCount > 0“?
EN

Stack Overflow用户
提问于 2021-10-17 16:13:09
回答 1查看 23关注 0票数 0

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

代码语言:javascript
运行
复制
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)

如能协助解决此问题,将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2021-10-17 16:42:58

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69606243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档