bhoopathi@it-Latitude-3510:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-server-core-8.0
The following NEW packages will be installed:
mysql-server-core-8.0
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
2 not fully installed or removed.
Need to get 0 B/18.4 MB of archives.
After this operation, 136 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: warning: files list file for package 'mysql-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'mysql-client-core-8.0' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'mysql-apt-config' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'mysql-client-8.0' missing; assuming package has no files currently installed
(Reading database ... 196862 files and directories currently installed.)
Preparing to unpack .../mysql-server-core-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-server-core-8.0 (8.0.27-0ubuntu0.20.04.1) ...
**dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/mysql/bulgarian/errmsg.sys', which is also in package percona-server-common 8.0.26-16-1.focal
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-core-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)**
答案1
命令
sudo apt --fix-broken install percona-server-common-
将卸载冲突的软件包 percona-server-common,并可能修复依赖性问题。我在标准 Ubuntu 存储库中找不到该软件包,因此我猜想您是从某个第三方存储库安装的。